Would love to see what you did.
Here’s the a combination of the two examples I made vids of. One axis controls the note and one controls the cutoff.
define :rMap do |rIn, rOut, v|
dOut = rOut[1] - rOut[0]
dIn = rIn[1] - rIn[0]
dOut / dIn * (v - rIn[0]) + rOut[0]
end
live_loop :foo do
use_real_time
b, c = sync "/osc/wek/inputs"
set :yaw, c
set :roll, b
end
n = scale(:e3, :aeolian, num_octaves: 2)
live_loop :osctest, sync: :foo do
use_real_time
use_synth :tb303
x = rMap([-3.5, 3.2], [1.0, 131.0], get[:yaw])
y = rMap([-1.6, 1.6], [0.0, n.length], get[:roll])
play n[y], cutoff: x
sleep 0.25
end