Ghost voice: Difference between revisions

Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This function transforms a simple voice (pitches and durations) into a “ghost voice” consisting of spacers and durations only (e.g. c2 d e ==&gt; s2 s s). This is very useful for writing simultaneous voice parts where one contains pitches, another dynamics, a third fingering instructions ... This can easily be used to print a score with or without fingerings or other attributes! The ghost music can be written to the log with <code>\displayLilyMusic \ghostMusic</code> followed by the music to be transformed.
This function transforms a simple voice (pitches and durations) into a “ghost voice” consisting of spacers and durations only (e.g. c2 d e ==&gt; s2 s s). This is very useful for writing simultaneous voice parts where one contains pitches, another dynamics, a third fingering instructions ... This can easily be used to print a score with or without fingerings or other attributes! The ghost music can be written to the log with <code>\displayLilyMusic \ghostMusic</code> followed by the music to be transformed.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=507
%% http://lsr.di.unimi.it/LSR/Item?id=507


Line 42: Line 42:
[[Category:Scheme]]
[[Category:Scheme]]
[[Category:Really cool]]
[[Category:Really cool]]
[[Category:Snippet]]