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?
Change of instrument in a notes-string
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Change of instrument in a notes-string
Yes. Just put a space before 0:
music$="c3c4c3 0:cdefgabc"
music$="c3c4c3 0:cdefgabc"