Subscribe in a reader

For writing a Lua plugin see Lua Plugin.

class Frx

since 1.0.5

Description

This package (actually a lua table) is the connection between your script and VSTForx. An object of this table is globally embedded in the current lua context.

  --access example 
frx.wait(50)

Dependent on its lua context the package content (see fields) is slightly different. There are currently two possible context types:

View context
this context is active while loading the "vstforx-init.lua" script. Here you have access to the View and its objects.
Lua Plugin context
Within a Lua Plugin you have access to a related Plugin object.

Functions

void wait ( int milliseconds )
string serializePlugin ( )
void deserializePlugin ( string data )
int getGraphDelay ( )
void messageBox ( string message )
string showSelectFileDlg ( string startPath )
string showSelectDirectory ( string startPath )
string showSaveFileDlg ( string startPath )
void openSceneBrowser ( )
void openUrl ( string url )
void openSetup ( )
void openAbout ( )
string getVersionString ( )
table queryDB ( string query )
Timer addTimer ( string callbackExpr , int milliseconds , int numRepetitions )
void setPersistData ( string key , sequence data )
sequence getPersistData ( string key )
string showInputTextDlg ( string message , string text )
bool showYesNoDlg ( string message )
void runOnUIThread ( string expr )
void exec ( string expr )

Fields

View view
Plugin plug

Detailed Description

Functions

void wait ( int milliseconds )
since 1.0.5
Description
Waits for given milliseconds.
Parameters
milliseconds - milliseconds to wait
string serializePlugin ( )
since 1.0.5
Description
Serializes the VSTForx plugin state.
Return
the plugin state as string
void deserializePlugin ( string data )
since 1.0.5
Description
Restores the VSTForx plugin state.
Parameters
data - the plugin state string
int getGraphDelay ( )
since 1.0.5
Description
When the processing graph contains one or more plugins with an initial delay>0 we need to compensate these delays to keep all signals in sync. The graph delay is the resulting total delay aka the eventually initial delay of VSTForx.
Return
the graph delay in samples
void messageBox ( string message )
since 1.0.5
Description
Shows a message box.
Parameters
message - the message string
string showSelectFileDlg ( string startPath )
since 1.0.5
Description
Shows a "select file" dialog.
Parameters
startPath - the start path
Return
the path of the selected file
string showSelectDirectory ( string startPath )
since 1.0.5
Description
Shows a "select file" dialog.
Parameters
startPath - the start path
Return
the path of the selected file
string showSaveFileDlg ( string startPath )
since 1.0.5
Description
Shows a "save file" dialog.
Parameters
startPath - the start path
Return
the path of the selected file
void openSceneBrowser ( )
since 1.0.5
Description
opens the "Scene Browser"
void openUrl ( string url )
since 1.0.5
Description
Opens the default browser and navigates to the given url.
Parameters
url - a url
void openSetup ( )
since 1.0.5
Description
Opens the setup dialog.
void openAbout ( )
since 1.0.5
Description
Opens the about splash screen.
string getLastSceneBrowserSelection ( )
since 1.0.5
Description
Return
the selection path which was set before the browser was closed
int getVersionInteger ( )
since 1.0.5
Description
Return
the VSTForx version number as int e.g 105 for 1.0.5
string getVersionString ( )
since 1.0.5
Description
Return
the VSTForx version number as string
table queryDB ( string query )
since 1.0.5
Description
Performs a sqlite query on VSTForx's database.
Parameters
query - the query string
Return
a result table -> { {"column": value}, ... }
Timer addTimer ( string callbackExpr , int milliseconds , int numRepetitions )
since 1.0.5
Description
Creates a Timer object.
Parameters
callbackExpr - a lua expression which will be executed when the timer expires
milliseconds - the timer time in milliseconds
numRepetitions - the number of repetitions. If this value is -1 then the timer dosen't stop to repeat.
Return
the timer
void setPersistData ( string key , sequence data )
since 1.0.5
Description
Set persist user data for a given key. Example:
  function onViewEvent(evName, evObj) 
if evName=="on saving view state" then
frx.setPersistData("magicKey", {"some crazy value", 24})
end
end
frx.view:addViewListener("onViewEvent")
Parameters
key - the key
data - the data value sequence e.g {"first value","second value", 100}
sequence getPersistData ( string key )
since 1.0.5
Description
Parameters
key - the key
Return
the persist user data for a key.
string showInputTextDlg ( string message , string text )
since 1.0.5
Description
Shows a "input text" dialog.
Parameters
message - a message
text - the default input text
Return
the input text
bool showYesNoDlg ( string message )
since 1.0.5
Description
Shows a "yes or no" question dialog.
Parameters
message - the question message
Return
true if yes was selected
void runOnUIThread ( string expr )
since 1.0.5
Description
Some functions dosen't work when called from another thread than the UI thread. E.g. open a dialog during a timer callback. In that case this function will help. Example:
  function onTimer()
runOnUIThread("messageBox('HI')")
end
Parameters
expr - a command string. This has to be a valid lua expression.
void exec ( string expr )
since 1.0.5
Description
Executes a lua expression.
Parameters
expr - the lua expression

Fields

View view
Description
a View object
available for View context only
Plugin plug
Description
a Plugin object
available for Lua Plugin context only

Comments   

0 #57 UlyssesJuicy 2018-08-12 00:14
Hi. I see that you don't update your site too often. I know that writing content is boring and time consuming.
But did you know that there is a tool that
allows you to create new posts using existing content
(from article directories or other websites from
your niche)? And it does it very well. The new articles are unique and pass the copyscape test.

You should try miftolo's tools
Quote
0 #56 FannyJuicy 2018-08-10 21:50
Hi. I see that you don't update your blog too often. I know
that writing content is time consuming and boring. But did you know that there is a tool
that allows you to create new articles using existing content (from article directories or other
websites from your niche)? And it does it very well.
The new posts are high quality and pass the copyscape test.
You should try miftolo's tools
Quote
0 #55 ArlethaJuicy 2018-08-10 10:02
Hi. I see that you don't update your page too often. I know that writing articles is time consuming and boring.
But did you know that there is a tool that allows you to create new articles using existing content (from
article directories or other blogs from your niche)?

And it does it very well. The new posts are unique and pass the copyscape test.
You should try miftolo's tools
Quote
0 #54 RetaJuicy 2018-08-07 21:43
Hi. I see that you don't update your website too often. I know that writing content is boring and time consuming.
But did you know that there is a tool that allows you to create
new articles using existing content (from article directories or other blogs from your niche)?
And it does it very well. The new posts are high quality and pass the copyscape test.
You should try miftolo's tools
Quote
0 #53 Beatriz 2018-08-05 14:33
? Disponível em: >. P.143-250. Cata mulheres nuas?
Quote
0 #52 슈퍼카지노 2018-08-05 01:06
It requires lots of discipline, planning, observation and self-control.
For everybody that subscribes while using web page, you'll
be inked some form of offer that you will need the
ability to account Thirteen,Thousa nds of lbs.
A quick have a look at five big factors to
help you restrict the area when developing a night at the dogs.
Quote
0 #51 gold sequin kit 2018-06-10 22:19
Nice read, I just passed this ontto a colleague who was doing
some research on that. And hhe actually bought mee lunch because I found itt for hiim smile So let me rephrase
that: Thanks for lunch!

Feel free to surf to my web-site ...gold sequin kit: https://www.etsy.com/listing/609860975/16-glitter-confetti-overlay-images-16
Quote
0 #50 Antique gold glitter 2018-05-30 21:57
I was wondering if yyou ever thought of changing the structure of your
blog? Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content
so people could connect with it better. Youve got an awful lot of
text for only having 1 or two images. Mayhe you could space it out better?



my webpage - Antique gold glitter: https://www.etsy.com/listing/611878181/42-royal-blue-satin-silk-cloth-papers-12
Quote
0 #49 https://guongbi.com/ 2018-05-04 10:54
Thіs is very interesting, You are a vеry skilled blogger.
Ι have joined your rss feed and lօok forward to seeking mⲟre of your excellent post.
Alsߋ, I'vе shared your site in mʏ social networks!
Quote
0 #48 argument essay 2018-04-04 02:38
argumentative essay papers writing persuasive essay conclusion for a persuasive essay writing argument essays argumentation persuasion essay: https://argumentativeessay365.org/ argument writing persuasive speech paper: https://argumentativeessay365.org/ writing to argue argumentative essay articles: https://argumentativeessay365.org/ argumentative essay outlines writing an argumentative paper: https://argumentativeessay365.org/
Quote

Add comment


Security code
Refresh