tmhglnd / mercury-playground

The Mercury live coding environment running in the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mapping incoming osc values to new range

tmhglnd opened this issue · comments

commented

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))