On Jan 7, 2008 4:11 PM, Mike Lawrence <[EMAIL PROTECTED]> wrote:
>
> > You can achieve the same outcome by playing the two sources
> > simultaneously
>
> Maybe a little more background would clarify my problem. I'll actually
> be looking to play a dozen or so pure tones continuously for an
> unspecified amount of time, then as quickly as possible turn them all
> off and turn on another set of a dozen or so pure tones that again
> play continuously for an unspecified amount of time. I can see that
> for each tone I can set up a player, cue the tone, and set eos_action
> for that player to 'loop', then once all the players are initialized,
> tell each to play, but it strikes me that with increasing numbers of
> players I'll soon be able to notice the difference in start time
> between the first tone and the last tone, and a similar differences
> during the transition to the second set of tones. I was hoping that by
> simply getting the aggregate waveforms I would only have to deal with
> 2 players, one for each tone set.

An easy solution is to create your own Sine-derived class that creates
the tone mix to begin with, rather than mixing samples later (which is
only tricky because of the ctypes array).

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to