angry coffeean audio revolution is brewing
 home > audio tutorials > Beatnik > attaching the sounds to your images

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


Attaching Your Sounds to the Images

To attach the sound that we created in this tutorial to the Angry Coffee logo above we use the code below:

<SCRIPT SRC="music-object.js"></SCRIPT>

<SCRIPT LANGUAGE=JavaScript>

new Music ('stub');

stub.preloadEmbed ('stub.rmf');

new Music ('coffee');

coffee.preloadEmbed ('coffee.rmf');

</SCRIPT>

Again, simply replace each instance of the word "coffee" above with the name of your own custom sound file.

Finally, attach the sound to the image by adding this line of code right before the image tag:

<a href="fill-in-your-file-path-here" onMouseOver="coffee.play();">

The fill-in-your-file-path-here part is where you want the image to take the user when it is clicked on. In this case, a Mouseover gives you a sound, while a click takes you elsewhere. You can get sounds on clicks, too.

<< What to Do with That Sound Editing Software | Beatnik Sonification II Home | Angry Coffee Interactive Drum 'n' Bass Machine -- Example 2 >>
  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