aspose file tools*
The moose likes Applets and the fly likes Multiple Sequencers In Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Multiple Sequencers In Applet" Watch "Multiple Sequencers In Applet" New topic
Author

Multiple Sequencers In Applet

Sean Brewer
Greenhorn

Joined: Nov 19, 2010
Posts: 5
Hi all,

There isn't a sound/audio forum here, so hopefully this is the best place to post this.

I'm working on a music applet and need to have multiple sequencers playing simultaneously. I have some test code and it works in my programming environment (I'm using the free JGrasp) but when I try to open the applet in a web browser, it doesn't play the sequencers at the same time. It only plays one sequencer at a time and switches (seems to be random) back and forth between them instead of just letting them both play together. Is there any reason why two (or more) sequencers won't play together in an applet when they do in my programming environment? Is this just simply a limitation within applets or is there some kind of work around to fix this?

I know you can do different tracks in a single sequencer, but I really need it to be separate sequencers playing simultaneously... Without getting into too much music/drum theory, I'm making a polyrhythm metronome and need to have different sequencers playing at different tempos (which you can't do with a single sequencer). If anyone has any ideas on how to get multiple sequencers to play nicely together in an applet that would be greatly appreciated.

Here is my sample program:


And the code for my html document:


Thanks,
-tkr
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiple Sequencers In Applet
 
Similar Threads
Constructing a MIDI Sequence...tickCounts
sugar needed for Java! help me, please.
MIDI problems when launching applet through browser
MIDI
Application doesn't quit -- MiniMiniMusicApp sample from Head First Java