SwingOSC – Java-based GUI classes

This class is meant as an emulation of FreqScope by Lance Putnam, which is an additional class available from www.uweb.ucsb.edu/~ljputnam/sc3.html. last mod: 17-jul-09 sciss
For bugs and different behaviour, see also the JSCStethoscope help file.

JSCFreqScopeWindow

Note: please use the abstraction layer FreqScope if possible!

JSCFreqScopeWindow shows the frequency spectrum of the specified audio bus. The scope will remain active after a command-period. To turn it off you must either click off the 'Power' button or close the window.

Instantiation:

	JSCFreqScopeWindow.new( <width = 512>, <height = 300>, <busNum = 0>, <scopeColor>, <bgColor> )
	

Panel controls:

 

Examples:

s = JSCStethoscope.defaultServer.boot;

// create a new analyzer
JSCFreqScopeWindow.new( 400, 200, 0 );

// basic sine
{ SinOsc.ar( 18000, 0, 0.25 )}.play( s );

// random saw
{ RLPF.ar( Saw.ar( 110, 0.2 ), LFNoise2.kr( 1, 1e4, 1e4 ), LFNoise2.kr( 1, 0.2, 0.22 ))}.play( s );

// modulate phase
{ SinOsc.ar( 800, SinOsc.ar( XLine.kr( 20, 8000, 10 ), 0, 2pi ), 0.25 )}.play( s ); 

// all harmonics
{ Blip.ar( 200, Line.kr( 1, 100, 10 ), 0.2 )}.play( s );

// check your mic in
JSCFreqScopeWindow.new( 400, 200, s.options.numOutputBusChannels );