File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Applets
Bookmark "Multiple Sequencers In Applet" Watch "Multiple Sequencers In Applet" New topic

Multiple Sequencers In Applet

Sean Brewer

Joined: Nov 19, 2010
Posts: 7
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:

I agree. Here's the link:
subject: Multiple Sequencers In Applet
It's not a secret anymore!