[PD] Implementing switch-and-ramp technique to cancel discontinuities

2007-05-02 Thread Frank Barknecht
Hi, I'm having a hard time implementing the switch-and-ramp technique to cancel out discontinuous control changes as described in Miller's Book at http://crca.ucsd.edu/~msp/techniques/latest/book-html/node63.html In attached patch I tried to build a very simple example of the technique in action

Re: [PD] Implementing switch-and-ramp technique to cancel discontinuities

2007-05-02 Thread hard off
get the attack value at the inconsistency, crossfade back between that value and the original signal. see attached patch. of course, the problem is you usually don't know where the inconsistency will arise. the only way around that is to delay the audio while your patch finds such a probem.

Re: [PD] Implementing switch-and-ramp technique to cancel discontinuities

2007-05-02 Thread hard off
btw. just found a bug in my patch. corrected here: switch-and-ramp3.pd Description: Binary data ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list

Re: [PD] Implementing switch-and-ramp technique to cancel discontinuities

2007-05-02 Thread simon wise
On 2 May 2007, at 5:35 PM, Frank Barknecht wrote: it only works if the discontinuity is one starting a zero again isn't the book describing a way to switch from a playing wave form to a new one which starts at zero? The example refers to re-triggering something like a percussion sample -

Re: [PD] Implementing switch-and-ramp technique to cancel discontinuities

2007-05-02 Thread Frank Barknecht
Hallo, simon wise hat gesagt: // simon wise wrote: That is: the whole example/technique described depends on the assumption that the re-triggered sample starts from zero, it doesn't make sense otherwise. Well, that's what's keeping me awake ATM: I believe in theory it is possible, to use

Re: [PD] Implementing switch-and-ramp technique to cancel discontinuities

2007-05-02 Thread simon wise
On 3 May 2007, at 4:56 AM, Frank Barknecht wrote: Attached patch shows switch and ramp correctly in action. Note to hard off: Crossfading of course also works, however I was trying to understand the technique Miller describes. (Now I wonder, if the description in the book is complete.