lilypond-user
[Top][All Lists]
Advanced

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

Re: staff size and tremolo


From: Libero Mureddu
Subject: Re: staff size and tremolo
Date: Wed, 4 Aug 2004 13:41:32 +0200

Thank you for your help, the short explanation about kinds of syntaxes is very clear and helpful, but I've already tried to put somewhere else the \with {...} with no results. Anyway, I tried your solution putting \with after PianoMD, no more errors but the pdf doesn't have the staff reduced. The same if I put \with in the \score at the bottom of the file. With the drums part (\new DrumStaff at the bottom) I have the staff size reduced.

Libero Mureddu

\version "2.2.5"

\header {
  title = "A Rameau"
  composer = "Libero Mureddu"
}
% ----- Piano -----
mdSuperiore = \notes {
\key g \major
 % \voiceOne
 \mark \default
 r4 r8 \relative g'' {g16 fis e d c b a}
  \relative g' {g fis e }\time 2/4
  | {d' c' b a g fis e fis}


}

mdInferiore = \notes {
 % \voiceTwo

}

msSuperiore = \notes {
  % \voiceOne
  }

msInferiore = \notes {
  \voiceTwo
  \key g \major
  \relative c {
    \repeat "tremolo" 16 { g32 d'32 } }
  }

% HERE IS WHERE YOU SUGGESTED TO PUT \with
PianoMD = {
  \clef treble
  \context Staff <<
    \context Voice = one \with {
          fontSize = #-1
          \override StaffSymbol #'staff-space = #(magstep -1)
      }\mdSuperiore
    \context Voice = two \with {
          fontSize = #-1
          \override StaffSymbol #'staff-space = #(magstep -1)
      }\mdInferiore
  >>
}

PianoMS = {
  \clef bass
  \context Staff <<
  \context Voice = One \msSuperiore
  \context Voice = Two \msInferiore
>>
}

piano = {
  \context PianoStaff <<
  \override PianoStaff.TimeSignature  #'style = #'numbered
  \set PianoStaff.instrument = "Pianoforte "
  \context Staff = upper \PianoMD
  \context Staff = lower\PianoMS
>>
}

% ----- Contrabbasso -----

basso = \notes {
  \key g\major
  | \relative c {g8. g'8 g,8 g'8. [g,8 g'] g,8~ [
  | g16 g'8 g,] g'8.
  | g,4 g8.
  }
}

basso = {
  \set Staff.instrument = "Contrabbasso"
  \override Staff.TimeSignature  #'style = #'numbered
  \clef bass
  \context Staff <<
    \basso
  >>
}

% ----- Batteria -----

su = \drums {
  hh4
}

giu = \drums {
  bd4
}
drumContents = {
  <<
  \override Staff.TimeSignature  #'style = #'numbered
    \set DrumStaff.instrument = "Batteria"
    \new DrumVoice { \voiceOne \su }
    \new DrumVoice { \voiceTwo \giu }
  >>
}

% HERE I TRIED TO INSERT THE \with
% ----- partitura -----
\score {
  <<
  \context PianoStaff = piano \with {
          fontSize = #-1
          \override StaffSymbol #'staff-space = #(magstep -1)
      } \piano
  \context Staff = basso \basso
  \new DrumStaff { \drumContents }
>>
}

Il giorno 04/ago/04, alle 12:59, Mats Bengtsson ha scritto:

It's probably not very clear from the manual, but you can use the
\with{...} feature together with both syntaxes for creating a new
context:
\new Staff \with {SOME SETTINGS} {MUSIC}
and
\context Staff = NAME \with {SOME SETTINGS} {MUSIC}

So, in your example, you probably want to do
PianoMD = {
  \clef treble
  \context Staff <<
    \context Voice = one \with{...} \mdSuperiore
    \context Voice = two \with{...} \mdInferiore
  >>
}

The warning about the tremolo is harmless. It seems that the
implementors didn't think of the case of a full bar tremolo,
when they designed that warning. Since you get the correct
output, it's nothing to worry about.

   /Mats

Libero Mureddu wrote:
Hi!
First of all, congratulation for this nice and interesting software, that I'm trying to learn in order to free myself, in a near future, both from sibelius and finale!
That's my problem:
I want to reduce the size of one staff, in my case the piano staff, but the solution found in the docs -> tips and tricks -> staff-size.ly is applied after the \new Staff \with etc. Organizing my piece I used the structure shown in templates -> jazz-combo.ly, where the \new exist in the \score only for the drums. I don't know where to put the lines to reduce the staff for the other parts. Here is the structure of my file:
 about the tremolo I receive the following warning:
warning: beam has less than two visible stems:
    \repeat "tremolo" 16 { g32 d'32
                                    } }
What's wrong wtih my tremolo?
I'm using lilypond 2.2.5
apple ibook g3 800
mac os 10.3.4
Thank you in advance for your help.
Libero Mureddu
Vanha Viertotie, 21 As. 415
00350 Helsinki - Finlandia
Tel. +358-9-5808415
Mob. +358-41-7702668
address@hidden
Via Abbiati, 4
20148 Milano - Italia
Tel. +39-02-4075953
Mob. +39-339-8757587
\version "2.2.5"
\header {
  title = "A Rameau"
  composer = "Libero Mureddu"
}
% ----- Piano -----
mdSuperiore = \notes {
\key g \major
 % \voiceOne
 \mark \default
 r4 r8 \relative g'' {g16 fis e d c b a}
  \relative g' {g fis e }\time 2/4
  | {d' c' b a g fis e fis}
}
mdInferiore = \notes {
 % \voiceTwo
}
msSuperiore = \notes {
  % \voiceOne
  }
msInferiore = \notes {
  \voiceTwo
  \key g \major
  \relative c {
    \repeat "tremolo" 16 { g32 d'32 } }
  }
PianoMD = {
  \clef treble
  \context Staff <<
    \context Voice = one \mdSuperiore
    \context Voice = two \mdInferiore
  >>
}
PianoMS = {
  \clef bass
  \context Staff <<
  \context Voice = One \msSuperiore
  \context Voice = Two \msInferiore
 >>
}
piano = {
  \context PianoStaff <<
  \override PianoStaff.TimeSignature  #'style = #'numbered
  \set PianoStaff.instrument = "Pianoforte    "
  \context Staff = upper \PianoMD
  \context Staff = lower\PianoMS
 >>
}
% ----- Contrabbasso -----
basso = \notes {
  \key g\major
  | \relative c {g8. g'8 g,8 g'8. [g,8 g'] g,8~ [
  | g16 g'8 g,] g'8.
  | g,4 g8.
  }
}
basso = {
  \set Staff.instrument = "Contrabbasso"
  \override Staff.TimeSignature  #'style = #'numbered
  \clef bass
  \context Staff <<
    \basso
  >>
}
% ----- Batteria -----
su = \drums {
  hh4
}
giu = \drums {
  bd4
}
drumContents = {
  <<
  \override Staff.TimeSignature  #'style = #'numbered
    \set DrumStaff.instrument = "Batteria"
    \new DrumVoice { \voiceOne \su }
    \new DrumVoice { \voiceTwo \giu }
  >>
}
% ----- partitura -----
\score {
  <<
  \context PianoStaff = piano \piano
  \context Staff = basso \basso
  \new DrumStaff { \drumContents }
 >>
}
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


Libero Mureddu
Vanha Viertotie, 21 As. 415
00350 Helsinki - Finlandia
Tel. +358-9-5808415
Mob. +358-41-7702668

Via Abbiati, 4
20148 Milano - Italia
Tel. +39-02-4075953
Mob. +39-339-8757587


reply via email to

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