angry coffeean audio revolution is brewing
 home > audio tutorials > Beatnik > sourcing the JavaScript

music blog
  the deep
sounds music blog pod

soundcards
  demos

music news
  entertainment
technology

tutorials
  mp3
ogg
beatnik
flash
quicktime

fresh ears
  audiofile
bulker

about us
  press
people
email us


Sourcing the JavaScript into Your .html Document

Sourcing the required music-object.js JavaScript file and extensions is the same as having that code in your .html document. The many lines of code that would be involved if you did not source the JavaScript would be overwhelming to some code miners and possibly a signal to bail out for coding beginners. Those many lines of JavaScript are conveniently premade by Beatnik and available for free. Which makes the job a lot easier.

Your .html File

You must "source" the required music-object.js JavaScript extensions with the following code in the highlighted area within your .html document. You must also embed the stub.rmf into your document to complete the syntax requirements. Don't worry: there's a single link to download both the Music Object and the stub.rmf below.

Make sure you have the correct file path set for your document to source the two JavaScripts needed and the stub.rmf file. If you put these documents in the same directory you can take out the ../ before the file names, if not add more ../../ to go up a directory level.

Their Code

Now that these documents have been sourced you must go to the Beatnik website and download the necessary JavaScripts and Music Object Extensions. In this case they are the music-object.js (the core API) and the stub.rmf file, which can be downloaded from the bottom right of the same page. You'll need both, so get them both while your there.

The third piece of the download puzzle is the music-object-dynamic.js. You can download this from the same page as well. It's hard to find: when you're on that page, click the "Documentation" link under the Download Music Object header. When the window pops up grab the left scroll bar and drag it more than half-way down, until you see Music Object Extensions. Here you will find the music-object-dynamic.js. The music-object.js must always be sourced at the top when you're using multiple Music Object Extensions. You can download the documentation on all this, too.

<< Beatnik Sonification Tutorial Home / Example | Coffeebreak -- music-object.js >>
  toolbox

- Download Beatnik Player for | Macintosh | Windows 95/NT
- Download Beatnik Editor for | Macintosh
- Download Beatnik Converter for | Windows 95/98/NT

sound editor links for Macs
Barbrabatch
Soundhack
Amadeus II
Cubasis Demo

sound editor links for PCs
Media Wizard
Audio Magic Ring 1.1
Cool Edit
Sonic Foundry
Gold Wave
Quack
Cool Edit Pro

resource links
Flashnik - audio for Flash using Beatnik
Music Object javaScript tutorials by Ovalwindow

Angry Coffee Beatnik examples
Example - MIDI File/Song Examples
Example - sonified nav bar
Example - Angry Coffee Interactive Drum 'n Bass Machine
Example - Angry Coffee sonified logo
Example - Angry Coffee Interactive Remix



© 1999-2000 Greenrocket Interactive