Re: Tagging Troubles

2007-10-21 Thread mojocojo2000

Thanks for the response.  Now I'm running into a different problem.

I revised my score.ly and my piece.ly.  Here's what they look like:

% piece.ly

woodwinds = {
<<
% 2 flutes
\tag #'fl \new Staff { 
\tag #'fl \set Staff.midiInstrument = "flute"
\set Staff.instrumentName = \markup { \center-align { "2" \line { 
"Flutes"
} } }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Fl." } } }
\tag #'fl << \Key \global \partcombine \fluteOne \fluteTwo >> }
% 2 oboes
\tag #'ob12 \new Staff { 
\tag #'ob12 \set Staff.midiInstrument = "oboe"
\set Staff.instrumentName = \markup { \center-align { "2" \line { 
"Oboes" }
} }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Ob." } } }
\tag #'ob12 << \Key \global \partcombine \oboeOne \oboeTwo >> }
% 2 clarinets in bb
\tag #'bbcl \new Staff { 
\tag #'bbcl \set Staff.midiInstrument = "clarinet"
\set Staff.instrumentName = \markup { \center-align { "2" \line {
"Clarinets" } \line { "in B" \smaller \flat } } }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Clar." } \line { "in B" \smaller \flat } } }
\tag #'bbcl << \transpose bes c \Key \global \transpose bes c 
\partcombine
\clarinetBbOne \clarinetBbTwo >> }
% 2 bassoons
\tag #'bn12 \new Staff { 
\tag #'bn12 \set Staff.midiInstrument = "bassoon"
\set Staff.instrumentName = \markup { \center-align { "2" \line {
"Bassoons" } } }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Bsns." } } }
\tag #'bn12 << \Key \global \partcombine \bassoonOne \bassoonTwo >> }
>>
}
brass = {
<<
% 4 horns in f
\new GrandStaff  <<
% 2 horn in f
\tag #'fhn12 \new Staff { 
\tag #'fhn12 \set Staff.midiInstrument = "french horn"
\tag #'fhn12 << \Key \global \partcombine \hornFOne \hornFTwo 
>> }
% 2 horns in f
\tag #'fhn34 \new Staff { 
\tag #'fhn34 \set Staff.midiInstrument = "french horn"
\tag #'fhn34 << \transpose f c \Key \global \transpose f c 
\partcombine
\hornFThree \hornFFour >> } 
>>
>>
}

% score.ly

\include "piece.ly"
#(set-global-staff-size 14)
%\set Score.skipBars = ##t
\score { 
\new StaffGroup \woodwinds
\new StaffGroup \brass
\layout { }
\midi { }
}

When I try and compile score.ly I recieve a syntax error - unexpected \new,
referring to the \new preceding StaffGroup \brass.  Can you think of a
solution to this problem.  As an aside question is it possible to give an
"instrumentName" to the grandstaff?

Thanks.

Mats Bengtsson-4 wrote:
> 
> I'm not sure that you have correctly understood the syntax of \tag.
> For example in
> \tag #'woodwinds <<
>   ...
>  >>
> the tag applies to the full music expression << ... >>, not only to the 
> end of the line.
> 
>/Mats
> 
> mojocojo2000 wrote:
>> I'm trying to create a grand staff around two oboe parts when score.ly is
>> compiled.  The files I'm using are belowed.
>>
>> % piece.ly
>>
>> music = {
>> % oboe I.II
>> \tag #'woodwinds \new GrandStaff <<
>> \tag #'woodwinds \tag #'ob12 \new Staff { 
>> \tag #'woodwinds \tag #'ob12 \set Staff.midiInstrument = "oboe"
>> \tag #'woodwinds \set Staff.instrumentName = "Oboe I.II"
>> \tag #'woodwinds \set Staff.shortInstrumentName = "Ob.I.II"
>> \tag #'woodwinds \tag #'ob12 << \global \partcombine \oboeOne \oboeTwo >>
>> }
>> % oboe III.IV
>> \tag #'woodwinds \tag #'ob34 \new Staff { 
>> \tag #'woodwinds \tag #'ob34 \set Staff.midiInstrument = "oboe"
>> \tag #'woodwinds \set Staff.instrumentName = "Oboe III.IV"
>> \tag #'woodwinds \set Staff.shortInstrumentName = "Ob.III.IV"
>> \tag #'woodwinds \tag #'ob34 << \global \partcombine \oboeThree \oboeFour
>> >>
>> } 
>> \tag #'woodwinds >>
>> }
>>
>>
>> % ob12.ly
>> \version "2.10.0"
>> \i

Tagging Troubles

2007-10-18 Thread mojocojo2000

I'm trying to create a grand staff around two oboe parts when score.ly is
compiled.  The files I'm using are belowed.

% piece.ly

music = {
% oboe I.II
\tag #'woodwinds \new GrandStaff <<
\tag #'woodwinds \tag #'ob12 \new Staff { 
\tag #'woodwinds \tag #'ob12 \set Staff.midiInstrument = "oboe"
\tag #'woodwinds \set Staff.instrumentName = "Oboe I.II"
\tag #'woodwinds \set Staff.shortInstrumentName = "Ob.I.II"
\tag #'woodwinds \tag #'ob12 << \global \partcombine \oboeOne \oboeTwo >> }
% oboe III.IV
\tag #'woodwinds \tag #'ob34 \new Staff { 
\tag #'woodwinds \tag #'ob34 \set Staff.midiInstrument = "oboe"
\tag #'woodwinds \set Staff.instrumentName = "Oboe III.IV"
\tag #'woodwinds \set Staff.shortInstrumentName = "Ob.III.IV"
\tag #'woodwinds \tag #'ob34 << \global \partcombine \oboeThree \oboeFour >>
} 
\tag #'woodwinds >>
}


% ob12.ly
\version "2.10.0"
\include "piece.ly"
\header {
instrument = "Oboe I.II"
}
\score {
  \keepWithTag #'ob12 \music
  \layout { }
  \midi { }
}


% score.ly
\version "2.10.0"
\include "piece.ly"
#(set-global-staff-size 14)
\score {
\new StaffGroup \keepWithTag #'woodwinds \music
\new StaffGroup \keepWithTag #'brass \music
\new StaffGroup \keepWithTag #'percussion \music
\new StaffGroup \keepWithTag #'strings \music
\layout { }
\midi { }
}


The problem is when I compile score.ly I get an error about unexpected >>. 
This of course comes from the line -- \tag #'woodwinds >>  in piece.ly.  Is
there anyway to make this work?


-- 
View this message in context: 
http://www.nabble.com/Tagging-Troubles-tf4650947.html#a13287912
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Reduce space between notes

2007-09-13 Thread mojocojo2000

I seem to be having trouble reducing the space between the breve/longa and
other notes,  For example this command - \[ g\breve e\longa \], leaves a
huge space after it.  I've tried messing around with notecolumns and such,
with no success.  My source code is below, so if anyone has some helpful
advice that would be great!


-

\sourcefilename "whtmens.ly"
\version "2.10.29"

\new Score 
<<
 \new MensuralVoice  = "discantus" {
\clef "petrucci-c1" 
\time 3/2
\relative c' {
g'\breve \melisma a1
\[ g\breve e\longa \] f1 g2.\melismaEnd 
f4 \melisma g2 \melismaEnd a1 g4 f e1.. \melismaEnd
}
}
\new Lyrics \with {
fontSize = #-2
\override StaffSymbol #'staff-space = #(magstep -6) 
}
\lyricsto "discantus" {
Sanctus sanctus
}
   >>

-
-- 
View this message in context: 
http://www.nabble.com/Reduce-space-between-notes-tf4438301.html#a12663140
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


lilypond book error

2007-08-23 Thread mojocojo2000
I am using lilypond version 2.10.29.  I'm trying to integrate music
into a paper I have for a class.  When I input the following into my 
tex file:

\begin[quote,fragment,staffsize=26]{lilypond}
c' d' e' f' g'2 g'2
\end{lilypond}

(I got this from the tutorial)

I invoke lilypond book with the following command and receive an error:

C:\Python25\python.exe 
"C:\Program Files\Lilypond\usr\bin\lilypond-book.py"
--pdf --output="C:\lilypondtest" C:\test.tex


snippet-map.ly:3:1: error: GUILE signaled an error for the 
expression beginning
here
#
 (ly:add-file-name-alist '(
snippet-map.ly:4:30: illegal character in escape sequence: #\D
snippet-map.ly:3:4: error: syntax error, unexpected ':', expecting '='
#(ly
:add-file-name-alist '(
Processing `lily-a9db7ba2f3.ly'
Parsing...
lily-a9db7ba2f3.ly:97:5: error: unknown escaped string: `\notes'

 \notes \relative c' {
lily-a9db7ba2f3.ly:97:5: error: syntax error, unexpected STRING

 \notes \relative c' {
lily-a9db7ba2f3.ly:98:8: error: unknown escaped string: `\property'

\property Voice.autoBeaming = ##f
lily-a9db7ba2f3.ly:98:8: error: syntax error, unexpected STRING

\property Voice.autoBeaming = ##f
lily-a9db7ba2f3.ly:97:12: error: errors found, ignoring music 
expression
 \notes
\relative c' {
lily-a9db7ba2f3.ly:103:8: error: syntax error, unexpected '}'

}
error: failed files: "lily-a9db7ba2f3 snippet-map.ly"
command failed: lilypond -b eps -I  "C:\\test" 
--formats=eps  -deps-box-padding=3.0
0  -dread-file-list  snippet-names
Child returned 1

Thanks for your help.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user