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

[sc-users] Pitch



Hi, can't get this to work with internal server.
Need the internal for scope but is not following pitch.
The same code works with local server but with play, not scope
Jesper

(
{
var in, amp, freq, hasFreq, out;
in = Mix.new( AudioIn.ar( [ 1, 2 ] ));
amp = Amplitude.kr( in, 0.05, 0.05 );
# freq, hasFreq = Pitch.kr( in, ampThreshold: 0.06, median: 7 );
freq = Lag.kr( freq.cpsmidi.round( 1 ).midicps, 0.05 ); out = SinOsc.ar( freq, 0, amp * 2 );
Out.ar( 0, [ in, out ] )
}.scope;

)