Melodeon.net Forums

Discussions => Tunes => ABC => Topic started by: Roger Hare on February 15, 2019, 10:55:06 PM

Title: Forcing instrument for second voice.
Post by: Roger Hare on February 15, 2019, 10:55:06 PM
I'm transcribing a few fife tunes and am using a MIDI flute as the best approximation.

Some of the tunes have two voices (melody and harmony presumably?).

I can force the MIDI playback instrument to be the flute with:

%%MIDI program 73 % (standard instrument value - 1) - forces Flute

However, this only works for the first voice. The second voice plays as the
MIDI default instrument (grand pianner). Changing the instrument for that voice
in the ABC settings menu (I'm using EasyABC) doesn't seem to work.

Can some kind soul tell me how to force the second voice to play as a flute
(or anything else for that matter)?

I've looked through Guido Gonzato's manual, and can't see anything...

Thank you.

Roger
Title: Re: Forcing instrument for second voice.
Post by: Gena Crisman on February 15, 2019, 11:11:12 PM
This works for me:

Code: [Select]
X:137
T:Midi Voices
M:4/4
L:1/8
K:C
V:A clef=treble  name="A"   snm="A"
V:B clef=treble  name="B"   snm="B"
V:A
K:D
%%MIDI program 25  % Some kinda string thing
DDDDDDDD|DDFFDDFF:|
V:B
K:D
%%MIDI program 80 % Some rad Synth
d4D4|d4D4:|
Title: Re: Forcing instrument for second voice.
Post by: Roger Hare on February 16, 2019, 03:20:37 AM
This works for me:
  .
  .

Ah! Putting the MIDI declaration within the 'scope' of each voice. I should have thought of that!
Job done - it works for me too. Thank you very much indeed!

Roger.

Later edit: I now see that GC's code can be simplified even further, at least in the very simple
examples I'm working with:

Code: [Select]
X:137
T:Midi Voices
M:4/4
L:1/8
K:D
V:1
%%MIDI program 25  % Some kinda string thing
DDDDDDDD|DDFFDDFF:|
V:2
%%MIDI program 80 % Some rad Synth
d4D4|d4D4:|
SimplePortal 2.3.5 © 2008-2012, SimplePortal