Stereo to mono

18 views
Skip to first unread message

Tristan SABOURIN

unread,
Sep 20, 2022, 10:29:40 AM9/20/22
to pyo-discuss
Hello ! 

I'm trying to convert my SfPlayer which plays a stereo song into a mono signal, which I can play in both outputs.

I tried:
a = SfPlayer....
b= a.mix(1)

But when I do this, I only have left output working...

barmin

unread,
Sep 20, 2022, 11:07:25 AM9/20/22
to pyo-d...@googlegroups.com
You need to pan the signal:
http://ajaxsoundstudio.com/pyodoc/api/classes/pan.html#pan

So something like

a = SfPlayer(...).mix(1)
b = Pan(a, pan=.5).out()

should work.

Cheers,

Matthieu

Le 20.09.22 à 16:29, Tristan SABOURIN a écrit :

Tristan SABOURIN

unread,
Sep 20, 2022, 11:54:14 AM9/20/22
to pyo-discuss
It is not possible to have two different streams ?
I want to have the right signal in opposite of left signal...

I was doing something like : 
a = Input()
b = -a
a.out(0)
b.out(1)

For inputs, so I think it would be possible with a SfPlayer ?

Olivier Bélanger

unread,
Sep 27, 2022, 7:28:42 PM9/27/22
to pyo-d...@googlegroups.com
Hi,

You can do:

a = SfPlayer....
b = a.mix(1)
c = -b

c is b reversed!

Olivier






101 allée de Delos
Tour Europa - 1er étage
34000 MONTPELLIER

Tel : (+33)4.11.93.22.02

S.A.S au capital de 3000€
Immatriculée au R.C.S de Montpellier
N° SIRET : 799 621 636 00049
Code APE : 7112B


P Auditori Home contribue au respect de l'environnement. Dans ce cadre, merci de n'imprimer ce mail qu'en cas de nécessité.

6 Auditori Home applique le droit à la déconnexion numérique. Dans ce cadre, les correspondances échangées en dehors des horaires habituels de travail, sauf urgence, n'attendent pas de suite avant le début de la prochaine journée de travail.

--
You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyo-discuss/67cb9849-6bc0-4301-8f3a-31406ede96d4n%40googlegroups.com.

Tristan SABOURIN

unread,
Sep 28, 2022, 3:27:08 AM9/28/22
to pyo-discuss
Hi !

It seems obvious to me now that you have write this...lol

Thanks Olivier ! ;)
Reply all
Reply to author
Forward
0 new messages