Author |
Message |
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Wed Sep 06, 2006 12:02 pm Post subject:
DeluxeLooper Subject description: elastic audio looping tool -syncs to MIDI clock and DOES NOT DRIFT! |
|
|
Hi again,
Here's another application of volatile sampling and elastic audio. It's an elastic audio capturing/looping tool. It listens to the MIDI clock and lets you capture one bar of 4/4 audio, punching in exactly on the "one" of the next bar and punching out again a bar later. Contrary to all previous capturing patches, it never drifts out of sync. (It uses an intricate time-stamping mechanism to achieve this and and is rock-solid over hours -forever actually.) Even if you manipulate the MIDI clock after capturing, the loop will instantaneously correct its playback pitch accordingly and stay in sync.
Different playback speeds are offered: normal, double, half, a quarter, an eighth, a sixteenth of the speed. Or, you can choose a manually adjustable playback rate (which can be keyboard-tracked in order to play the captured audio tonally). Reverse direction of all these possibilities is also provided. You can also scrub through the audio (assigned to the modwheel), which is most effective when selecting playback speed zero.
Now the fun part. There is a button to engage a time-stretch/pitch-shift engine. With this, all the possibilities mentioned above cease to influence the pitch of the captured loop. Conversely, the possibility is also offered to tune the loop or even play it tonally over the keyboard without affecting the speed.
Controls:
INPUT, CHANNEL -selects stereo pair and channel (L/R) for capturing.
4/4LOOP Capture -captures one bar of audio. Waits until the "one" of the next bar and punches in and out correctly. Important! Due to the design of the patch, capturing always takes 2,7 seconds, regardless of the actual length of the loop (it will be in sync, don't worry ) . Also -do not capture below 92BPM as this exceeds the sampling memory of the G2 and makes the patch malfunction.
SPEED -select playback speed: stop, x1/8, x1/4, x1/2, x1, 2x and manual speed
DIR -select playback direction
SCRUB -scrub around in the sample (assigned also to Modwheel)
T-STRET -engages/disengages the time-stretch/pitch shift engine
MANUAL BarSync -syncs the manual playback speed to the "one" of each bar. Fun for rhythmic stuff
MANUAL rate -manual playback rate
MANUAL KBT -keytracking the rate (at 100%, you can play the sample tonally (if the t-stretch engine is off))
T-STRETCH Freq Grain-Clock of the time-stretch engine
T-STRETCH KBT ...can be KB-tracked too.
TS-CLOCK Jitter Grain-Clock jitter
T-PITCH Coarse/Fine Tuning the loop...
T-PITCH KBT ...or playing it over the keyboard (at constant speed).
Fits on a DSP.
Hope you enjoy this. I spent weeks perfecting the techniques that went into it.
best,
tim
(G2 addict)
Addendum: Special thanks to selvmarcus for the initial time-stamping idea.
Description: |
elastic audio looping tool -syncs to MIDI clock and DOES NOT DRIFT! |
|
Download |
Filename: |
DeluxeLooper TK.pch2 |
Filesize: |
5.06 KB |
Downloaded: |
2410 Time(s) |
Last edited by Tim Kleinert on Tue Sep 19, 2006 1:48 am; edited 2 times in total |
|
Back to top
|
|
|
ian-s
Joined: Apr 01, 2004 Posts: 2669 Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626
|
Posted: Wed Sep 06, 2006 1:32 pm Post subject:
|
|
|
Fantastic patch. Thanks for posting. |
|
Back to top
|
|
|
Fozzie
Joined: Jun 04, 2004 Posts: 875 Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49
|
Posted: Wed Sep 06, 2006 2:18 pm Post subject:
|
|
|
Can't check right now, but your description sounds fantastic and looks impressive |
|
Back to top
|
|
|
Afro88
Joined: Jun 20, 2004 Posts: 701 Location: Brisbane, Australia
Audio files: 12
G2 patch files: 79
|
Posted: Wed Sep 06, 2006 4:02 pm Post subject:
Re: DeluxeLooper Subject description: elastic audio looping tool -syncs to MIDI clock and DOES NOT DRIFT! |
|
|
Pardon my french, but fuck! Mind blowing. I'm checking this out now! |
|
Back to top
|
|
|
Fozzie
Joined: Jun 04, 2004 Posts: 875 Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49
|
Posted: Thu Sep 07, 2006 3:42 am Post subject:
|
|
|
I'm still a bit gobsmacked by your patch, and absolutely do not understand your timestamping mechanism and a lot more, but a quick question:
Can this looping technique be combined with the 2x and 4x delay-subsampling mechanisms, in order to make the loop lenght 5.4 or 10.8 secs?
If you could find patience and time to explain this cunning contraption a bit more I really wouldn't mind |
|
Back to top
|
|
|
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Thu Sep 07, 2006 3:02 pm Post subject:
|
|
|
Fozzie wrote: | Can this looping technique be combined with the 2x and 4x delay-subsampling mechanisms, in order to make the loop lenght 5.4 or 10.8 secs?
|
Unfortunately, no. These kind of patches use the delay line taps to dynamically access the delay memory. When multiple signals are multiplexed into this one delay line, there's no way for the patch to know if the sample it just has read out actually belongs to the signal it wants to access. Too bad, I'd love 10.8 seconds of audio too.
Fozzie wrote: | If you could find patience and time to explain this cunning contraption a bit more I really wouldn't mind |
Well, in a nutshell -the time-stamping uses a loud but very short click (max. headroom of 256 "clavia units") at the start of the recording to sync the readout LFO to the delay line. That click is then circumvented by offsetting the readout reference point by a few (unnoticeable) milliseconds. Yes -it is that simple. |
|
Back to top
|
|
|
Fozzie
Joined: Jun 04, 2004 Posts: 875 Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49
|
Posted: Thu Sep 07, 2006 3:37 pm Post subject:
|
|
|
Guess that makes perfect sense, I probably should have thought of that myself regarding the dynamic delay memory access.
Still, if one was to strip the patch to the bare bones of 'just' the midified audio looper without any pitch or time modulation, the timestamp mechanism might work with the long delays? I'll see if I can find some time to play with this patch, so far I've only looked at it on an unconnected editor. |
|
Back to top
|
|
|
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Thu Sep 07, 2006 4:16 pm Post subject:
|
|
|
Fozzie wrote: |
Still, if one was to strip the patch to the bare bones of 'just' the midified audio looper without any pitch or time modulation, the timestamp mechanism might work with the long delays? |
No -because time-stamping is done to generate a stable reference point for a readout pointer -which obviously has to read audio via the delay line taps. There's no way around this when using time-stamping.
I already thought about this long and hard. There's no way to do it with multiplexed signals, at least not on the G2. |
|
Back to top
|
|
|
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Thu Sep 07, 2006 4:26 pm Post subject:
|
|
|
The only possibility I saw was to cascade multiple delay lines via FX or interslot busses, in order to get a longer sampling time, and then devising a tricky concoction in order to access the "segments" of the entire audio loop. There might be a possibility that this could work, but it would be excessively "kludgey" and -forget about any granular features! But I might try it one time... |
|
Back to top
|
|
|
gomidas
Joined: Jul 09, 2004 Posts: 365 Location: La Ciotat, France
Audio files: 1
G2 patch files: 6
|
Posted: Fri Sep 08, 2006 2:20 am Post subject:
|
|
|
OH MY G"2"OD!!! YOU DID IT
Really this is NON STOP FUN
THANK YOU VERY MUCH FOR THIS GREAT PIECE OF WORK |
|
Back to top
|
|
|
mosc
Site Admin
Joined: Jan 31, 2003 Posts: 18198 Location: Durham, NC
Audio files: 213
G2 patch files: 60
|
Posted: Fri Sep 08, 2006 5:36 pm Post subject:
|
|
|
Wow! I'm very impressed, Tim. Congrats...
This is terrific... _________________ --Howard
my music and other stuff |
|
Back to top
|
|
|
tombola
Joined: Mar 11, 2005 Posts: 84 Location: London
Audio files: 3
G2 patch files: 9
|
Posted: Sat Sep 09, 2006 5:48 am Post subject:
|
|
|
Hi Tim,
Would be be possible using your system to produce a simple reverse delay - something like you find in a PodXT or various Boss pedals?
Tom _________________ http://www.musicthing.co.uk/ |
|
Back to top
|
|
|
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Sat Sep 09, 2006 2:34 pm Post subject:
|
|
|
tombola wrote: | Hi Tim,
Would be be possible using your system to produce a simple reverse delay - something like you find in a PodXT or various Boss pedals?
Tom |
Well, sort of. A reverse delay isn't that complex. You just have to read out the delay memory backwards.
I just made one for you right now here at home on the demo software and posted it in the building blocks section.
Here it is:
http://electro-music.com/forum/post-89270.html#89270
Have fun.
best,
tim |
|
Back to top
|
|
|
selvmarcus
Joined: Feb 08, 2006 Posts: 121 Location: Berlin, Germany
G2 patch files: 39
|
Posted: Sun Sep 17, 2006 6:51 am Post subject:
|
|
|
Congratulations Tim, you did it!
(No credits for the idea for the sync-bug workaround, hm? http://electro-music.com/forum/topic-6899.html)
Very useful and fun.
Can I do time-stretching and resampling independantly,
i.e. playing with constant pitch but different speed?
Just when I was ready to go with VST-plugin loopers on Windows...
I guess G2 is back for me now. Some more to carry to a gig
But no latency here, great!
By the way, when one is modulating the time of a delay (-tap), I guess here are some samples skipped or duplicated by need?
Or even interpolated?
What happens to the inserted time-stamp then, why is it appearently save from this? Or is it?
selVMarcus _________________ Something with this universe is somehow perfectly sound and in order. |
|
Back to top
|
|
|
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Tue Sep 19, 2006 2:01 am Post subject:
|
|
|
Oh, I'm sorry. I was so excited about finally getting it to work that I forgot about everything else. My bad. I updated the initial post with an addendum crediting your idea. Thank you for it!
Quote: | Can I do time-stretching and resampling independantly,
i.e. playing with constant pitch but different speed? |
Yes. When the TimeStretch-engine is activated, changing the playback speed will not affect the pitch anymore. But don't expect wonders here -this is not a Roland VSynth. It sound more like vintage time-stretching, which can actually sound quite cool in its own lo-fi way. But you can mask the effect considerably by applying some clock jitter.
You can also play the pitch over the keyboard without affecting the speed.
Quote: | What happens to the inserted time-stamp then, why is it appearently save from this? Or is it?
|
The time-stamping pulse resyncs an LFO which is precisely tuned to the readout speed of the delay line -as precisely as possible on the G2. (I spent hours on calibrating this thing!) This then makes it possible to access the delayline like (unfortunately volatile) sampling memory. The time-stamping "click" is only a few milliseconds long, and is at the very beginning of this "sampling memory". I just start reading out of the memory a few milliseconds later. Pretty safe -except when you use a very slow grain clock speed with high positive pitch shifting amounts. |
|
Back to top
|
|
|
mother misty
Joined: May 13, 2004 Posts: 681 Location: Ghent / Belgium
Audio files: 82
G2 patch files: 130
|
Posted: Tue Sep 19, 2006 6:23 am Post subject:
|
|
|
Fantastic! This patch is very useful!
Glad to have people like you around here who really push the limits of the G2. |
|
Back to top
|
|
|
Fozzie
Joined: Jun 04, 2004 Posts: 875 Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49
|
Posted: Tue Sep 19, 2006 2:06 pm Post subject:
|
|
|
Tonight I finally really tested this patch with my bandmembers. It is really really good!!! Fantastic to record a very heavy distorted guitar sound and then play it with speed 0 with the mod wheel. I love it!!! |
|
Back to top
|
|
|
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Tue Sep 19, 2006 4:08 pm Post subject:
|
|
|
Fozzie wrote: | Tonight I finally really tested this patch with my bandmembers. It is really really good!!! Fantastic to record a very heavy distorted guitar sound and then play it with speed 0 with the mod wheel. I love it!!! |
Gee , I'd love to hear that.
But wouldn't it be easier to modify the patch, so you could capture some audio just by pressing the G2 sustain pedal and then be able to sweep through it with the G2 footcontroller instead of the modwheel? This way you could keep your hands on the guitar and use this as a special performance gesture, or even play over the sweeps.
I'm just "thinking loudly" as they say, but I love ideas like these.
I could patch it for you if you want. |
|
Back to top
|
|
|
Fozzie
Joined: Jun 04, 2004 Posts: 875 Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49
|
Posted: Wed Sep 20, 2006 12:14 am Post subject:
|
|
|
[quote="tim"] Fozzie wrote: | Gee , I'd love to hear that.
But wouldn't it be easier to modify the patch, so you could capture some audio just by pressing the G2 sustain pedal and then be able to sweep through it with the G2 footcontroller instead of the modwheel? This way you could keep your hands on the guitar and use this as a special performance gesture, or even play over the sweeps.
I'm just "thinking loudly" as they say, but I love ideas like these.
I could patch it for you if you want. |
I'll see if I can post a little mp3 snippet today. We just jammed with the patch, our guitarist on PodXT, some live e-drums (based on Sheridan's patches) an me on the G2 engine with midi-keyboard. The idea was to fool around and I was actually playing along with our guitarist, which worked best if I the loop I recorded from his live input was pitched quite drastically, say an octave down or (a few) up.
So thanks for thinking along, but I'm fine with the patch as-is and it is no problem for me to make small adjustments if necessary.
Oh, one thing though: would it be possible to add pitch-bend sensitivity to the keyboard pitch-controlling? I believe your method to do the keyboard thing is by using the keyboard morph group, right? So, probably adding pitch-bend output data into that mixer should work Ok, right? I didn't try yet; probably needs good scaling, but I'll try later.
Thanks for thinking along |
|
Back to top
|
|
|
W.T.
Joined: Jul 11, 2004 Posts: 272 Location: The Netherlands
Audio files: 1
G2 patch files: 11
|
Posted: Wed Sep 20, 2006 2:40 am Post subject:
|
|
|
very cool and efficient! thanks. |
|
Back to top
|
|
|
W.T.
Joined: Jul 11, 2004 Posts: 272 Location: The Netherlands
Audio files: 1
G2 patch files: 11
|
Posted: Wed Sep 20, 2006 2:47 am Post subject:
|
|
|
but why is it not possible to use four of them in a performance? as you said, it uses only one dsp. |
|
Back to top
|
|
|
W.T.
Joined: Jul 11, 2004 Posts: 272 Location: The Netherlands
Audio files: 1
G2 patch files: 11
|
Posted: Wed Sep 20, 2006 3:53 am Post subject:
|
|
|
damm i must be drunk
it does work |
|
Back to top
|
|
|
Fozzie
Joined: Jun 04, 2004 Posts: 875 Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49
|
|
Back to top
|
|
|
Tim Kleinert
Joined: Mar 12, 2004 Posts: 1148 Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236
|
Posted: Wed Sep 20, 2006 2:35 pm Post subject:
|
|
|
...the last bit is especially lovely. Thanks alot. It reminds me of a performance of Radioheads Jonny Greenwood, where he played his guitar through some granulize-chop-weird-whatever Max/MSP patch. I love this kind of stuff. Actually, you make me want to try it out myself, albeit with keyboards rather than guitar. |
|
Back to top
|
|
|
GovernorSilver
Joined: Apr 26, 2004 Posts: 1349 Location: Washington DC Metro
G2 patch files: 1
|
Posted: Wed Mar 28, 2007 7:34 am Post subject:
|
|
|
Very nice! I like!
Works as advertised with my preamped electric guitar. Cello will probably sound amazing with this patch. |
|
Back to top
|
|
|
|