Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: [1]   Go Down

Author Topic: How to change midi programs in ABC?  (Read 1144 times)

0 Members and 1 Guest are viewing this topic.

Disparate Dan

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 329
How to change midi programs in ABC?
« 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?
Logged
We're all doomed ...

Gena Crisman

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1108
  • 🇬🇧
Re: How to change midi programs in ABC?
« Reply #1 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.
Logged

Disparate Dan

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 329
Re: How to change midi programs in ABC?
« Reply #2 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!
Logged
We're all doomed ...
Pages: [1]   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal