Suppose I have a play pattern [:a, :b, :c3, d, etc.] and I want to transpose it to a key, say Bb. Thus, I need to lower the notes : [b, e, a, b2, ,e2,a2, b3, e3, a3]
I’m trying to use a conditional statement with use_transpose:
in_thread do
if note(:b, :e, :a, :b3, :b2, :e3, :e2, :a3, :a2)
use_transpose -1
end
play_pattern_timed [:c2, :c3, :b3, :f3, :gb3, :c2, :b2, :b2],[0.5, 0.25, 0.125, 0.125, 0.25, 0.25, 0.25, 0.25]
sleep 1
end
The problem is that the code ends up transposing the entire pattern down a semitone (-1)
instead of just the necessary notes for the key of Bb (b,e,a) . How can i make this happen? Thanks