Il 09/12/2012 19:52, Felix Janda ha scritto:
A possible strategy is using minimumFret when I don't want to show the
>  string number, but I'm a bit afraid of the warnings that it may generate
>  (done just few tests).
>  What do you recommend?
It sounds like a good strategy. What warnings? How about for example setting
minimumFret to 7 and enabling restrainOpenStrings in measure 8?

Yes, in measure 9.
The warning is:

warning: No string for pitch #<Pitch d > (given frets (10 7 7))
warning: No string for pitch #<Pitch d, > (given frets (7 10 7 7))

If I comment restrainOpenStrings the warning disappears.
But I can't reproduce the error in a minimal example, I can't understand what's wrong.

Any thoughts?
--
Federico
\version "2.17.9"

% copied and pasted from Saltarello
% get no warnings here

first =  \relative c' {
  \time 3/4
  \set minimumFret = #7
  \set restrainOpenStrings = ##t
  d8\3 ( e) fis4\2 g
  \set minimumFret = #0
  
  a\2
}

second = \relative c, {
  \time 3/4
  d4 a' d
}

\score {
  \new StaffGroup <<
    \new Staff = "guitar" <<
      \context Voice = "first voice" { \clef "G_8" \voiceOne  \first }
      \context Voice = "second voice" { \clef "G_8" \voiceTwo  \second }
    >>
    \new TabStaff = "tab" \with {
      stringTunings = #guitar-drop-d-tuning
    } <<
      \context TabVoice = "tab first voice" { \clef "moderntab" \voiceOne \first }
      \context TabVoice = "tab second voice" { \clef "moderntab" \voiceTwo \second }
    >>
  >>
}
\version "2.16.1"

P=\rightHandFinger #1 

\header {
  title = "Saltarello"
  composer = "GalileiV"
  instrument = "Guitar"
  enteredby = "Emre Akbas"
  piece = \markup { \circle 6 = D } % drop D tuning

  % mutopia headers
  mutopiatitle = "Saltarello"
  mutopiacomposer = "Vincenzo Galilei (1520-1591)"
  mutopiainstrument = "Guitar"

  style = "Renaissance"
  copyright = "Public Domain"
  maintainer = "Federico Bruni"
  moreinfo = "Originally typesetted by Emre Akbas (emreak...@yahoo.com)"
  
  lastupdated = "2001/Aug/26"
  footer = "Mutopia-2001/08/26-110"
  tagline = \markup { \override #'(box-padding . 1.0) \override #'(baseline-skip . 2.7) \box \center-column { \small \line { Sheet music from \with-url #"http://www.MutopiaProject.org"; \line { \teeny www. \hspace #-0.5 MutopiaProject \hspace #-0.5 \teeny .org \hspace #0.5 } • \hspace #0.5 \italic Free to download, with the \italic freedom to distribute, modify and perform. } \line { \small \line { Typeset using \with-url #"http://www.LilyPond.org"; \line { \teeny www. \hspace #-0.5 LilyPond \hspace #-0.5 \teeny .org } by \maintainer \hspace #-0.6 . \hspace #0.5 Reference: \footer } } \line { \teeny \line { This sheet music has been placed in the public domain by the typesetter, for details see: \hspace #-0.5 \with-url #"http://creativecommons.org/licenses/publicdomain"; http://creativecommons.org/licenses/publicdomain } } } }
}

global = {
  \time 3/4
  \key d \major
  % Removed manual beaming in bars 5, 13 and 29 because of issue 2907:
  % http://code.google.com/p/lilypond/issues/detail?id=2907
  % Nevertheless, using the following settings is probably better anyway
  \set Timing.beamExceptions = #'()
  \set Timing.baseMoment = #(ly:make-moment 1 8)
  \set Timing.beatStructure = #'(2 2 2)
}


first =  \relative c' {
  \global
  \repeat volta 2 {
    % 1
    d8 ( e\2 ) fis4 g |
    a2 \glissando b4 |
    g4 e a |
    fis2. |
    % 5
    e8\2( d)  e( fis)  g( e) |
    fis2 g4 ~ |
    g4 e e8 ( fis) |
    d2. |
    \set minimumFret = #7
    \set restrainOpenStrings = ##t
    d8\3 ( e) fis4\2 g |
    \set minimumFret = #0
    % 10
    a2\2 \glissando b4\2 |
    g4\2 e\3 a\2 |
    fis2.\2 |
    e8\2 ( d)  e\2 ( fis\2)  g\2 ( e\2) |
    fis4\2 e8[ fis]  g[ fis] |
    % 15
    e8[ d]  cis[ d]  e[ fis] |
    d2. |
    fis4 e d |
    fis2. |
    fis4\2 e\3 d\3 |
    % 20 
    a'2.\2 |
    fis4 e d |
    a'2 g4 ~ |
    g4 e4. fis8 |
    d2. |
    % 25
    g8\2 ( fis\2 ) e4\3 d\3 |
    fis2.\2 |
    g8\2 ( fis\2 ) e4\3 d\3 |
    a'2.\2 |
    e8\2 ( d\2 )  e\2( fis\2) g\2( e\2) |
    % 30 
    fis4\2 g8[ fis]  e[ d] |
    cis[ b]  cis[ d]  e[ fis] |
    d2. |
    R2.
    \harmonicByFret #7 <g,\3 b,,\2 e,\1>2. |
    <d,,, a' d d'\3 fis\2 d'\1>2.\arpeggio |
  }
}


second =  \relative c {
  \global
  \repeat volta 2 {
    % 1
    d,4\f_\P  a'_\P d_\P |
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    % 5
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    d,4\p a' d |
    %10
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    d,4 a'\f d |
    % 15
    d,4 a' d |
    d,4 a' d |
    d,4\f a' d |
    d,4 a' d |
    d,4\p a' d |
    % 20
    d,4 a' d |
    d,4\f a' d |
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    % 25
    d,4\p a' d |
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    d,4 a' d |
    % 30
    d,4 a'\f d |
    d,4 a' d |
    d,4 a' d |
    \harmonicByFret #12 { d,,4 a d, } |
    s2.*2 |
  }
}

\score {
  \new StaffGroup <<
    \new Staff = "staff" \with {
      midiInstrument = "acoustic guitar (nylon)"
      % Avoid collision between stems and string numbers in bar 1 and 9
      \override StringNumber #'add-stem-support = ##t
      \override Fingering #'add-stem-support = ##t
    }
    <<
      \context Voice = "staff first voice" { \clef "G_8" \voiceOne \slurDown \tieDown \first }
      \context Voice = "staff second voice" { \clef "G_8" \voiceTwo \second }
    >>
    
    \new TabStaff = "tab" \with {
      stringTunings = #guitar-drop-d-tuning
    }
    <<
      \context TabVoice = "tab first voice" { \clef "moderntab" \voiceOne \first }
      \context TabVoice = "tab second voice" { \clef "moderntab" \voiceTwo \second }
    >>
 >>

  \layout {
    % line breaks every 7 bars
    system-count = #5
  }
  \midi {
    \tempo 4 = 96
  }
}
_______________________________________________
Mutopia-discuss mailing list
Mutopia-discuss@mutopiaproject.org
http://lists.bcn.mythic-beasts.com/mailman/listinfo/mutopia-discuss

Reply via email to