diff options
Diffstat (limited to 'lib/Scale.ck')
-rw-r--r-- | lib/Scale.ck | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Scale.ck b/lib/Scale.ck index 9eeea0a..c6b1a24 100644 --- a/lib/Scale.ck +++ b/lib/Scale.ck @@ -14,6 +14,11 @@ public class Scale extends Chubgraph { fun void __update() /* pseudo-private */ { + /* + * Note that "__out_from" can be greater than "__out_to", resulting in the + * desired inversion of scaling + * (just like __out_from < __out_to and -SAMPLE was used). + */ (__out_to-__out_from)/(__in_to-__in_from) => inlet.gain; __out_from - __in_from*inlet.gain() => __base.next; } |