Cycle~ phase coordination
Hello,
I'm working on a patch in which I want to be able to control the phase of multiple sine waves. I've been using delay~ and mstosamples~ but it is not working as intended. E.g: If I set two oscillators to a given frequency and set to 180° the phase shift of one of them, from my understanding, I should get a total cancelation of the sound, but in this patch this "cancellation" point varies all the time. I found out this is because I'm treating different signals separately, instead of delaying only one oscillator. The thing is, I NEED them to be treated separately. So the question is: Is there a way to coordinate the phase of two individual oscillators so I can then manipulate it again?
Heres an example of my algorithm, left side is a working patch, right side is how I'd like it to be (but it doesn't work):
Please on the right side patch do try different frequencies when testing, sometimes you get lucky and it actually works.
Thanks a lot in advance!
Hi
I'll admit that I didn't view your patch, but this should help:
Brendan
(I'll look at it now)
1. Your patch refers to phase in degrees (0-360), which is not how any of the audio objects in Max understand the notion of phase. The archetypal Max oscillator objects cycle~ and phasor~ refer to phase (or, more precisely, phase offset in the case of cycle~) in terms of fraction of a cycle (typically in the range 0 to 1).
2. Using delay~, as you are trying to do, the phase relationship between two oscillators will change whenever the frequency changes.
3. The best approach for trying to test different phase relationships of two oscillators that have the same frequency is to control them both with a phasor~ object, as in this example.
4. If you search the forum for "cycle~ phase" you will find lots of information. Such as here:https://cycling74.com/forums/cycle-and-phase/
Thank you so much to you both. I tried the Phasor~method but it didn't work for me (now I found out what I was doing wrong). Should any new questions arise I'll come back here to these amazing forums.
Best!