Steinberg WaveLab Elements 7 Manual Page 87

  • Download
  • Add to my manuals
  • Print
  • Page
    / 428
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 86
4.9 Scripting 73
Functions
toString()
apply(thisArg, argArray)
call(thisArg [, arg1 [, arg2, ...]])
Example:
//Create a new custom marker Object
function customMarker(name, comment, timeSecs)
{
this.name=name;
this.comment=comment;
this.timeSecs=timeSecs;
}
//Create a new instance of the custom marker
var myMarker=new customMarker("A custom marker", "My custom marker comments",5);
//Use prototype function to add a new property to it
customMarker.prototype.samples = null;
myMarker.samples = activeWave.sampleRate() * myMarker.timeSecs;
//Trace the results in the log window
logWindow.printInfo(myMarker.name);
logWindow.printInfo(myMarker.samples);
Array Objects
Functions
toString()
toLocaleString()
concat([item1 [, item2 [, ...]]])
join(separator)
pop()
push([item1 [, item2 [, ...]]])
reverse()
shift()
slice(start, end)
sort(comparefn)
splice(start, deleteCount[, item1 [, item2 [, ...]]])
unshift([item1 [, item2 [, ...]]])
Example:
WaveLab 7
Page view 86
1 2 ... 82 83 84 85 86 87 88 89 90 91 92 ... 427 428

Comments to this Manuals

No comments