[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] amplitude follower



It doesn't make sense to process an audio signal at control rate. Hence, SoundIn does not support kr.

Use Amplitude.ar( SoundIn.ar( 0 ) ) to measure the amplitude. If the trigger needs to be control rate, convert the audio rate amplitude to control rate using A2K.kr(theAmplitude).

I will second Dan's posting earlier today* -- saying that something "doesn't work" without any other detail is usually not helpful for troubleshooting. It wastes *your* time, which I assume is valuable, because then whoever responds has to ask for details that could have been included in the first place. At the very least -- what was printed in the post window? If there was sound and the sound was wrong, describe it?

https://listarc.bham.ac.uk/lists/sc-users/msg52651.html

Thanks --
hjh

On May 19, 2009, at 11:21 PM, casey anderson wrote:

hi all,

im trying to build an amplitude follower that will watch the changing
amp of a SoundIn, return the amplitude, and send a trigger to
something else if amplitude is greater than a particular value. i have
been digging around in the list archives, and experimenting with a few
things, but im not coming up with what im looking for. the
Amplitude.kr( SoundIn.kr( 0 ) ) method seems to not work for me, for
whatever reason. if anyone has any ideas or input, i would really
appreciate it.

casey


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman