Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. Binary Shift Register Sequencer by Dario Lozano-Thornton by dario-lozano-thornton (Dario Lozano-Thornton) Code

    ... ); 0.01.wait}} ).play; Slider(~w2,190@20) .action_({|v|~length = v.value.linlin(0,1,3,8).asInt}) .value = 1; ~transpose = 0; Slider(~w2,190@20) .action_({|v|~transpose = v.value.linlin(0,1,0,4).asInt}) .value = 0; ~transpose_ ...

  2. SPlayFileDiskView Quark

    ... erver.sampleRate; lastTime= Main.elapsedTime; }, { percentage= Main.elapsedTime.linlin(lastTime, lastTime+timeDiff, 0, 1); f= lastFrame+(spf.bufferSize*percentage); }); waveView.timeCursorPosition= f; }, { if(lastFrame!=0, { waveView.timeCu ...

  3. 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 );

  4. 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 );

  5. 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 ...

  6. 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 ...

  7. 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 ...

  8. 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 ...

  9. 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 ...

  10. 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)

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow