Panning Problem with Mono Source Files???

0 views
Skip to first unread message

JCorace

unread,
Mar 25, 2010, 4:53:59 PM3/25/10
to standingwave-discussion
First off I just want to thank Joe for making such a great library, I
have been working with it for the last couple weeks to make an algo /
pop song generator and so far so good. Here is a problem I have run
into and if anybody has a solution please let me know

I am doing a bunch of filtering/processing/synthesis and want to keep
the overhead down by using a mono AudioDescriptor for a a bunch of
SineSources, this works fine, reduces memory usage, and seems to be
mixed to stereo properly when played back. However, once I include a
SoundSource playing back an embedded mp3 sample and try to play that
source and the mono SineSource, the sinewave gets panned hard to the
left channel.

Is there anyway to pan a mono SineSource into the stereo field during
playback? Is there a way to convert the sineSource to stereo right
before its added into ListPerformance? Does anybody have any other
suggestions?

Thanks a lot,
Jason Corace

Joe Berkovitz

unread,
Mar 27, 2010, 10:43:06 AM3/27/10
to standingwav...@googlegroups.com
First, just as an FYI, we're working on a new rev of the library that
has panning built in at a low level for efficiency.

But for the moment, I think there are two approaches that makes sense:

1. build a PanFilter or something like that that would act as a
mono-to-stereo adapter.

2. add a "pan" property to a subclass of PerformanceElement, and
create a custom subclass of ListPerformance to pay attention to the
pan value (which is more or less how the new library works).

Hope this helps...
...j

> --
> You received this message because you are subscribed to the Google Groups "standingwave-discussion" group.
> To post to this group, send email to standingwav...@googlegroups.com.
> To unsubscribe from this group, send email to standingwave-disc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/standingwave-discussion?hl=en.
>
>

--
... . . . j

Reply all
Reply to author
Forward
0 new messages