Giovanni Roversi wrote:
> I'm writing a piece in wich the organ and other instruments play in 4/4,
> but a sort of lead synth solo is in 7/8. So, I want to write this
> producing also a midi file. But, in the snippets I found, there's not
> the \midi { } parameter, and if I add it doesn't work. I pasted the
> \layout {...} of the snippets in my file, but doesn't work too.
> How can I do what I want?
Looking at your score and what's written in it I'm not sure what you
want to achieve. Is the aim to have the top part 7/8 occurring in the
same horizontal space as the organ 4/4 -- i.e. 7 synth 8th-notes in the
same space as 8 organ 8th notes, so the barlines in the different staves
are in the same place -- or to have synth 8th=organ 8th?
I'm confused because you have different tempi marked in your synth and
organ parts.
Attached is a slightly tweaked version of your file (I've just commented
out some options) which seems to produce appropriate layout and midi for
the second case (8th=8th). Is this what you're looking for?
Best wishes,
-- Joe
\version "2.12.2"
\include "italiano.ly"
lead = \relative do'' {
%\tempo 4=120
\set Staff.keySignature = #`(((-0 . 2) . ,FLAT))
\time 7/8
\override Staff.Stem #'stemlet-length = #0.85
do'4 r8 [la] la [si si] |
si4 r8 [re,] mib [re la] |
mib'16 [fa] mib8 do, [re] mib fa [lab32 si lab si] |
}
right = \relative do'' {
\tempo 4=100
\set Staff.keySignature = #`(((-0 . 2) . ,FLAT))
\time 4/4
\numericTimeSignature
<re, fa la re>1~ |
<re fa la re> | %\break
<do mib sol do>~ |
<do mib sol do> |
}
left = \relative do' {
\tempo 4=100
\set Staff.keySignature = #`(((-1 . 2) . ,FLAT))
\time 4/4
\numericTimeSignature
<re, re,>1~ |
<re re,> |
<do do,>~ |
<do do,> |
}
pedal = \relative do {
\tempo 4=100
\set Staff.keySignature = #`(((-1 . 2) . ,FLAT))
\time 4/4
\numericTimeSignature
re,1~ |
re |
do~ |
do |
}
leadPart = \new Staff \with {
instrumentName = "Lead"
shortInstrumentName = "Ld."
midiInstrument = "lead 1 (square)"
} \lead
organPart = <<
\new PianoStaff \with {
instrumentName = "Organo"
shortInstrumentName = "Org."
} <<
\new Staff = "right" \with {
midiInstrument = "drawbar organ"
} \right
\new Staff = "left" \with {
midiInstrument = "drawbar organ"
} { \clef bass \left }
\new Staff = "pedal" \with {
midiInstrument = "drawbar organ"
} { \clef "bass_8" \pedal }
>>
>>
\score {
<<
\leadPart
\organPart
>>
\layout {
\context { \Score
\remove "Timing_translator"
%\remove "Time_signature_engraver"
\remove "Default_bar_line_engraver"
%\override SpacingSpanner #'uniform-stretching = ##t
%\override SpacingSpanner #'strict-note-spacing = ##t
%proportionalNotationDuration = #(ly:make-moment 1 64)
}
\context { \Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
%\consists "Time_signature_engraver"
}
\context { \Voice
%\remove Forbid_line_break_engraver
tupletFullLength = ##t
}
}
\midi { }
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user