Hi ChucK List, While googling, I came across this really great shred that works as a vocoder: http://www.lullcec.org/chuck/fft/vocoder.ckhttp://www.lullcec.org/chuck/fft/ The shred allows you to use a wav file as a "template" to vocode mic input. My question is this - can it be used with other shreds without vocoding all sound coming out of the Virtual Machine? Currently, any other shreds I add to the Virtual Machine have the wav file (vocoding) applied to them as well. I'm pretty new to ChucK, so please excuse the ignorance about these kinds of scoping issues. I've also attached the file in question (pretty much unmodified from the original). I'd like to use the vocoding effect only on sounds coming in from adc.left... I've emailed the author, and he's unsure what the problem is - he's going to investigate, but I'd really like some additional takes on the problem. Any thoughts or responses would be hugely appreciated! best, Peter -- Peter Esveld .......................................... 952.818.6488 peter.esveld@gmail.com ..........................................
Sort of an OT question--
Where did you find this ChucK folder and is there more? This is so
great, both since I need some basic programming help and some really
basic DSP help. ChucK is such an easy language to read (arguably even
easier than Max/MSP, I believe) that reading these examples teaches me
as much about programming logic and DSP math as about ChucK. Any more
databases like this one?
Andrew
2009/4/19 Peter Esveld
Hi ChucK List,
While googling, I came across this really great shred that works as a vocoder: http://www.lullcec.org/chuck/fft/vocoder.ck
The shred allows you to use a wav file as a "template" to vocode mic input. My question is this - can it be used with other shreds without vocoding all sound coming out of the Virtual Machine? Currently, any other shreds I add to the Virtual Machine have the wav file (vocoding) applied to them as well. I'm pretty new to ChucK, so please excuse the ignorance about these kinds of scoping issues. I've also attached the file in question (pretty much unmodified from the original). I'd like to use the vocoding effect only on sounds coming in from adc.left...
I've emailed the author, and he's unsure what the problem is - he's going to investigate, but I'd really like some additional takes on the problem. Any thoughts or responses would be hugely appreciated!
best, Peter
-- Peter Esveld .......................................... 952.818.6488 peter.esveld@gmail.com ..........................................
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
2009/4/20 Andrew C. Smith
Sort of an OT question-- Where did you find this ChucK folder and is there more?
The file is stored in this directory; http://www.lullcec.org/chuck/fft/going up another level brings us here; http://www.lullcec.org/chuck/ There's one tutorial in there written by Eduard Aylon, maybe he did the rest as well. Not at all a bad resource if you're looking for things to learn from. Yours, Kas.
Hi Kassen, Thanks for the responses! Yeah, Eduard's code works perfectly, I just altered the values enough to throw it off. I emailed him directly, and he helped me sort it out. Here's the quoted text: just to start with, the fftsize has to be a multiple of 2, so 2500 is not an
optimal size. It should be 2048 (pow(2,11)) or 4096 (pow(2,12)) or 1024 (pow(2,10))... although you can still use any size, it's better to use a power of two, which in chuck is Math.pow(2,n) where n is the number you are rising 2 to. A good size is 2048, so n=10. Otherwise the code does not make sense... for instance FFT_SIZE/8. That only makes sense if FFT_SIZE is a power of 8 which in turn is a power of 2 (2^3=8).
Any other vocoding wisdom or expertise anyone has to share, I'm all ears.
This stuff is really cool.
best,
P
2009/4/20 Kassen
2009/4/20 Andrew C. Smith
Sort of an OT question-- Where did you find this ChucK folder and is there more?
The file is stored in this directory; http://www.lullcec.org/chuck/fft/going up another level brings us here; http://www.lullcec.org/chuck/
There's one tutorial in there written by Eduard Aylon, maybe he did the rest as well. Not at all a bad resource if you're looking for things to learn from.
Yours, Kas.
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- Peter Esveld .......................................... 952.818.6488 peter.esveld@gmail.com ..........................................
Peter;
Any other vocoding wisdom or expertise anyone has to share, I'm all ears. This stuff is really cool.
Yeah. Doing it the "old-fashioned way" with bandpass filters for analysis & encoding and envelope followers means tuning lots and lots of numbers. Too many numbers to be worth it, IMHO. I started on that once, then abandoned the project as it became clear that the tweaking wasn't worth the result. Kas.
Peter; My question is this - can it be used with other shreds without vocoding all
sound coming out of the Virtual Machine? Currently, any other shreds I add to the Virtual Machine have the wav file (vocoding) applied to them as well.
Well, yes, actually this code shouldn't vocode all sounds coming from the VM. Are you sure what you are hearing isn't simply your microphone picking up the output of your speakers? Yours, Kas.
participants (3)
-
Andrew C. Smith
-
Kassen
-
Peter Esveld