( //Our Gui takes a dial tone from a telephone and morphs it with six different sliders that control the frequency of the sound. var w, n; n = 6; w = GUIWindow.new("DIAL", Rect.newBy(8, 44, 943, 715)); w.backColor = Color.new(307 + 113.rand, 307 + 113.rand, 307 + 113.rand); // control views: 6.do({ arg i; var view; view = SliderView.new(w, Rect.newBy(10, 28 * i + 8, 160, 16), nil, 400,100,10000,0,'exponential').mapToController(i+1,7); view.backColor = Color.new(307 + 113.rand, 307 + 113.rand, 307 + 113.rand); view.knobColor = Color.new(240 + 113.rand, 240 + 113.rand, 240 + 113.rand); }); // play formants Synth.play({ // vibrato LFO f = SinOsc.kr(8, 0, 0, 168); Formant.ar(f, Plug.kr(w.at(0)), f, 0.4) + Formant.ar(f, Plug.kr(w.at(1)), f, 0.5) + Formant.ar(f, Plug.kr(w.at(2)), f, 0.2) + Formant.ar(f, Plug.kr(w.at(3)), f, 0.6) + Formant.ar(f, Plug.kr(w.at(4)), f, 0.3) + Formant.ar(f, Plug.kr(w.at(5)), f, 0.7) }); w.close; )