input gain analysis, LiSa example
Hello ChucKers, I'm thinking of giving the RPM challenge (http://rpmchallenge) a try this February and am missing two things from my ChucK kit 1) A ChucK snippet to analyze the gain of an input signal. I could just watch for peak values every sample but that doesn't seem like the right thing to do. 2) An example/tutorial of how to use LiSa to approximate a looper pedal (record, overdub, undo, redo). See e.g. http://www.essej.net/sooperlooper/ http://web.mit.edu/~eric_r/Public/mmmtsss/ Thanks in advance, michael
I've tried several times to do #2, as it seems like LiSa is designed for
this. I haven't been successful yet though... I would love to see a simple
example too
On Jan 20, 2011 3:31 PM, "Michael Heuer"
2011/1/20 Noah Adler
I've tried several times to do #2, as it seems like LiSa is designed for this. I haven't been successful yet though... I would love to see a simple example too
I'll do it, but right now I'm in a bit of a fight with the OpenGL standard concerning the dimensions of textures. The envelope-follower in in the "deep" directory of examples (Perry's dir). That should solve #1 for most applications, I believe. Kas.
Kassen
2011/1/20 Noah Adler
I've tried several times to do #2, as it seems like LiSa is designed for this. I haven't been successful yet though... I would love to see a simple example too
I'll do it, but right now I'm in a bit of a fight with the OpenGL standard concerning the dimensions of textures.
Sorry, can't help ya there. :) I wrote MIDI and OSC looper libraries for Processing, so I am familiar with the necessary functionality. I'm not sure how to push LiSa's buttons though. And has anyone written a Stack data structure for ChucK? That would be useful for the undo/redo bits.
The envelope-follower in in the "deep" directory of examples (Perry's dir). That should solve #1 for most applications, I believe.
Thanks, Kas, that works great. michael
I'll do it, but right now I'm in a bit of a fight with the OpenGL standard concerning the dimensions of textures.
Sorry, can't help ya there. :)
I think the situation is under control now, though I do feel that OpenGL looks more like a list of recommendations than like a real standard now.
I wrote MIDI and OSC looper libraries for Processing, so I am familiar with the necessary functionality.
Base functionality isn't that hard, I think. What is hard about looping and what makes some pedals worth the money is a really good interface
I'm not sure how to push LiSa's buttons though.
Fortunately "LiSa's buttons" are quite well documented in the /special/ directory of the ChucK examples. LiSa is absolutely wonderful, as far as UGens go.
And has anyone written a Stack data structure for ChucK? That would be useful for the undo/redo bits.
I think I'd use a array of arrays with two pointers. I've never done this and am not sure about how this would fare performance-wise. I could imagine a "sample" data-type that SndBuf and LiSa could read from and write to, with memory buffering. Kas.
Kassen wrote:
I wrote MIDI and OSC looper libraries for Processing, so I am familiar with the necessary functionality.
Base functionality isn't that hard, I think. What is hard about looping and what makes some pedals worth the money is a really good interface.
Right, I would agree. SooperLooper works well on its own for interactive use, with e.g. a guitar and MIDI foot pedal. When I'm trying to play along to a song driven by ChucK, the whole setup becomes a royal mess, MIDI/OSC sync, mixing audio streams via jack, etc. etc. The interface I'm looking for is an API within ChucK with just those four methods, record/overdub/undo/redo. That way I can just use ChucK's internal timing, run the looper programatically, and keep all the audio within ChucK.
I'm not sure how to push LiSa's buttons though.
Fortunately "LiSa's buttons" are quite well documented in the /special/ directory of the ChucK examples. LiSa is absolutely wonderful, as far as UGens go.
So I've heard. ;) Thanks, I will peruse those examples again.
And has anyone written a Stack data structure for ChucK? That would be useful for the undo/redo bits.
I think I'd use a array of arrays with two pointers. I've never done this and am not sure about how this would fare performance-wise. I could imagine a "sample" data-type that SndBuf and LiSa could read from and write to, with memory buffering.
Hmm, yes, those would be the devil(s) in the details. michael
participants (3)
-
Kassen
-
Michael Heuer
-
Noah Adler