( var w, freqnow, a; var midi_controller, midi_channel; w = GUIWindow.new("panel", Rect.newBy( 128, 64, 252, 130 )); a = NumericalView.new( w, Rect.newBy( 64, 36, 64, 20 ), "NumericalView", 200, 100, 2000, 1, 'linear'); midi_controller = 64 ; midi_channel = 16 ; Synth.play({ arg cynt; freqnow = MIDIController.kr(midi_channel,midi_controller,200,1000,'exponential'); cynt.trepeat(0, 0.1, { a.value = freqnow.poll;}); SinOsc.ar(freqnow, 0, 0.1) }); w.close; )