-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panning ignored by Mixer? #182
Comments
Does it work if you initialise the mixer with channels=2 instead of
channels=1 ?
…On Mon, 18 May 2020, 19:31 Jon Elling, ***@***.***> wrote:
I can pan audio fine when not using the mixer but when I add the panned
audio into the Mixer the panning is lost. Is this supposed to work or do
I misunderstand when/how to use the mixer?
from pyo import *
s = Server().boot()
s.start()
# Setup Mixer
mm = Mixer(outs=2, chnls=1)
# Load Files
path = "/Users/jelling/dev/performa/server/audio"
# Play files - works
# speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2).out(0)
# band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2).out(1)
# Play files and pan without mixer - works
# speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2)
# band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2)
# speechPanned = Pan(speech,2,.5).out() # pan to center
# bandPanned = Pan(band,2,0,.5).out(1) # pan to center
# Play via mixer - works
# speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2)
# band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2)
# mm.addInput(0, speech.out())
# mm.addInput(1, band.out(1))
# Play panned files via mixer - panning to center has no effect
speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2)
band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2)
# Center pan does not take effect
speechPanned = Pan(speech, 1, 0.5)
bandPanned = Pan(band, 1, 0.5)
# Exposed pan controls in gui - moving controls still has no effect
speechPanned.ctrl()
bandPanned.ctrl()
mm.addInput(1, speechPanned.out(0))
mm.addInput(0, bandPanned.out(1))
s.gui(locals())
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#182>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF47HFMZQAYED72CLL275DRSF5IFANCNFSM4NEKGTZQ>
.
|
No it does not |
Hi,
On Mon, May 18, 2020 at 2:31 PM Jon Elling ***@***.***> wrote:
I can pan audio fine when not using the mixer but when I add the panned
audio into the Mixer the panning is lost. Is this supposed to work or do
I misunderstand when/how to use the mixer?
from pyo import *
s = Server().boot()
s.start()
# Setup Mixer
mm = Mixer(outs=2, chnls=1)
# Load Files
path = "/Users/jelling/dev/performa/server/audio"
# Play files - works
# speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2).out(0)
# band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2).out(1)
# Play files and pan without mixer - works
# speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2)
# band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2)
# speechPanned = Pan(speech,2,.5).out() # pan to center
# bandPanned = Pan(band,2,0,.5).out(1) # pan to center
This is not panned to center, it's full left (Pan(band, outs=2, pan=0, spread=0.5) # spread does nothing in stereo.
# Play via mixer - works
# speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2)
# band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2)
# mm.addInput(0, speech.out())
# mm.addInput(1, band.out(1))
You don't play via Mixer, you send the signals to the audio outputs with
.out() and .out(1). The signals are added to the Mixer but the Mixer's
outputs are not used.
# Play panned files via mixer - panning to center has no effect
speech = SfPlayer(path + "/gettysburg10.wav", loop=True, mul=.2)
band = SfPlayer(path + "/CantinaBand60.wav", loop=True, mul=.2)
# Center pan does not take effect
speechPanned = Pan(speech, 1, 0.5)
bandPanned = Pan(band, 1, 0.5)
This is not center pan either... With outs=1, it's a simple thru (only one
signal stream).
# Exposed pan controls in gui - moving controls still has no effect
speechPanned.ctrl()
bandPanned.ctrl()
For the very same reason!
mm.addInput(1, speechPanned.out(0))
mm.addInput(0, bandPanned.out(1))
Same as before, Mixer's outputs are not used, signals are sent the the
soundcard with the calls .out() and .out(1).
Olivier
…
s.gui(locals())
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#182>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXKJTHBQYGYQEPZ244TR6TRSF5IHANCNFSM4NEKGTZQ>
.
|
@belangeo thank you for the detailed response. Two remaining questions:
|
On further examination, the panning above may not be working for 0.2 or 0.5. I suspect the .setAmp command is overwriting the effect of the panning. Is that true? If so, could I trouble you for a simple example of how to properly pan with the mixer? I don't hear anything unless I use setAmp to set volume. |
Have you set the Mixer's number of channels per output to 2 (
|
Closing as i don't think there is anything to fix here. |
I can pan audio fine when not using the mixer but when I add the panned audio into the
Mixer
the panning is lost. Is this supposed to work or do I misunderstand when/how to use the mixer?The text was updated successfully, but these errors were encountered: