Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. 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 ...

  2. Mountains by simon (Dindoléon) Code

    ... button_rack_view.mouseDownAction_( { | view, x, y | var selection_y = y.linlin( 0, view.bounds.height, 0, 4, clip: 'minmax' ).asInt; selected_view = selection_y; views.do( { | view, index | if( index == s ...

  3. Wave Field Synthesis by miguelnegrao (miguel.negrao) Code

    ... ly by amplitude. */ // your speaker positions p = 112.collect{ |i| Point(i.linlin(0,111,-10.0,10.0), 5) }; // now go, buy 112 speakers and play this synthdef :-) ( SynthDef(\minimalWFS,{ var excitation = Dust.ar(20) * 0 ...

  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 Doc

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

    ... tness .kr(chain); flatdb = 10 * flat.log; // Convert to decibels flatdbsquish = LinLin .kr(flatdb, -45, -1.6, 0, 1).max(-10); // Rescale db roughly to 0...1. flat.poll(10, "flatness: " ); flatdb.poll(10, "flatness (db): " ); Out .kr(0, [fla ...

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

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow