hi. would it be possible to create a (sample) player where only the difference of the soundfiles' phase is output?
where one loads in 2 samples and then listens to only overlapping phases or only different phases of both signals..
how would i start working towards this? all help appreciated
-
harvesting phase
-
Hi. If you are referring to phase in the conventional recording-engineer sense, I think this is straightforward. You take one of the two samples, invert it [*~ -1} and then add it to the other signal. This results in the difference of the phases. I believe this is how it work in mid/side converters and the like
If you want to do something with frequency components in an fft scheme, you would want to run the fft analysis on both samples and then do something similar before resynthesis. I don't know fft, but I think there is some info in the help browser.
-
thank you for the response,
is [*~ -1} a message box? because i can't send an audio signal into that.. -
this is the patch i've been able to put together so far but I don't think it's doing the thing phase.pd
-
@reflect_ It is good, but you need to start both tracks at the same time I imagine.
Here is proof....... cancel.zip
Cick [start( to play both (the same track in both players) at the same time, and disconnect either of the receives from the [dac~] to know that it is working....... because there will be no sound..... total cancellation!
David. -
thank you for the tip!
could you explain how, if [*~0.5] lowers my volume
,[ *~ -1] is inverting the signal? -
@reflect_ In words......? Hmm.
Say you have a sine wave, and it starts at 0 and rises to 1 falls back down through 0 and keeps going to -1, where it reverses direction and rises back up to 0....... one complete cycle.
So................ 0, 1, 0, -1, 0
x -1................ 0, -1, 0, 1, 0..........inverted...... the whole waveform upside down.... all +ve become -ve et vice versa.
x 0.5.............. 0, 0.5, 0, -0.5, 0......... the wave is half the height, so half the volume.
It is the multiply by "minus" that inverts, and the "one" keeps all at the same volume.
David.((Well...... nearly....... volume is another thing, power etc., area under the curve...... life, the universe and everything.)) it is obviously late and tine for bed.......