Re: [PD] Equal-power crossfade?

2012-02-06 Thread Frank Barknecht
Hi, On Mon, Feb 06, 2012 at 02:22:34PM +0100, Pierre Massat wrote: I need a simple equal-power crossfade between two signals. I asked the same question a few years ago, but i just can't remember how to do it... This is used in rj's e_pan.pd: left = cos(p) * signal right = sin(p) * signal

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Pierre Massat
Thanks Frank! Pierre 2012/2/6 Frank Barknecht f...@footils.org Hi, On Mon, Feb 06, 2012 at 02:22:34PM +0100, Pierre Massat wrote: I need a simple equal-power crossfade between two signals. I asked the same question a few years ago, but i just can't remember how to do it... This is

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Jaime Oliver
Here's an argument for plain linear crossfade. I get power boosts with cosine crossfades... best, J On Mon, Feb 6, 2012 at 8:53 AM, Pierre Massat pimas...@gmail.com wrote: Thanks Frank! Pierre 2012/2/6 Frank Barknecht f...@footils.org Hi, On Mon, Feb 06, 2012 at 02:22:34PM +0100,

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Hans-Christoph Steiner
There are some pan algorithms in the 'pan' library also, included in Pd-extended. They're all pd abstractions. .hc On Feb 6, 2012, at 9:29 AM, Jaime Oliver wrote: Here's an argument for plain linear crossfade. I get power boosts with cosine crossfades... best, J On Mon, Feb 6,

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Ludwig Maes
Make sure to use the interval 0 - Pi/2, panning beyond will only crossfade back and forth On 6 February 2012 15:29, Jaime Oliver jaime.oliv...@gmail.com wrote: Here's an argument for plain linear crossfade. I get power boosts with cosine crossfades... best, J On Mon, Feb 6, 2012 at 8:53

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Frank Barknecht
On Mon, Feb 06, 2012 at 02:42:01PM +0100, Frank Barknecht wrote: Hi, On Mon, Feb 06, 2012 at 02:22:34PM +0100, Pierre Massat wrote: I need a simple equal-power crossfade between two signals. I asked the same question a few years ago, but i just can't remember how to do it... This is

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Frank Barknecht
On Mon, Feb 06, 2012 at 09:29:33AM -0500, Jaime Oliver wrote: Here's an argument for plain linear crossfade. I get power boosts with cosine crossfades... Your example is a bit broken (there is no panning going on at all), but I get the same result with a the fixed version or with [e_pan] in the

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Scott Nordlund
Here's an argument for plain linear crossfade. I get power boosts with cosine crossfades... best, J You'll want to use linear crossfades for correlated signals (similar spectrum and same phase), cosine for non-correlated signals (noise, different frequencies, arbitrary phase, etc.). Of

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Jaime Oliver
Your example is a bit broken (there is no panning going on at all), you're right. ... coffee excuse ... here is a fixed version in case someone is interested. the subject of the e-mail however, does not ask to pan, but to crossfade without loosing or adding power. What the example shows is a

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Frank Barknecht
On Mon, Feb 06, 2012 at 10:15:51AM -0800, Jaime Oliver wrote: Your example is a bit broken (there is no panning going on at all), you're right. ... coffee excuse ... here is a fixed version in case someone is interested. the subject of the e-mail however, does not ask to pan, but to

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Pierre Massat
All very interesting stuff, thanks! I didn't need anything too special so i've adapted Hans' equal-power pan (I've turned it upside down to make a crossfader). I only needed it for the ring modulator patch i've just posted on my blog (

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Mathieu Bouchard
Le 2012-02-06 à 14:42:00, Frank Barknecht a écrit : On Mon, Feb 06, 2012 at 02:22:34PM +0100, Pierre Massat wrote: I need a simple equal-power crossfade between two signals. I asked the same question a few years ago, but i just can't remember how to do it... This is used in rj's e_pan.pd:

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Mathieu Bouchard
Le 2012-02-06 à 13:13:00, Scott Nordlund a écrit : Incidentally I'm working on a frequency domain algorithm that forces mixed signals to be correlated and in phase, by summing their magnitudes. But it's no magic trick since it does this by inducing a time varying phase shift. This isn't the

Re: [PD] Equal-power crossfade?

2012-02-06 Thread Scott Nordlund
Le 2012-02-06 à 13:13:00, Scott Nordlund a écrit : Incidentally I'm working on a frequency domain algorithm that forces mixed signals to be correlated and in phase, by summing their magnitudes. But it's no magic trick since it does this by inducing a time varying phase shift. This isn't