lilypond-user
[Top][All Lists]
Advanced

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

Re: Newbie question


From: Warren Stickney
Subject: Re: Newbie question
Date: Sat, 20 Sep 2003 14:49:11 +1200

Ricardo,

I used to get these warnings too, but I think I'm correct in saying that
they ceased when I started using separate score blocks for paper and midi
output.  (Lily 1.8.1 under cygwin).

I use two global sections, one for paper and one for midi (to give me tempo
changes without getting warning messages about junking tempo request) as in
a typical example below:

globalpaper = \notes {
\key f \major
\time 3/4
\skip 2.*8
\time 1/2
\skip 2*1
\time 2/2
\skip 1*12
\bar "|."
}

globalmidi = \notes {
\repeat volta 2 {
\tempo 2.=72
\skip 2.*8 }
\tempo 2=72
\skip 2*1
\repeat volta 2 {
\skip 1*10 }
\alternative {{ s1 }{ s1 }}
}

Then

voiceSopA = some notes
wordsSopA = some lyrics

etc for other voices, then I incorporate global paper within the voice
definitions

SopranoA = \notes <
             \addlyrics
             \context Staff=SopA {
             \property Staff.instrument = "S 1  "
               \property Staff.midiInstrument = "acoustic grand"
             \VoiceDefault
             \context Voice=SopA <
               \globalpaper
               \voiceSopA
             >}
             \context Lyrics=SopA <
             \context LyricsVoice=SopAVA <
             \property LyricsVoice . stanza = "1."
             \wordsSopAVA                >
             \context LyricsVoice=SopAVB <
             \property LyricsVoice . stanza = "2."
             \wordsSopAVB                >
             > >

etc for the other voices, and finally score block for paper output only

\score {  \notes \transpose c c
          \context ChoirStaff = All <
          \context InnerChoirStaff = Sops <
            \SopranoA
            \SopranoB
                                          >
            \Tenor
                                    >

         \paper {
                  textheight = 25.0\cm
                  interscoreline = 10.0\mm
                  interscorelinefill = 1
                \translator {
   \ScoreContext
   breakAlignOrder = #'(
    instrument-name
    left-edge
    ambitus
    span-bar
    breathing-sign
    clef
    key-signature
    staff-bar
    time-signature
    custos
                              )
                            }
                \translator {
   \VoiceContext
   \consists Ambitus_engraver
                  }
                  \translator{
                  \ScoreContext StanzaNumber \override #'break-align-symbol
= #'begin-of-note }
                 }
}

and a score block for midi only

\score { \notes \transpose c c
         \apply #unfold-repeats <
            \globalmidi
            \SopranoA
            \SopranoB
            \Tenor
                                >
         \midi { \tempo 2=108 }
}



Warren Stickney
Wellington,
New Zealand

Replying to your:

------------------------------

Message: 7
Date: Fri, 19 Sep 2003 20:57:16 -0300
From: "Ricardo Kirkner" <address@hidden>
Subject: Re: Newbie question
To: "Graham Percival" <address@hidden>
Cc: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"

> > | some notes | == 1 bracket
>
> Ah, I see.  In North America, a "bracket" is normally called a "bar".
>

first of all, thank you for correcting my terminology. at least now I can
refer to this term correctly :-)

> Please provide an example and tell us what version you're using.  Are you
> setting the midiInstrument property instead of instrument?
>

here is a part of my source file


theMusic = \context Score
 <
  \context ChoirStaff = Choir <
   \context Staff = SopranoStaffOne <
   \property Staff.instrument = #"Soprano"
   \addlyrics
     \context Voice =         SopranoOneVoice { \SopranoOneNotes }
     \context Lyrics = SopranoOneLyrics { \SopranoOneLyrics }
   >
... here go other voices ...
>
>

the output I get is:

Interpreting music...
MIDI output to 'test.ly'
Track ... warning: no such instrument: 'soprano'

I know it is just a warning, but I would like not to have it. :-)

i am using lilypond version 1.8.1 (under cygwin)

i appreciate your help

ricardo

------------------------------





reply via email to

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