lilypond-user
[Top][All Lists]
Advanced

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

Re: Is there a way to set the midiInstrument for ChordNames with FretBoa


From: Henning Hraban Ramm
Subject: Re: Is there a way to set the midiInstrument for ChordNames with FretBoards?
Date: Fri, 27 May 2022 09:38:05 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Hi,
I’d suggest to use two different \score s, one for \layout and the other for \midi, then you can setup them differently. I attached my own template – you can’t use it directly, since I left out the file with my settings, and you probably don’t want that German stuff, but you get an idea about the structure.

Hraban

Am 27.05.22 um 03:40 schrieb Kevin Cole:
Hi,

I have a score with an outline shown below. I managed to get the vocal
part doing "choir aahs", and the piano defaults to a piano instrument,
but is there a way to have ChordNames / FretBoards do anything with
"acoustic guitar (nylon)"?  Even if the playback isn't super accurate
in terms of duration, it seems like, with the fretboards, it would be
able to have a half-educated notion of which notes to sound.)

(And, is there a better way to set the "choir aahs" -- without
changing the whole thing around too much? It somehow feels redundant
to add "\new Staff" around the "\new Voice" since the staff was
already showing without it, but I couldn't get the MIDI to sound
without adding the "\new Staff".)

Thanks.

%%%%%%%%
\version "2.22.1"
\language "english"

global = {
   \time 2/4
   \key c \major
   \tempo 4 = 80
}

chordNames = \chordmode   { ... }
melody     = \relative c' { ... }
words      = \lyricmode   { ... }
upper      = \relative c' { ... }
lower      = \relative c  { ... }

\score {
   <<
     \new ChordNames \chordNames
     \new FretBoards \chordNames
     \new Staff \with { midiInstrument = #"choir aahs" }
     <<
       \new Voice = "mel" { \melody }
     >>
     \new Lyrics \lyricsto mel \words
     \new PianoStaff
     <<
       \new Staff = "upper" \upper
       \new Staff = "lower" \lower
     >>
   >>
   \layout { }
   \midi   { }
}
%%%%%%%%

Attachment: global_liedvorlage.ly
Description: Text document


reply via email to

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