Change of instrument in a notes-string
Posted: Fri Oct 16, 2015 10:58 am
Hi,
In the following peace of string : music$="c3c4c30:cdefgabc" , the intention is to play note c in the 3th octave and then change to instrument 0 (grand piano).
Instead, instrument 30 is chosen, instrument takes priority.
One solution is to use brackets : music$="c3c4(c3)0:cdefgabc", but requires nasty coding to interprete already generated music commands.
A second solution is an easy coded closing bracket just ahead of the instrument number : music$="c3c4c3)0:cdefgabc", but this introduces a small pause (which is acceptable).
Is there an "official" method to solve this?
In the following peace of string : music$="c3c4c30:cdefgabc" , the intention is to play note c in the 3th octave and then change to instrument 0 (grand piano).
Instead, instrument 30 is chosen, instrument takes priority.
One solution is to use brackets : music$="c3c4(c3)0:cdefgabc", but requires nasty coding to interprete already generated music commands.
A second solution is an easy coded closing bracket just ahead of the instrument number : music$="c3c4c3)0:cdefgabc", but this introduces a small pause (which is acceptable).
Is there an "official" method to solve this?