
4.9 Scripting 71
Related topics
ECMAScript Reference
4.9.2 ECMAScript Reference
WaveLab's scripting language is based on the ECMAScript scripting language, as defined
in standard ECMA-262 Microsoft's JScript, Netscape's JavaScript and Adobe's Actionscript
are also based on the ECMAScript standard. If you are not familiar with the ECMAScript
language, there is a large amount of teaching and reference material available online.
This reference page contains a list of all ECMAScript objects, functions and properties sup-
ported by the WaveLab scripting system. These are available in any scripting context but are
not WaveLab specific. When scripting for the Audio File Workspace for example, (using the
Scripting window (Audio File Workspace)) there are specific additional functions that allow
you to perform editing commands. For a list of these WaveLab specific scripting commands
and functions see WaveLab Scripting Language.
Tip: Some basic scripting examples are included below so you can see the scripting syntax
in context. These scripts will work if you copy, paste and execute them in a script window.
Supported ECMAScript subset
The Global Object
Values
NaN
Infinity
undefined
Math
Functions
eval(x)
parseInt(string, radix)
parseFloat(string)
isNaN(number)
isFinite(number)
decodeURI(encodedURI)
decodeURIComponent(encodedURIComponent)
encodeURI(uri)
encodeURIComponent(uriComponent)
WaveLab 7
Comentários a estes Manuais