Hi (again) guys,
I would like to interactively change the notes of a playing pattern: as an example, while the pattern is playing I would like to change the root note.
I’ve tryied different approaches (here I’m usign an extra simplyfied pattern for the sake of clarity).
Approach 1
(
a = 0;
Pbind(
\degree, 0,
\root, a,
).play;
)
Now trying to change the variable “a” evaluating a line like that:
a = 2;
nothing happens.
Approach 2
(
a = 0;
Pbind(
\degree, 0,
\root, {a},
).play;
)
Now trying to change the variable “a”, it works pretty well!
Approach 3
Now I want to make variable “a” a global one so I’ve changed the code this way
(
~a = 0;
Pbind(
\degree, 0,
\root, {~a},
).play;
)
And it has stopped working. Why?