Page 1 of 1

Change of instrument in a notes-string

Posted: Fri Oct 16, 2015 10:58 am
by Henko
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?

Re: Change of instrument in a notes-string

Posted: Fri Oct 16, 2015 11:22 am
by Mr. Kibernetik
Yes. Just put a space before 0:

music$="c3c4c3 0:cdefgabc"