This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DummyMIDI { | |
| var dummy = 0; | |
| *new { | |
| ^super.newCopyArgs(); | |
| } | |
| noteOn {} | |
| noteOff {} | |
| control {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // XMP parsing requires: | |
| // Quarks.install("XML"); [in supercollider] | |
| // brew install exiftool [in terminal] | |
| +SoundFile { | |
| exiftoolPath { | |
| ^"/usr/local/bin/exiftool" | |
| } | |
| extractMarkers { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| double cfunc(int a, int b, float c, double d) | |
| { | |
| return d + c + b + a; | |
| } | |
| template <typename ValueT> | |
| void SetSlotVal(PyrSlot* slot, const ValueT& val); | |
| template<> void SetSlotVal<double>(PyrSlot* slot, const double& val) { SetFloat(slot, val); } | |
| template<> void SetSlotVal<float>(PyrSlot* slot, const float& val) { SetFloat(slot, val); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Deferred { | |
| var value, error, resolved=\unresolved, waitingThreads; | |
| *new { | |
| ^super.new.init | |
| } | |
| *using { | |
| |func, clock| | |
| var d = Deferred(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Deferred | |
| ( | |
| // Value is not available yet, so error | |
| d = Deferred(); | |
| d.value.postln; | |
| ) | |
| ( | |
| // Value is available |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + Bus { | |
| debugScope { | |
| | title, names | | |
| var w, ms, listArray, size=380, sliderLoc=0, routine, bus, | |
| min=1000.0, max=(-1000.0), minBox, maxBox, val=0, valBox, synth, m, n, bottom, | |
| playSynthFunction, cmdPeriodFunction, layout; | |
| cmdPeriodFunction = {}; | |
| title = title ? "bus %".format( index ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +SynthDef { | |
| // buildForProxy {} | |
| numChannels { | |
| ^(desc !? (_.numChannels)) | |
| } | |
| rate { | |
| ^(desc !? (_.rate)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Only pull a value once per clock time - else, return the previous value | |
| PtimeClutch : FilterPattern { | |
| var <>delta; | |
| *new { | |
| |pattern, delta=0.0| | |
| ^super.new(pattern).delta_(delta); | |
| } | |
| embedInStream { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +Object { | |
| assertChannels { | |
| |...args| | |
| if (this.asArray.shape != args) { | |
| Exception("Expected array of shape % (array is %)".format(args, this.shape)).throw; | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pmod : Pattern { | |
| classvar defCache; | |
| var <>synthName, <>patternPairs, <rate=\control, <>channels=1; | |
| *new { | |
| |synthName ... pairs| | |
| ^super.newCopyArgs(synthName, pairs) | |
| } | |
| *kr { |