[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
\fromproperty as instrument name
From: |
Menu Jacques |
Subject: |
\fromproperty as instrument name |
Date: |
Tue, 19 Apr 2016 09:40:47 +0200 |
Hello folks,
I’d like to use the instrument name specified in the header as the actual
instrument name:
%%%%%%%%%%
\version "2.19.39"
\header {
instrument = "Premier"
}
% The score definition
\score {
{
\new Staff <<
\set Staff.instrumentName = \markup{\fill-line{\fromproperty
#'header:instrument}}
\context Staff <<
\context Voice = "PremierVoiceOne"
{
a b c d
}
>>
>>
}
\layout {}
}
%%%%%%%%%%
But I get an error message on the next syntactical element, here \context
Staff, see below.
Thanks for your help!
JM
--
Starting lilypond 2.19.39 [FromPropertyAsInstrumentNameProblem.ly]...
Processing
`/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly'
Parsing...
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:13:7:
error: syntax error, unexpected \context
\context Staff <<
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:13:22:
error: unrecognized string, not in text script or \lyricmode
\context Staff
<<
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:14:24:
error: syntax error, unexpected STRING
\context Voice
= "PremierVoiceOne"
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:14:24:
error: unrecognized string, not in text script or \lyricmode
\context Voice
= "PremierVoiceOne"
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:14:42:
error: unrecognized string, not in text script or \lyricmode
\context Voice = "PremierVoiceOne
"
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:16:11:
error: unrecognized string, not in text script or \lyricmode
a b c d
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:16:13:
error: unrecognized string, not in text script or \lyricmode
a
b c d
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:16:15:
error: unrecognized string, not in text script or \lyricmode
a b
c d
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:16:17:
error: unrecognized string, not in text script or \lyricmode
a b c
d
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:18:7:
error: unrecognized string, not in text script or \lyricmode
>>
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:19:5:
error: unrecognized string, not in text script or \lyricmode
>>
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:20:3:
error: syntax error, unexpected '}'
}
/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly:23:2:
error: Unfinished main input
}
fatal error: failed files:
"/Users/menu/Documents/LaTeX/PartitionsLilypond/FromPropertyAsInstrumentNameProblem.ly"
Exited with return code 1.
- \fromproperty as instrument name,
Menu Jacques <=