No edit summary
SkipTypesetting Ignoring parts of the score Go to the desired measurement and the number of measurements you want to see or hear.
 
Line 1: Line 1:
= Skiptypesetting =
= Skiptypesetting =
Ignoring parts of the score
Go to the desired measurement and the number of measurements you want to see or hear.
<lilypond version="2.24">
<lilypond version="2.24">
% the function :
  % Measure_Time_duration  -  Go_to_measure - number of measurement you want see
  % Measure_Time_duration  -  Go_to_measure - number of measurement you want see
 
  Goandseehere = #(define-music-function (d a nt) (ly:duration? number? number?)               
  Goandsee = #(define-music-function (d a nt) (ly:duration? number? number?)               
  #{   
  #{   
  \set Score.skipTypesetting = ##t
  \set Score.skipTypesetting = ##t
Line 11: Line 15:
     \set Score.skipTypesetting = ##t
     \set Score.skipTypesetting = ##t
     #})
     #})
  % use :
% \new Devnull \Gotandsee Time #(measurement number to see) #(number of measurements to see)
   
   
% use :
%--Examplewith the function---------------------------------
% \new Devnull \Gotandseehere Time #(measurement number to see) #(number of measurements to see)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  music= \relative c' { \key a \major
  music= \relative c' { \key a \major
   \time 3/4
   \time 3/4
Line 29: Line 32:
  \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 {  }
Line 35: Line 38:
  }
  }
  \markup"Go to m4 and see 3 measures"
  \markup"Go to m4 and see 3 measures"
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %----------------------------------
</lilypond>
</lilypond>