Window Reference About JavaScript Source Code |

Every entry in the JavaScript window consists of two lines: first a JavaScript comment identifying the meaning and value range of any function parameters, and then the actual source code - a Music Object function call with its parameters filled in to reflect your most recent action taken.
For example, if you go to a Session window and select Custom Instrument number 7, the JavaScript window will emit the following JavaScript code:
`// setProgram( MidiChannel0to16, BankNumber0to2, ProgramNumber0to127 )` `player.setProgram( 1, 2, 7 )` Note: Getting Beatnik interactive audio working in a Web page involves a good deal more than just pasting these lines into a JavaScript file. At a minimum, you'll also need to change the word `player` to match the name of your Music Object instance; typically a lot more work than that will be required. You'll certainly need a good general understanding of the Beatnik Music Object interface - be sure to read the Web Authoring Documentation on the Beatnik Web site before you start writing JavaScript to control the Beatnik Player: http://www.beatnik.com/to/?music-object-doc

Window Reference / About JavaScript Source Code top |