Exposed harmonics as a value on the Granulator
parent
0cc6a17475
commit
ec7c859f36
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
Granulator {
|
||||
var <buflen, <inb, <outb, <>posb, <triggerb, <pitchb, <rectriggerb, <modb, <buffer, <recorder, <grains, <triggersynth, <pitchsynth, server, mode, record, gain, mix, speed, trigger, size, blur, dust, slope, back, chorus, detune, pitch, pan, track, jitter;
|
||||
var <buflen, <inb, <outb, <>posb, <triggerb, <pitchb, <rectriggerb, <modb, <buffer, <recorder, <grains, <triggersynth, <pitchsynth, server, mode, record, gain, mix, speed, trigger, size, blur, dust, slope, back, chorus, harmonics, detune, pitch, pan, track, jitter;
|
||||
|
||||
*init {
|
||||
SynthDef(
|
||||
|
@ -73,6 +73,7 @@ Granulator {
|
|||
back = 0;
|
||||
slope = 0;
|
||||
chorus = 0;
|
||||
harmonics = 2;
|
||||
detune = 0;
|
||||
pitch = 0;
|
||||
mix = 0.25;
|
||||
|
@ -122,6 +123,7 @@ Granulator {
|
|||
size { ^size }
|
||||
blur { ^blur }
|
||||
chorus { ^chorus }
|
||||
harmonics { ^harmonics }
|
||||
detune { ^detune }
|
||||
pitch { ^pitch }
|
||||
dust { ^dust }
|
||||
|
@ -145,6 +147,7 @@ Granulator {
|
|||
slope_ { | v | slope = v; pitchsynth.set(\track, v); }
|
||||
back_ { | v | back = v; pitchsynth.set(\dir, if( v > 0, { -1 }, { 1 })); }
|
||||
chorus_ { | v | chorus = v; pitchsynth.set(\chorus, v); }
|
||||
harmonics_ { | v | harmonics = v; pitchsynth.set(\harmonics, v); }
|
||||
detune_ { | v | detune = v; pitchsynth.set(\detune, v); }
|
||||
pitch_ { | v | pitch = v; pitchsynth.set(\pitch, v); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue