Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... tor2D[width, height], wgrav, 20, 0.01); //--objects {|i| var loc= RedVector2D[i.linlin(0, n-1, 0, width), height*0.5]; var vel= RedVector2D[0, 0]; var acc= RedVector2D[0, 0]; var obj= RedObject(world, loc, vel, acc, speeds[i]*100, 50); }.du ...

  2. 2_elements_and_actions_hid Quark

    ... x-axis -> pan k.elAt(\joy, \l, \x).action_({ |elem| x !? _.set(\pan, elem.value.linlin(0.0, 1.0, -1.0, 1.0) ) }); //other joystick y -> frequency k.elAt(\joy, \r, \y).action_({ |elem| x !? _.set(\freq, elem.value.linlin(0.0, 1.0, 2000, 50) ...

  3. 235-3Dplanes Quark

    ... tor2D[width, height], wgrav, 20, 0.01); //--objects {|i| var loc= RedVector2D[i.linlin(0, n-1, 0, width), height*0.5]; var vel= RedVector2D[0, 0]; var acc= RedVector2D[0, 0]; var obj= RedObject(world, loc, vel, acc, speeds[i]*5000, 50); }.d ...

  4. FPSoundRepresentation Quark

    ... fault if input is not supplied */ if(input == nil, { in = Impulse.ar(speedValue.linlin(0,10, 5, rrand(50, 200.0))); in = BPF.ar(in, rrand(2000, 18000.0)*rrand(0.3, 2.0), 0.4); }, {in = input.value(speedValue)} ); in; }; } preUpdate{ arg the ...

  5. CapSerial Quark

    ... nMax.asCompileString); }); } pr_normalizeCap {|arr| ^arr.collect { |val, i| val.linlin(capMinMax[i][0], capMinMax[i][1], 0, 1); }; } pr_tareCap {|arr| var min, max; arr.do{|val, i| #min, max = capMinMax[i]; (val < min).if{ capMinMax[i][0] = ...

  6. gui_example_simple Quark

    ... !=lastValues[i], { //filter out repeats lastValues[i]= x; { sliders[i].value= x.linlin(0-~maxuV, ~maxuV, 0, 1); //-1000 to 1000uV numbers[i].value= x; //display raw values }.defer; }); }; }); }; ~openbci= board; ) ~openbci.softReset; ~openb ...

  7. SGME_Keyboard Quark

    ... sta (1V), aunque la rueda tiene un rango de 0-10. } convertVelocity { ^velocity.linlin(-5, 5, -1, 1); // factor de -1 a 1 para la velocidad del teclado. } convertGate { ^gate.linlin(-5, 5, -1, 1) * keyGate; // factor de -1 a 1 para la envol ...

  8. 053-boids_1d Quark

    ... rrive(att.loc[0]); o.update; world.contain(o); //--render xy= Point(o.loc[0], i.linlin(0, n-1, world.objects[0].size, height-world.objects.last.size)); Pen.fillOval(Rect.aboutPoint(xy, o.size, o.size)); //--plot target for testing Pen.moveT ...

  9. magFreeze Quark

    ... fft2 ) * 1; normal = IFFT.ar( fft1 ) * 1; sig = XFade2.ar( normal, conv, noise.linlin(0,1,-1,1) ); UOut.ar( 0, sig * amp ); }) .setSpec( \hold, BoolSpec(false) ) .setSpec( \fftSize, ListSpec([512,1024,2048,4096]), \init) .category_( \effec ...

  10. magFreeze Quark

    ... fft2 ) * 1; normal = IFFT.ar( fft1 ) * 1; sig = XFade2.ar( normal, conv, noise.linlin(0,1,-1,1) ); UOut.ar( 0, sig * amp ); }) .setSpec( \hold, BoolSpec(false) ) .setSpec( \fftSize, ListSpec([512,1024,2048,4096]), \init) .category_( \effec ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow