Skip to content

Commit

Permalink
Add TidalFX SynthDefs (#101)
Browse files Browse the repository at this point in the history
add TidalFX SynthDefs
  • Loading branch information
calumgunn authored and telephon committed Dec 8, 2018
1 parent 0dc026a commit 85e1051
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
42 changes: 42 additions & 0 deletions library/default-effects-extra.scd
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Waveloss
// Divides an audio stream into tiny segments, using the signal's
// zero-crossings as segment boundaries, and discards a fraction of them.

(
SynthDef("waveloss" ++ ~dirt.numChannels, { |out, drop = 1|
var sig;

sig = In.ar(out, ~dirt.numChannels);
sig = WaveLoss.ar(sig, drop, outof: 100, mode: 2);
ReplaceOut.ar(out, sig)
}).add;

~dirt.addModule('waveloss', { |dirtEvent|
dirtEvent.sendSynth('waveloss' ++ ~dirt.numChannels,
[
drop: ~waveloss,
out: ~out
]
)
}, { ~waveloss.notNil });

// Squiz
// "reminiscent of some weird mixture of filter, ring-modulator
// and pitch-shifter"

SynthDef("squiz" ++ ~dirt.numChannels, { |out, pitchratio = 1|
var sig;
sig = In.ar(out, ~dirt.numChannels);
sig = Squiz.ar(sig, pitchratio);
ReplaceOut.ar(out, sig)
}).add;

~dirt.addModule('squiz', { |dirtEvent|
dirtEvent.sendSynth('squiz' ++ ~dirt.numChannels,
[
pitchratio: ~squiz,
out: ~out
]
)
}, { ~squiz.notNil });
)
7 changes: 2 additions & 5 deletions synths/try-load-extra-synths.scd
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@


if(\MembraneHexagon.asClass.isNil) {

"Dirt could not load some synths from default-synths.scd, because sc3plugins are necessary and missing.".warn

} {
loadRelative("../library/default-synths-extra.scd");
};
loadRelative("../library/default-effects-extra.scd");
};

0 comments on commit 85e1051

Please sign in to comment.