Time mark engraver: Difference between revisions

m Added link to Jean's name
m Undo revision 5979 by Masterpaster (talk)
Tag: Undo
Line 1: Line 1:
When working with LilyPond’s MIDI output, it can be tedious to find the exact '''elapsed time from the start of the score to an arbitrary point'''—especially when the music contains '''multiple tempo changes'''. Counting measures and doing tempo math is error-prone; inspecting the MIDI file manually is possible but time-consuming.
When working with LilyPond’s MIDI output, it can be tedious to find the exact '''elapsed time from the start of the score to an arbitrary point'''—especially when the music contains '''multiple tempo changes'''. Counting measures and doing tempo math is error-prone; inspecting the MIDI file manually is possible but time-consuming.


To solve this, [[Jean]] wrote a small '''custom engraver''' that allows you to insert '''time marks''' directly into the music. At any point in the score you can add <code>\timeMark</code>, and LilyPond will compute the elapsed time up to that position and display it (2m15s e.g.).
To solve this, Jean wrote a small '''custom engraver''' that allows you to insert '''time marks''' directly into the music. At any point in the score you can add <code>\timeMark</code>, and LilyPond will compute the elapsed time up to that position and display it (2m15s e.g.).


=== Use case ===
=== Use case ===