Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. uchain_track Quark

    ... tern.nowCallingPattern }; out = if( chain.notNil ) { chain.track; } { 0; }; out.linlin(0,max,*range); }) .category_( 'uchain_info' ) .mappedArgs_( [ \range ] ) .setSpec( \max, IntegerSpec(16,0, inf) ) .setSpec( \value, private: true );

  2. PointView Quark

    ... .value_(showAxes) ; axLenSl = Slider() .action_({ |sl| this.axisScale_(sl.value.linlin(0,1,0,1.5)) }) .orientation_(\horizontal) .value_(axisScale / 1.5); indcChk = CheckBox() .action_({ |cb| this.showIndices_(cb.value); }) .value_(showIndi ...

  3. nanoKontrol2_Sequencer Quark

    ... obs n.elAt( \kn, (0..7)).do { |knob, i| knob.action = {|el| ~freq[i] = el.value.linlin(0,1.0, 30, 2500); if(~onOff[2][i] > 0.5, { ~dur[i] = el.value.linlin(0,1.0, 0.001, 15); }); }; }; // assigning actions for the sliders n.elAt( \sl, (0..7 ...

  4. sound_example_filters_and_scopeview Quark

    ... ht, 50, 20)).string_(""++binSize.round(0.1)); Array.geom(10, 1, 1.05).normalize.linlin(0, 1, 0.075, 0.9).do{|x| StaticText(win, Rect.aboutPoint(Point(width*x, scpsHeight+10), 50, 20)) .string_(""++((x.linlin(0, 1, binSize, s.sampleRate/2)/z ...

  5. GlobalControlMIDIOut Quark

    ... model.spec_(model.spec); // force 'changed' } midiValue { ^model.unmappedValue.linlin(0, 1, low, high).round.asInteger } sendMIDI { ctlmsg.play(nil, this.midiValue); } update { |obj, what| switch(what[\what]) { \modelWasFreed } { this.free ...

  6. p_line_point Quark

    ... ray; ccurve = curve.next.asArray; [0,1].splineIntFunction( current, easeIn.next.linlin(-1,1,2/3,0), easeOut.next.linlin(-1,1,1/3,1) ).dup.collect({ |item, i| item.lincurve(0,1, aa[i], bb[i], ccurve[i]); }).asPoint.yield; current = (current ...

  7. alias-with-argument Quark

    ... ute=0, solo=1; (Ndef.ar('filterTrack_1_1', 1) * volume.dbamp.lag(lagTime) *mute.linlin(0,1,1,0).lag(0.1)*solo.lag(0.1) )}); Ndef('track1').set('volume', 0, 'lagTime', 0, 'mute', 0, 'solo', 1); == radpostcont == (none)

  8. SCluster Quark

    ... rm : SCluster { *type {^\PulseWarm} func { ^{|freqs, dists, amps| var d1= dists.linlin(0, 1, 0.5, 0.05); var d2= dists.linlin(0, 1, 0.5, 0.3); RLPF.ar( Pulse.ar(freqs, LFNoise2.kr(0.1!this.numChannels).range(d1, d2), AmpComp.kr(freqs)), LFN ...

  9. 265-janus_bunch_clocks Quark

    ... 0); //dim,grav,maxvel,damp //--init objects n.do{|i| var x= (sin(i/n*2pi)*0.8).linlin(-1, 1, 0, width-1); var y= (cos(i/n*2pi)*0.8).linlin(-1, 1, 0, height-1); RedOscillator2(world, RedVector2D[x, y], nil, nil, 0, 1/n*width) .internalCoupl ...

  10. SmoothRangeSlider Quark

    ... ( Color .rand( 0 , 0.8 ).alpha_( [ 1 , 0.5 , 1 , 0 , 1 , 0 , 1 ][i] ) ) .hi_( i.linlin( 0 , 6 , 0.6 , 0.9 ) ) .lo_( i.linlin( 0 , 6 , 0.4 , 0.1 ) ) }); ) ( // random gradients x = { Color .rand( 0 , 0.8 ).alpha_( [ 1.0 .rand ** 2 , 1 ].choo ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow