Melodeon.net Forums

Discussions => Teaching and Learning => Topic started by: Disparate Dan on July 05, 2024, 12:39:51 PM

Title: How to change midi programs in ABC?
Post by: Disparate Dan on July 05, 2024, 12:39:51 PM
I am in the habit of using Michael Eskin's ABC tools to produce both a notation printout and a soundfile from the ABC of tunes I want to learn.  The settings I use for this include Accordion, Mute and Mute as my default Melody, Bass and Chords midi programs respectively. 
 
I now want to convert a chunk of ABC which includes the following code:-

%%barnumbers 1
%%MIDI program 73 % flute
%%MIDI chordprog 1 % piano
V:1 gchord=down

but when I listen to the conversion from that in ABC tools, I'm hearing the flute and piano despite my default settings.

How do I rewrite the ABC so all I hear is my default setting i.e. just melody = accordion?
Title: Re: How to change midi programs in ABC?
Post by: Gena Crisman on July 05, 2024, 02:28:04 PM
Deleting the %%MIDI lines entirely, or, addding or removing a % might also do it.

Lines in the abc will override your defaults, because they're more specific.
Title: Re: How to change midi programs in ABC?
Post by: Disparate Dan on July 05, 2024, 03:07:03 PM
Thank you Gena.  Problem solved.  The reason that deleting those two lines didn't work when I tried it seems to have been that I omitted to close up the ensuing gap!
SimplePortal 2.3.5 © 2008-2012, SimplePortal