Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (674) Code (68) Doc (212) Help (62) Quark (332) SCDoc ↗ Forum ↗ Google ↗
  1. AudioMulchClock Quark

    ... h incoming network sync message includes a tick counter. There are 24 ticks per beat and 96 per bar (assuming 4/4 - change beatsPerBar to use something different). A tick is roughly 1/24 seconds long at tempo 60bpm. Though network jitter wi ...

  2. MIDISyncClock Quark

    ... ames Harkins -- jamshark70@dewdrop-world.net MIDISyncClock { classvar <>ticksPerBeat = 24; // MIDI clock standard classvar responseFuncs; classvar <ticks, <beats, <startTime, <tempo, <beatDur, <beatsPerBar = 4, <barsPerBeat = 0.25, <baseBar ...

  3. DurInterpolationOfWholeClock Quark

    ... ttp://sccode.org/1-5fG#c992 ( Alga.boot({ ~change_clock_tempo = {|clock, tempo, beats=1| beats.do {|beat| var stepTempo = beat.linexp(0, beats-1, clock.tempo, tempo); clock.schedAbs(clock.nextBar + beat, { "New Tempo: ".post; (stepTempo*60) ...

  4. TestOSCSyncClocks Quark

    ... test"); // sync messages faster, wait less time below leader = DDWLeadClock(2, beats: 10).period_(0.2); 0.3.wait; // do not start follower clock on an even beat // empirically I found network jitter may be over 100 ms // we should test sta ...

  5. ScoreClock Quark

    ... r queue; classvar <score; classvar <default; classvar server,savedServer; var <>beats; var <>tempo; *new {|tmp=1| ^super.new.init(tmp); } *initClass { default = this.new; } *beginScore { server = Server.fromName(\ScoreDummy).serverRunning_( ...

  6. extTempoClock Quark

    // returns the next beat with a given offset // in relation to the current beat // E.G. if beats is 10.2, and the offset is 0.25, => 10.25 // if beats is 10.3, and the offset is 0.25, => 11.25 + TempoClock { nextBeatOffset { |offset = 0.25| ...

  7. oldVersionTeleClock2 Quark

    ... lock = clock ? SystemClock ;\ fadeTask.play(clock);\ \\ \ warpTempo \ arg frac, beats, warp = \ ;\ this .fadeTempo(frac * this .tempo, beats, warp, this )\ \\ \ \ \\ \ \ ListeningClock : SoftClock \\ \ var <listener;\ var <>empathy = 0.5, < ...

  8. Sample Quark

    ... } Sample : AbstractSample { // a small sound loaded from disk var <>soundFile,<beats=4.0,<tempo=1.0; var <beatsize,pchk,beatsizek,tempoi; var <end=0; // last possible frame for looping *new { arg soundFilePath,tempo,startFrame = 0,endFrame ...

  9. Sample Quark

    ... } Sample : AbstractSample { // a small sound loaded from disk var <>soundFile, <beats=4.0, <tempo=1.0; var <beatsize, pchk, beatsizek, tempoi; var <end=0; // last possible frame for looping *new { arg soundFilePath, tempo, startFrame = 0, e ...

  10. SlaveTempoClock Quark

    ... g startTime so that other SlaveTempoClocks // start at "compatible" times. On a beat..: ~slaveClock = SlaveTempoClock.new(~clockReceiver, 5.3, ((~clockReceiver.seconds / 5.3).ceil) * 5.3); // Have some Pbind fun with this clock ( ~bind = Pb ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow