// **** // sweep a sine wave over 10 - 30k, try to illustrate foldover // see sc2 examples: gui examples for a nice way to link views... ( var w, slider1, num1; w = GUIWindow.new(" stupidly sweeping sine", Rect.newBy( 128, 64, 545, 341 )) .backColor_(rgb(246,188,203)); slider1 = SliderView.new( w, Rect.newBy( 17, 45, 518, 53 ), "SliderView", 1050, 0, 30000, 1, 'linear') .backColor_(rgb(176,176,176)).labelColor_(rgb(221,221,131)).knobColor_(rgb(239,164,113)); StringView.new( w, Rect.newBy( 203, 124, 128, 20 ), "sweeping sine") .backColor_(rgb(195,228,197)); num1 = NumericalView.new( w, Rect.newBy( 51, 124, 101, 36 ), "NumericalView", 1050, 0, 30000, 1, 'linear'); slider1.action = { num1.value = slider1.value }; num1.action = { slider1.value = num1.value }; { SinOsc.ar( ControlIn.kr(slider1)) }.scope )