Tutorial

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

Bing Repeated - Play a note several times Reload page to restart example
This examples shows how a musical passage (in this case just one note) can be repeated.



After initialising SoundCipher by importing the library and creating a SoundCipher object called sc, the number of playback repeats is set to 7. This means that the note will play 8 times - the original plus 7 repeats.

The note attributes passed to sc.playNote() are a pitch of 60, a dynamic of 100, and a duration of 0.5 beats.