help-gnu-music
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting midiInstrument globally


From: Mats Bengtsson
Subject: Re: Setting midiInstrument globally
Date: Fri, 02 Mar 2001 18:22:52 +0100

> I am using the Staff.instrument to print exercises numbers, so I must
> use midiInstrument to set the instrument to be used for midi
> output. It works well if I use 
> 
>         \property Staff.midiInstrument = "trumpet"
> 
> in each score, but since I've got many of them I'd like to set this
> globally. I tried this without any success :

I haven't tried, but I think you could do:

\midi{
  \translator{
    \ScoreContext
    midiInstrument = "trumpet";
  }
}

at the top of your file. The contexts for paper output and midi 
are separate.

      /Mats





reply via email to

[Prev in Thread] Current Thread [Next in Thread]