[ << External programs ] | [Top][Contents][Index] | [ Suggeriments per escriure fitxers d’entrada >> ] |
[ < Enabling point and click ] | [ Up : Point and click ] | [ Text editor support > ] |
Selective point-and-click
For some interactive applications, it may be desirable to only include certain point-and-click items. For example, if somebody wanted to create an application which played audio or video starting from a particular note, it would be awkward if clicking on the note produced the point-and-click location for an accidental or slur which occurred over that note.
This may be controlled by indicating which events to include:
- Hard-coded in the .ly file:
\pointAndClickTypes #'note-event \relative { c'2\f( f) }
or
#(ly:set-option 'point-and-click 'note-event) \relative { c'2\f( f) }
- Command line:
lilypond -dpoint-and-click=note-event example.ly
Multiple events can be included:
- Hard-coded in the .ly file:
\pointAndClickTypes #'(note-event dynamic-event) \relative { c'2\f( f) }
or
#(ly:set-option 'point-and-click '(note-event dynamic-event)) \relative { c'2\f( f) }
- Command line:
lilypond \ -dpoint-and-click="(note-event dynamic-event)" \ example.ly