<br><br><div class="gmail_quote">On 20 May 2010 03:29, Brutus Gates <span dir="ltr"><<a href="mailto:brutusgates@gmail.com">brutusgates@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br></blockquote><div><br></div><div>Hello!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I don't think "audio scrubbing" is the correct technical term for what<br>
I want to do... Maybe someone can suggest a better term?<br></blockquote><div><br></div><div>I think "scrubbing" refers to the process of setting your playback position dynamically. Keeping the pitch correct would likely be called "time-stretching". Either term sounds fine to me.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Of course the devil is in the details... If anyone has a link to math<br>
or code that could help me that would be great... Or better yet, maybe<br>
Chuck has some UGens that can make this easier...<br><br></blockquote><div><br></div><div>We do; LiSa is perfect for this (LiSa is perfect for a lot of stuff, as we recently saw!). If you look at /examples/special (in your Chuck dir) you should find a series of examples that do this sort of thing. </div>
<div><br></div><div>To quickly explain the technique; to have a continual sound we will need to playback half a second worth of sound every half second (duh!). If we want to stretch the file to twice it's normal duration then after half a second we should have playback at .25 second (also obvious, right?). We could simply do that; first play the bit of the buffer ranging from 0 to .5 second, then follow that with the bit from .25 to .75 second, etc. This will work, but it will sound bad. The solution is to use two or three "playback heads" (to use tape recorder terminology) and fade one out while fading the next in. This is where LiSa comes in, unlike SndBuf she has fades and several voices.</div>
<div><br></div><div>Clearly this means that we can independently control the position in the buffer at which we start playback of a given grain (the official term for such a snippet of sound plus it's volume envelope) and the rate at which it's played back. These control the length of the eventual output and the perceived pitch, respectively. The half second I picked at random above will result in a sort of timbre, which may or may not end up sounding musical so some care needs to be taken picking a good duration for the material in question. Something between 50 to 100 ms might be a good starting point.</div>
<div><br></div><div>This is just one thing you can do with granular synthesis (and it's actually how most pitch-shifters work too). You can certainly use a ready made pitch-shifter but doing it yourself like this will give a lot more control and options. I suggest you google "granular synthesis" to read a bit about it and get some background to better understand those examples. If you turn out to like it a lot you could consider ordering Curtis Roads's book "Microsound" which covers nearly everything there is to know about this type of technique. </div>
<div><br></div><div>Shout if you get stuck or if some of this sounded incomprehensible.</div><div><br></div><div>Yours,</div><div>Kas (proud member of the LiSa fanclub)</div></div>