Ignoring parts of the score : skipTypesetting Go to the desired measurement and the number of measurements you want to see or hear.
 
SkipTypesetting Ignoring parts of the score Go to the desired measurement and the number of measurements you want to see or hear.
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
% Measure_Time_duration - Cut_at_measure - number_Measure_you_want_see
= Skiptypesetting =
  Ignoring parts of the score
  Go to the desired measurement and the number of measurements you want to see or hear.


Goandseehere = #(define-music-function (d a nt) (ly:duration? number? number?)
<lilypond version="2.24">
                  #{
% the function :
                    \set Score.skipTypesetting = ##t
% Measure_Time_duration  -  Go_to_measure - number of measurement you want see
                    r$d * #(- a 1)
                    \set Score.skipTypesetting = ##f
                    r$d * #nt
                    \set Score.skipTypesetting = ##t
                  #})
%in use
%\new Devnull \Cutandseehere 2. #3 #3


music= \relative c' {
Goandsee = #(define-music-function (d a nt) (ly:duration? number? number?)             
  \key a \major
#{ 
\set Score.skipTypesetting = ##t
  r$d * #(- a 1)
  \set Score.skipTypesetting = ##f
    r$d * #nt
    \set Score.skipTypesetting = ##t
    #})
  % use :
% \new Devnull \Gotandsee Time #(measurement number to see) #(number of measurements to see)
%--Examplewith the function---------------------------------
music= \relative c' { \key a \major
   \time 3/4
   \time 3/4
   b8 cis d4 d8 e
   b8 cis d4 d8 e
Line 20: Line 26:
   b8 cis d4 d8 e
   b8 cis d4 d8 e
   fis4 gis8[ cis] b[ gis]
   fis4 gis8[ cis] b[ gis]
   \tuplet 3/2  { fis gis fis  } e2~e2.
   \tuplet 3/2  { fis gis fis  } e2~e2.}  
}
\score { \new Staff {  \clef "treble" \music  }
 
\score {
  \new Staff {  \clef "treble" \music  }
   \layout {  }
   \layout {  }
}
}
 
\score { <<
\score {
  <<
     \new Staff {  \clef "treble" \music  }
     \new Staff {  \clef "treble" \music  }
     \new Devnull \Goandseehere 2. #4 #3
     \new Devnull \Goandsee 2. #4 #3
 
>>
  >>
   \layout {  }
   \layout {  }
   \midi { }
   \midi { }
}
}
 
\markup"Go to m4 and see 3 measures"
\markup"Go to m4 and see 3 measures"
%----------------------------------
</lilypond>