mercury-playground icon indicating copy to clipboard operation
mercury-playground copied to clipboard

Mapping incoming osc values to new range

Open tmhglnd opened this issue 3 years ago • 0 comments

When inputting osc messages as arguments it is nice if their is a way to remap the range of numbers. Eg:

new synth saw note('/osc/value{-1:1:7:24}')

This will scale incoming values between a range from -1 to 1 to a new range of 7-24

Or maybe it is possible to keep using the Total-Serialism list functions in a form of:

new synth saw note(map('/osc/value' -1 1 7 24))

tmhglnd avatar Oct 24 '22 08:10 tmhglnd