Change of instrument in a notes-string

Post Reply
Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Change of instrument in a notes-string

Post 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?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Change of instrument in a notes-string

Post by Mr. Kibernetik »

Yes. Just put a space before 0:

music$="c3c4c3 0:cdefgabc"

Post Reply