( var w, l, file, a, b, env; l = 0.25; w = GUIWindow.new("panel", Rect.newBy( 173, 70, 247, 164 )); SliderView.new( w, Rect.newBy( 14, 51, 215, 17 ), "SliderView", 4.5,0, 20,0, 'linear'); SliderView.new( w, Rect.newBy( 14, 95, 215, 17 ), "SliderView", 6, 0, 20, 0, 'linear'); SliderView.new( w, Rect.newBy( 14, 125, 215, 17 ), "SliderView", l, l, l*4, l*0.0625, 'linear'); StringView.new( w, Rect.newBy( 14, 75, 215, 17 ), " Main amplitude"); StringView.new( w, Rect.newBy( 14, 28, 215, 17 ), "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"); StringView.new( w, Rect.newBy( 14, 11, 215, 17 ), " amplitude living sound"); {var in; in = Mix.ar(AudioIn.ar([1, 2])); //in = Compander.ar(in, in, 0.6, 1, 0.01, 0.01); a = Pan2.ar( Mix.ar(PitchShift.ar( // use PitchShift to change the pitch Gate.ar(in, Amplitude.kr(in, 0.1, 1)), 0.01, // grain size (0.2 + 0.05.rand) * [1, 1.2], // shift the pitch 0, // pitch dispersion 0.004, // time dispersion 0.5 ) //amplitude ), 1.0.rand2 ); b = Pan2.ar(AllpassN.ar( Mix.ar(PitchShift.ar( PitchShift.ar( in, // stereo audio input 0.1, // grain size 2*(w.at(2).kr) * [1, 1.33, 1.67, 1.89], 0, // pitch dispersion 0.004, // time dispersion w.at(1).kr //amplitude ), 0.1, // grain size 2)), 0.2, 0.2, 3), FSinOsc.kr(0.1+0.3.rand)); // frequency c = AudioIn.ar(1, w.at(0).kr); //c= Compander.ar(c, c, 0.6, 1, 0.01, 0.01); //a + b; [b.at(0)+ c, b.at(1) + c] }.play; w.close; )