I'm trying and failing to use "EmitSound" to play notes OVER one another. It seems that if one sound is emitted after another sound, the second sound stops the first before playing. I know that I can take a list of notes (which have lengths associated with them) and create a sound object and then play that, but the thing is, I'm trying to generate notes continuously so I need it to play on the fly, I can't "compile" the notes beforehand.
See, if I play
EmitSound[Sound[SoundNote[1, 10, "Trumpet"]]]; Pause[1]; EmitSound[Sound[SoundNote[1, 1, "Piano"]]]
the piano cuts off the trumpet before it plays for the full 10 seconds. If I try to do something LIKE this:
While[True, EmitSound[Sound[SoundNote[RandomInteger[8], {0, RandomInteger[7]}, "Trumpet"]]]; Pause[1]]
It doesn't work. What I had in mind for that code was to every second play a randomly selected note between 1-8 for between 1-7 seconds, but what happens is that it just plays each note for one second as they all cut each other off.
The code I'm writing in the end isn't exactly that (just random gibberish notes) but the next step is that I need to get something like this to work, thanks.