Re: Out ; summing ; phase cancellation

[email protected]
Newsgroups gmane.comp.audio.supercollider.user
Message-ID <CAFniQ7WaOdzwwNxGOnwM1wXMGgsTeMGoXBvrRtHm_8eWJp-3wQ@mail.gmail.com>
On Tue, Mar 16, 2021 at 6:58 AM <[email protected]> wrote:
> SynthDef("x",{Out.ar(0,[SinOsc.ar([440,441],[0,pi]),SinOsc.ar([440,441],[pi,0])])}).play

SynthDef("x", {
    Out.ar(0, [
        SinOsc.ar([440, 441], [0, pi]),
        SinOsc.ar([440, 441], [pi, 0])
    ])
}).dumpUGens

[ 0_SinOsc, audio, [ 440, 0 ] ]
[ 1_SinOsc, audio, [ 441, 3.1415926535898 ] ]
[ 2_SinOsc, audio, [ 440, 3.1415926535898 ] ]
[ 3_Out, audio, [ 0, 0_SinOsc, 2_SinOsc ] ]
[ 4_SinOsc, audio, [ 441, 0 ] ]
[ 5_Out, audio, [ 0, 1_SinOsc, 4_SinOsc ] ]

So L = sin(440, 0) + sin(441, pi) and R = sin(440, pi) + sin(441, 0)

SynthDef("x", {
    Out.ar(0, [
        SinOsc.ar([440, 441], [0, pi]),
        SinOsc.ar([440, 441], [pi, 0])
    ].flop)  // <<-- flop the 2d array here
}).dumpUGens

[ 0_SinOsc, audio, [ 440, 0 ] ]
[ 1_SinOsc, audio, [ 441, 3.1415926535898 ] ]
[ 2_Out, audio, [ 0, 0_SinOsc, 1_SinOsc ] ]
[ 3_SinOsc, audio, [ 440, 3.1415926535898 ] ]
[ 4_SinOsc, audio, [ 441, 0 ] ]
[ 5_Out, audio, [ 0, 3_SinOsc, 4_SinOsc ] ]

That's the droid you're looking for.

hjh

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.