X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdefine-music-types.scm;h=8fa7798a191fff3581fe112360818d3c11eafec1;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=0b758bc901a3c00dabee2657f66af2be68d74aa2;hpb=b11e28c777fdee74bbe9fce9349ea37a029a06e3;p=lilypond.git diff --git a/scm/define-music-types.scm b/scm/define-music-types.scm index 0b758bc901..ba4459b8a3 100644 --- a/scm/define-music-types.scm +++ b/scm/define-music-types.scm @@ -1,656 +1,647 @@ +;;;; define-music-types.scm -- +;;;; +;;;; source file of the GNU LilyPond music typesetter +;;;; +;;;; (c) 1998--2008 Han-Wen Nienhuys +;;;; Jan Nieuwenhuizen + +;; TODO: should link back into user manual. + +(define (mm-rest-child-list music) + "Generate events for multimeasure rests, +to be used by the sequential-iterator" + (let ((location (ly:music-property music 'origin)) + (duration (ly:music-property music 'duration))) + (list (make-music 'BarCheck + 'origin location) + (make-event-chord (cons (make-music 'MultiMeasureRestEvent + 'origin location + 'duration duration) + (ly:music-property music 'articulations))) + (make-music 'BarCheck + 'origin location)))) (define-public music-descriptions `( - (AbortEvent - . ( - (description . "End the currently running spanners.") - (internal-class-name . "Event") - (span-type . "abort") - (types . (general-music event abort-event)) - )) (AbsoluteDynamicEvent - . ( - (description . "Creates a dynamic mark. Syntax: @var{note}@code{\\x}, -where x is one of \@\{\\ppp, \\pp, \\p, \\mp, \\mf, \\f, \\ff, \\fff.\@\}") - (internal-class-name . "Event") + . ((description . "Create a dynamic mark. + +Syntax: @var{note}@code{\\x}, where @code{\\x} is a dynamic mark like +@code{\\ppp} or @code{\\sfz}. A complete list is in file +@file{ly/@/dynamic-scripts-init.ly}.") (types . (general-music event dynamic-event absolute-dynamic-event)) )) + + (AnnotateOutputEvent + . ((description . "Print an annotation of an output element.") + (types . (general-music event annotate-output-event)) + )) + (ApplyContext - . ( - (description . "Call the argument with the current context during interpreting phase") - (internal-class-name . "Music") + . ((description . "Call the argument with the current context during +interpreting phase.") (types . (general-music apply-context)) - (iterator-ctor . ,Apply_context_iterator::constructor) + (iterator-ctor . ,ly:apply-context-iterator::constructor) )) + (ApplyOutputEvent - . ( - (description . " -Call the argument with all current grobs during interpreting phase. + . ((description . "Call the argument with all current grobs during +interpreting phase. -SYNTAX +Syntax: @code{\\applyOutput #'@var{context} @var{func}} -\applyoutput FUNC +Arguments to @var{func} are 1.@tie{}the grob, 2.@tie{}the originating +context, and 3.@tie{}the context where @var{func} is called.") + (types . (general-music event apply-output-event)) + )) -arguments to func are 1. the grob, 2. the originating context, -3. context where FUNC is called. + (ArpeggioEvent + . ((description . "Make an arpeggio on this note. -") - (internal-class-name . "Event") - (iterator-ctor . ,Output_property_music_iterator::constructor) - (types . (general-music layout-instruction)) - )) - (ArpeggioEvent - . ( - (description . "Make an arpeggio on this note. Syntax: -@var{note}-@code{\\arpeggio}") - (internal-class-name . "Event") +Syntax: @var{note}@code{-\\arpeggio}") (types . (general-music arpeggio-event event)) )) ;; todo: use articulation-event for slur as well. - ;; separate non articulation scripts + ;; separate non articulation scripts (ArticulationEvent - . ( - (description . "Adds an articulation marking to a note. Syntax: -@var{note}@code{X}@code{Y}, where X is a direction (up @code{^}, down -@code{_}, or LilyPond's choice (no direction specified)), and where Y -is an articulation (such as @code{-.}, @code{->}, @code{\\tenuto}, -@code{\\downbow}). See the user manual for details.") - - (internal-class-name . "Event") + . ((description . "Add an articulation marking to a note. + +Syntax: @var{note}@code{x}@code{y}, where @code{x} is a direction +(@code{^} for up or @code{_} for down), or LilyPond's choice +(no direction specified)), and where @code{y} is an articulation +(such as @code{-.}, @code{->}, @code{\\tenuto}, @code{\\downbow}). +See the Notation Reference for details.") (types . (general-music event articulation-event script-event)) - )) - (AutoChangeMusic - . ( - (description . "Used for making voices that switch between piano staves automatically.") + )) - (internal-class-name . "Music_wrapper") - (iterator-ctor . ,Auto_change_iterator::constructor) + (AutoChangeMusic + . ((description . "Used for making voices that switch between +piano staves automatically.") + (iterator-ctor . ,ly:auto-change-iterator::constructor) + (start-callback . ,ly:music-wrapper::start-callback) + (length-callback . ,ly:music-wrapper::length-callback) (types . (general-music music-wrapper-music auto-change-instruction)) )) + (BarCheck - . ( - (description . - "Check whether this music coincides with the start of the measure.") - (internal-class-name . "Music") + . ((description . "Check whether this music coincides with +the start of the measure.") (types . (general-music bar-check)) - (iterator-ctor . ,Bar_check_iterator::constructor) + (iterator-ctor . ,ly:bar-check-iterator::constructor) )) - (BassFigureEvent - . ( - (description . "Print a bass-figure text") - (internal-class-name . "Event") + (BassFigureEvent + . ((description . "Print a bass-figure text.") (types . (general-music event rhythmic-event bass-figure-event)) )) + (BeamEvent - . ( - (description . "Starts or stops a beam. Syntax for manual control: -c8-[ c c-] c8") + . ((description . "Start or stop a beam. - (internal-class-name . "Event") +Syntax for manual control: @code{c8-[ c c-] c8}") (types . (general-music event beam-event span-event)) )) - (NewBeamEvent - . ( - (description . "Starts or stops a beam. Syntax for manual control: -c8-[ c c-] c8") - (internal-class-name . "Event") - (types . (general-music event new-beam-event span-event)) - )) - (BreakEvent - . ( - (description . "Creates a line break. Syntax: \\break.") - (internal-class-name . "Event") - (types . (general-music break-event event)) + (BeamForbidEvent + . ((description . "Specify that a note may not auto-beamed.") + (types . (general-music event beam-forbid-event)) )) - (BreathingSignEvent - . ( - (description . "Creates a `breath mark' or `comma'. Syntax: -@var{note}\\breathe.") - (internal-class-name . "Event") + (BendAfterEvent + . ((description . "A drop/fall/doit jazz articulation.") + (types . (general-music bend-after-event event)))) + + (BreathingEvent + . ((description . "Create a @q{breath mark} or @q{comma}. + +Syntax: @var{note}@code{\\breathe}") + (types . (general-music event breathing-event)) - )) - (BusyPlayingEvent - . ( - (description . "Used internally to signal beginning and ending of notes.") + )) + + (ContextChange + . ((description . "Change staves in Piano staff. - (internal-class-name . "Event") - (types . (general-music event busy-playing-event)) +Syntax: @code{\\change Staff = @var{new-id}}") + (iterator-ctor . ,ly:change-iterator::constructor) + (types . (general-music translator-change-instruction)) )) - - (ClusterNoteEvent - . ( - (description . "A note that is part of a cluster.") - (internal-class-name . "Event") - ; not a note-event, to ensure that Note_engraver doesn't eat it. - (types . (general-music cluster-note-event melodic-event rhythmic-event event)) + (ClusterNoteEvent + . ((description . "A note that is part of a cluster.") + ;; not a note-event, to ensure that Note_engraver doesn't eat it. + (types . (general-music cluster-note-event melodic-event + rhythmic-event event)) )) - + (ContextSpeccedMusic - . ( - (description . "Interpret the argument music within a specific context.") - (iterator-ctor . ,Context_specced_music_iterator::constructor) - (internal-class-name . "Music_wrapper") + . ((description . "Interpret the argument music within a +specific context.") + (iterator-ctor . ,ly:context-specced-music-iterator::constructor) + (length-callback . ,ly:music-wrapper::length-callback) + (start-callback . ,ly:music-wrapper::start-callback) (types . (context-specification general-music music-wrapper-music)) )) - + (CrescendoEvent - . ( - (description . "Begins or ends a crescendo. Syntax: @var{note}\\cr -... @var{note}\\rc (you can also use \\<, \\!, \\cresc, and -\\endcresc. See the user manual for details.).") - - (internal-class-name . "Event") - (types . (general-music dynamic-event crescendo-event event)) - )) - (DecrescendoEvent - . ( - (description . "See @ref{CrescendoEvent}.") + . ((description . "Begin or end a crescendo. + +Syntax: @var{note}@code{\\cr} @dots{} @var{note}@code{\\rc} - (internal-class-name . "Event") - (types . (general-music dynamic-event decrescendo-event event)) +You can also use @code{\\<}, @code{\\!}, @code{\\cresc}, and +@code{\\endcresc}. See the Notation Reference for details.") + (types . (general-music span-event span-dynamic-event crescendo-event + event)) + )) + + (DecrescendoEvent + . ((description . "See @ref{CrescendoEvent}.") + (types . (general-music span-event span-dynamic-event decrescendo-event + event)) )) - - (ExtenderEvent - . ( - (description . "Extend lyrics.") - (internal-class-name . "Event") + (ExtenderEvent + . ((description . "Extend lyrics.") (types . (general-music extender-event event)) )) - (FingerEvent - . ( - (description . "Specify what finger to use for this note.") - (internal-class-name . "Event") + + (Event + . ((description . "Atomic music event.") + (types . (general-music event)) + )) + + (EventChord + . ((description . "Internally used to group a set of events.") + (iterator-ctor . ,ly:event-chord-iterator::constructor) + (length-callback . ,ly:music-sequence::maximum-length-callback) + (to-relative-callback . + ,ly:music-sequence::event-chord-relative-callback) + (types . (general-music event-chord simultaneous-music)) + )) + + (FingeringEvent + . ((description . "Specify what finger to use for this note.") (types . (general-music fingering-event event)) )) + (GlissandoEvent - . ( - (description . "Start a glissando on this note.") - (internal-class-name . "Event") + . ((description . "Start a glissando on this note.") (types . (general-music glissando-event event)) )) - - (GraceMusic - . ( - (description . "Interpret the argument as grace notes. ") - (internal-class-name . "Grace_music") - (iterator-ctor . ,Grace_iterator::constructor) + (GraceMusic + . ((description . "Interpret the argument as grace notes.") + (start-callback . ,ly:grace-music::start-callback) + (length . ,ZERO-MOMENT) + (iterator-ctor . ,ly:grace-iterator::constructor) (types . (grace-music music-wrapper-music general-music)) )) - (NoteGroupingEvent - . ( - (description . "Start or stop grouping brackets.") - (internal-class-name . "Event") - (types . (general-music event note-grouping-event)) + + (HarmonicEvent + . ((description . "Mark a note as harmonic.") + (types . (general-music event harmonic-event)) )) - (HyphenEvent - . ( - (description . "A hyphen between lyric syllables.") - (internal-class-name . "Event") + (HyphenEvent + . ((description . "A hyphen between lyric syllables.") (types . (general-music hyphen-event event)) )) - + (KeyChangeEvent - . ( - (description . "Change the key signature. Syntax: @code{\\key } @var{name} @var{scale}.") + . ((description . "Change the key signature. - (internal-class-name . "Key_change_ev") +Syntax: @code{\\key} @var{name} @var{scale}") + (to-relative-callback . ,(lambda (x p) p)) (types . (general-music key-change-event event)) )) - - (LigatureEvent - . ( - (description . "(docme).") - (internal-class-name . "Event") + (LabelEvent + . ((description . "Place a bookmarking label.") + (types . (general-music label-event event)) + )) + + (LaissezVibrerEvent + . ((description . "Don't damp this chord. + +Syntax: @var{note}@code{\\laissezVibrer}") + (types . (general-music event laissez-vibrer-event)) + )) + + (LigatureEvent + . ((description . "Start or end a ligature.") (span-type . ligature) (types . (general-music span-event ligature-event event)) )) - + + (LineBreakEvent + . ((description . "Allow, forbid or force a line break.") + (types . (general-music line-break-event break-event event)) + )) + (LyricCombineMusic - . ( - (description . "Align lyrics to the start of notes. -Syntax @var{\\addlyrics }@var{music} @var{lyrics}.") + . ((description . "Align lyrics to the start of notes. - (internal-class-name . "Lyric_combine_music") +Syntax: @code{\\lyricsto} @var{voicename} @var{lyrics}") + (length . ,ZERO-MOMENT) (types . (general-music lyric-combine-music)) - (iterator-ctor . ,Lyric_combine_music_iterator::constructor) + (iterator-ctor . ,ly:lyric-combine-music-iterator::constructor) )) (LyricEvent - . ( - (description . "A lyric syllable. Must be entered in lyrics mode, i.e. -@code{\\lyrics @{ twinkle4 twinkle4 @} } .") - - (internal-class-name . "Event") + . ((description . "A lyric syllable. Must be entered in lyrics mode, +i.e., @code{\\lyrics @{ twinkle4 twinkle4 @} }.") (types . (general-music rhythmic-event lyric-event event)) )) + (MarkEvent - . ( - (description . "Insert a rehearsal mark. Syntax: @code{\mark} @var{marker}, -e.g. @code{\\mark \"A\"}.") + . ((description . "Insert a rehearsal mark. + +Syntax: @code{\\mark} @var{marker} - (internal-class-name . "Event") +Example: @code{\\mark \"A\"}") (types . (general-music mark-event event)) )) - (MelismaPlayingEvent - . ( - (description . "Used internally to signal melismas") - (internal-class-name . "Event") - (types . (general-music melisma-playing-event event)) - )) - + (MultiMeasureRestEvent - . ( - (description . "Rests that may be compressed into Multi rests. Syntax -@code{R2.*4} for 4 measures in 3/4 time. Note the capital R.") - (internal-class-name . "Event") - (types . (general-music event span-event multi-measure-rest-event)) + . ((description . "Used internally by @code{MultiMeasureRestMusic} +to signal rests.") + (types . (general-music event rhythmic-event + multi-measure-rest-event)) )) - + + (MultiMeasureRestMusic + . ((description . "Rests that may be compressed into Multi rests. + +Syntax: @code{R2.*4} for 4 measures in 3/4 time.") + (iterator-ctor . ,ly:sequential-iterator::constructor) + (elements-callback . ,mm-rest-child-list) + (types . (general-music multi-measure-rest)) + )) + (MultiMeasureTextEvent - . ( - (description . "Texts on mm rests. Syntax -@code{R-\\markup @{ \\roman \"bla\" @}}. Note the explicit font switch.") - (internal-class-name . "Event") + . ((description . "Texts on multi measure rests. + +Syntax: @code{R-\\markup @{ \\roman \"bla\" @}} + +Note the explicit font switch.") (types . (general-music event multi-measure-text-event)) )) (Music - . ( - (description . "Generic type for music expressions.") - - (internal-class-name . "Music") - (types . (general-music)) + . ((description . "Generic type for music expressions.") + (types . (general-music)) )) + (NoteEvent - . ( - (description . "A note.") + . ((description . "A note.") + (types . (general-music event note-event rhythmic-event + melodic-event)) + )) - (internal-class-name . "Event") - (types . (general-music event note-event rhythmic-event melodic-event)) + (NoteGroupingEvent + . ((description . "Start or stop grouping brackets.") + (types . (general-music event note-grouping-event)) )) - - (OverrideProperty - . ( - (description . "Extend the definition of a graphical object. -SYNTAX + (OverrideProperty + . ((description . "Extend the definition of a graphical object. -@code{\\propery Foo.Bar \\override} @var{SYMBOL} = @var{VALUE} +Syntax: @code{\\override} [ @var{context} @code{.} ] +@var{object} @var{property} @code{=} @var{value}") + (types . (general-music layout-instruction-event + override-property-event)) + (iterator-ctor . ,ly:push-property-iterator::constructor) + )) -") + (PageBreakEvent + . ((description . "Allow, forbid or force a page break.") + (types . (general-music break-event page-break-event event)) + )) - (internal-class-name . "Music") - (types . (general-music layout-instruction)) - (iterator-ctor . , Push_property_iterator::constructor) + (PageTurnEvent + . ((description . "Allow, forbid or force a page turn.") + (types . (general-music break-event page-turn-event event)) )) (PartCombineMusic - . ( - (description . "Combine two parts on a staff, either merged or + . ((description . "Combine two parts on a staff, either merged or as separate voices.") - - (internal-class-name . "Simultaneous_music") + (length-callback . ,ly:music-sequence::maximum-length-callback) + (start-callback . ,ly:music-sequence::minimum-start-callback) (types . (general-music part-combine-music)) - (iterator-ctor . ,Part_combine_music_iterator::constructor) + (iterator-ctor . ,ly:part-combine-iterator::constructor) )) - - (PhrasingSlurEvent - . ( - (description . "Start or end phrasing slur. Syntax NOTE \\( and \\) NOTE") - (internal-class-name . "Event") - (types . (general-music span-event phrasing-slur-event)) + + (PercentEvent + . ((description . "Used internally to signal percent repeats.") + (types . (general-music event percent-event rhythmic-event)) )) - - (PropertySet - . ( - (description . "Set a context property. - -Syntax: @code{\property @var{context}.@var{prop} = @var{scheme-val}}.") - (internal-class-name . "Music") - (types . (layout-instruction general-music)) - (iterator-ctor . ,Property_iterator::constructor) - ) - ) - - (PropertyUnset - . ( - (description . "Remove the definition of a context @code{\property}.") - - (internal-class-name . "Music") - (types . (layout-instruction general-music)) - (iterator-ctor . ,Property_unset_iterator::constructor) - ) - ) - + + (PercentRepeatedMusic + . ((description . "Repeats encoded by percents.") + (iterator-ctor . ,ly:percent-repeat-iterator::constructor) + (start-callback . ,ly:repeated-music::first-start) + (length-callback . ,ly:repeated-music::unfolded-music-length) + (types . (general-music repeated-music percent-repeated-music)) + )) + (PesOrFlexaEvent - . ( - (description . "Within a ligature, mark the previous and the + . ((description . "Within a ligature, mark the previous and the following note to form a pes (if melody goes up) or a flexa (if melody goes down).") - - (internal-class-name . "Event") (types . (general-music pes-or-flexa-event event)) )) - (RepeatedMusic - . ( - (description . "Repeat music in different ways") - - (type . repeated-music) - (types . (general-music repeated-music)) - )) - - (Event - . ( - (description . "Atomic music event.") + (PhrasingSlurEvent + . ((description . "Start or end phrasing slur. - (internal-class-name . "Event") - (types . (general-music event)) +Syntax: @var{note}@code{\\(} and @var{note}@code{\\)}") + (types . (general-music span-event event phrasing-slur-event)) )) - - (RestEvent - . ( - (description . "A Rest. Syntax @code{r4} for a quarter rest. ") - (internal-class-name . "Event") - (types . (general-music event rhythmic-event rest-event)) - )) - (SequentialMusic - . ( - (description . "Music expressions concatenated. Syntax \\sequential @{..@} or simply @{..@} .") + (PropertySet + . ((description . "Set a context property. - (internal-class-name . "Sequential_music") - (iterator-ctor . ,Sequential_music_iterator::constructor) - (types . (general-music sequential-music)) - )) - - (MultiMeasureRestMusicGroup - . ( - (description . "Like sequential-music, but specifically intended -to group start-mmrest, skip, stop-mmrest sequence. Syntax @code{R2.*5} for 5 measures in 3/4 time.") - (internal-class-name . "Sequential_music") - (iterator-ctor . ,Sequential_music_iterator::constructor) - (types . (general-music sequential-music)) +Syntax: @code{\\property @var{context}.@var{prop} = @var{scheme-val}}") + (types . (layout-instruction-event general-music)) + (iterator-ctor . ,ly:property-iterator::constructor) )) - - (SimultaneousMusic - . ( - (description . "Music playing together. -SYNTAX + (PropertyUnset + . ((description . "Remove the definition of a context +@code{\\property}.") + (types . (layout-instruction-event general-music)) + (iterator-ctor . ,ly:property-unset-iterator::constructor) + )) -@code{ \\simultaneous @{ .. @}} or < .. >.") + (QuoteMusic + . ((description . "Quote preprocessed snippets of music.") + (iterator-ctor . ,ly:music-wrapper-iterator::constructor) + (length-callback . ,ly:music-wrapper::length-callback) + (start-callback . ,ly:music-wrapper::start-callback) + (types . (general-music music-wrapper-music)) + )) - (internal-class-name . "Simultaneous_music") - (iterator-ctor . ,Simultaneous_music_iterator::constructor) - - (types . (general-music simultaneous-music)) + (RelativeOctaveCheck + . ((description . "Check if a pitch is in the correct octave.") + (to-relative-callback . ,ly:relative-octave-check::relative-callback) + (types . (general-music relative-octave-check)) )) - - (SlurEvent - . ( - (description . "Start or end slur. Syntax NOTE( and )NOTE") - (internal-class-name . "Event") - (types . (general-music span-event slur-event)) + + (RelativeOctaveMusic + . ((description . "Music that was entered in relative octave notation.") + (to-relative-callback . ,ly:relative-octave-music::relative-callback) + (iterator-ctor . ,ly:music-wrapper-iterator::constructor) + (length-callback . ,ly:music-wrapper::length-callback) + (start-callback . ,ly:music-wrapper::start-callback) + (types . (music-wrapper-music general-music relative-octave-music)) )) - (RevertProperty - . ( - (description . "The opposite of @ref{OverrideProperty}: remove a -previously added property from a graphical object definition - ") + (RepeatTieEvent + . ((description . "Ties for starting a second volta bracket.") + (types . (general-music event repeat-tie-event)) + )) - (internal-class-name . "Music") - (types . (general-music layout-instruction)) - (iterator-ctor . , Pop_property_iterator::constructor) + (RepeatedMusic + . ((description . "Repeat music in different ways.") + (types . (general-music repeated-music)) )) - (OutputPropertySetMusic - . ( - (description . "Set grob properties in objects -individually. Syntax @code{\\outputproperty @var{predicate} @var{prop} -= @var{val}}.") + (RestEvent + . ((description . "A Rest. - (internal-class-name . "Music") - (iterator-ctor . ,Output_property_music_iterator::constructor) - (types . (general-music layout-instruction)) - )) - - (TextSpanEvent - . ( - (description . "Start a text spanner like 8va.....|") - (internal-class-name . "Event") - (types . (general-music span-event text-span-event)) - )) - - (TranslatorChange - . ( - (description . "Change staffs in Piano staff. Syntax @code{\\translator Staff = @var{new-id}}.") - (internal-class-name . "Music") - (iterator-ctor . , Change_iterator::constructor) - (types . (general-music translator-change-instruction)) +Syntax: @code{r4} for a quarter rest.") + (types . (general-music event rhythmic-event rest-event)) )) - - (TimeScaledMusic - . ( - (description . "Multiply durations, as in tuplets. Syntax @code{\\times @var{fraction} @var{music}}, e.g. -@code{\\times 2/3 @{ ... @}} for triplets. - ") - (internal-class-name . "Time_scaled_music") - (iterator-ctor . ,Time_scaled_music_iterator::constructor) - (types . (time-scaled-music music-wrapper-music general-music)) + + (RevertProperty + . ((description . "The opposite of @ref{OverrideProperty}: remove a +previously added property from a graphical object definition.") + (types . (general-music layout-instruction-event)) + (iterator-ctor . ,ly:pop-property-iterator::constructor) )) - - (TransposedMusic - . ( - (description . "Music that has been transposed.") - (internal-class-name . "Transposed_music") - (types . (music-wrapper-music general-music transposed-music)) + + (ScriptEvent + . ((description . "Add an articulation mark to a note.") + (types . (general-music event)) )) - (UntransposableMusic - . ( - (description . "Music that can not be transposed.") + (SequentialMusic + . ((description . "Music expressions concatenated. - (internal-class-name . "Untransposable_music") - (types . (music-wrapper-music general-music untransposable-music)) +Syntax: @code{\\sequential @{ @dots{} @}} or simply @code{@{ @dots{} @}}") + (length-callback . ,ly:music-sequence::cumulative-length-callback) + (start-callback . ,ly:music-sequence::first-start-callback) + (elements-callback . ,(lambda (m) (ly:music-property m 'elements))) + (iterator-ctor . ,ly:sequential-iterator::constructor) + (types . (general-music sequential-music)) )) - (UnrelativableMusic - . ( - (description . "Music that can not be converted from relative to absolute notation. -For example, transposed music.") - (internal-class-name . "Un_relativable_music") - (types . (music-wrapper-music general-music unrelativable-music)) + (SimultaneousMusic + . ((description . "Music playing together. + +Syntax: @code{\\simultaneous @{ @dots{} @}} or @code{<< @dots{} >>}") + (iterator-ctor . ,ly:simultaneous-music-iterator::constructor) + (start-callback . ,ly:music-sequence::minimum-start-callback) + (length-callback . ,ly:music-sequence::maximum-length-callback) + (to-relative-callback . + ,ly:music-sequence::simultaneous-relative-callback) + (types . (general-music simultaneous-music)) )) - (RelativeOctaveMusic - . ( - (description . "Music that was entered in relative octave notation.") + (SkipEvent + . ((description . "Filler that takes up duration, but does not +print anything. - (internal-class-name . "Relative_octave_music") - (types . (music-wrapper-music general-music relative-octave-music)) +Syntax: @code{s4} for a skip equivalent to a quarter rest.") + (types . (general-music event rhythmic-event skip-event)) )) - - (EventChord - . ( - (description . "Internally used to group a set of events.") - (internal-class-name . "Simultaneous_music") - (iterator-ctor . ,Event_chord_iterator::constructor) - (types . (general-music event-chord simultaneous-music)) - ) - ) - - (ScriptEvent - . ( - (description . "Add an articulation mark to a note. ") - - (internal-class-name . "Event") - (types . (general-music event)) - )) + (SkipMusic + . ((description . "Filler that takes up duration, does not +print anything, and also does not create staves or voices implicitly. - (NonEventSkip - . ( - (description . "Filler that takes up duration, but does not print anything. This also does not create any event-accepting contexts. ") - (internal-class-name . "Music") - (length . ,ly:music-duration-length) - (iterator-ctor . ,Simple_music_iterator::constructor) +Syntax: @code{\\skip} @var{duration}") + (length-callback . ,ly:music-duration-length) + (iterator-ctor . ,ly:simple-music-iterator::constructor) (types . (general-music event rhythmic-event skip-event)) )) - - (SkipEvent - . ( - (description . "Filler that takes up duration, but does not print anything.") - (internal-class-name . "Event") - (types . (general-music event rhythmic-event skip-event)) + (SlurEvent + . ((description . "Start or end slur. + +Syntax: @var{note}@code{(} and @var{note}@code{)}") + (types . (general-music span-event event slur-event)) )) - - (SpanEvent - . ( - (description . "Event for anything that is started at a different time than stopped.") - (internal-class-name . "Event") - (types . (general-music event)) + (SoloOneEvent + . ((description . "Print @q{Solo@tie{}1}.") + (part-combine-status . solo1) + (types . (general-music event part-combine-event solo-one-event)) )) - - (SustainEvent - . ( - (description . "Depress or release sustain pedal. ") - (internal-class-name . "Event") - (types . (general-music pedal-event sustain-pedal-event)) + + (SoloTwoEvent + . ((description . "Print @q{Solo@tie{}2}.") + (part-combine-status . solo2) + (types . (general-music event part-combine-event solo-two-event)) )) - + (SostenutoEvent - . ( - (description . "Depress or release sostenuto pedal. ") - (internal-class-name . "Event") - (types . (general-music pedal-event sostenuto-pedal-event)) + . ((description . "Depress or release sostenuto pedal.") + (types . (general-music event pedal-event sostenuto-event)) )) - - (UnaCordaEvent - . ( - (description . "Depress or release una-corda pedal.") - (internal-class-name . "Event") - (types . (general-music pedal-event una-corda-pedal-event)) + + (SpacingSectionEvent + . ((description . "Start a new spacing section.") + (types . (general-music event spacing-section-event)))) + + (SpanEvent + . ((description . "Event for anything that is started at a +different time than stopped.") + (types . (general-music event)) )) - + + (StaffSpanEvent + . ((description . "Start or stop a staff symbol.") + (types . (general-music event span-event staff-span-event)) + )) + (StringNumberEvent - . ( - (description . "Specify on which string to play this note. Syntax: @code{\\@var{number}}.") + . ((description . "Specify on which string to play this note. - (internal-class-name . "Event") +Syntax: @code{\\@var{number}}") (types . (general-music string-number-event event)) - )) + )) + + (StrokeFingerEvent + . ((description . "Specify with which finger to pluck a string. - (MetronomeChangeEvent - . ( - (description . "Change tempo setting (in beats per minute).") - (internal-class-name . "Event") - (types . (general-music metronome-change-event tempo-event event)) +Syntax: @code{\\rightHandFinger @var{text}}") + (types . (general-music stroke-finger-event event)) + )) + + (SustainEvent + . ((description . "Depress or release sustain pedal.") + (types . (general-music event pedal-event sustain-event)) )) - + (TextScriptEvent - . ( - (description . "") - (internal-class-name . "Event") + . ((description . "Print text.") (types . (general-music script-event text-script-event event)) - )) + )) + + (TextSpanEvent + . ((description . "Start a text spanner, e.g., 8va.....|") + (types . (general-music span-event event text-span-event)) + )) + (TieEvent - . ( - (description . "A tie. Entered as @code{~}.") - (internal-class-name . "Event") + . ((description . "A tie. + +Syntax: @var{note}@code{-~}") (types . (general-music tie-event event)) )) - (NewTieEvent - . ( - (description . "A tie. Entered as @var{note}-~.") - (internal-class-name . "Event") - (types . (general-music new-tie-event event)) + + (TimeScaledMusic + . ((description . "Multiply durations, as in tuplets. + +Syntax: @code{\\times @var{fraction} @var{music}}, e.g. +@code{\\times 2/3 @{ @dots{} @}} for triplets.") + (length-callback . ,ly:music-wrapper::length-callback) + (start-callback . ,ly:music-wrapper::start-callback) + (iterator-ctor . ,ly:time-scaled-music-iterator::constructor) + (types . (time-scaled-music music-wrapper-music general-music)) + )) + + (TransposedMusic + . ((description . "Music that has been transposed.") + (iterator-ctor . ,ly:music-wrapper-iterator::constructor) + (start-callback . ,ly:music-wrapper::start-callback) + (length-callback . ,ly:music-wrapper::length-callback) + (to-relative-callback . + ,ly:relative-octave-music::no-relative-callback) + (types . (music-wrapper-music general-music transposed-music)) )) + (TremoloEvent - . ( - (description . "Un measured tremolo.") - (internal-class-name . "Event") + . ((description . "Unmeasured tremolo.") (types . (general-music event tremolo-event)) )) - - (VoiceSeparator - . ( - (description . "Separate polyphonic voices in simultaneous music. Syntax: @code{\\\\}") - (internal-class-name . "Music") - (types . (separator general-music)) + (TremoloRepeatedMusic + . ((description . "Repeated notes denoted by tremolo beams.") + (iterator-ctor . ,ly:chord-tremolo-iterator::constructor) + (start-callback . ,ly:repeated-music::first-start) + ;; the length of the repeat is handled by shifting the note logs + (length-callback . ,ly:repeated-music::folded-music-length) + (types . (general-music repeated-music tremolo-repeated-music)) )) - (VoltaRepeatedMusic - . ( - (iterator-ctor . ,Volta_repeat_iterator::constructor) - (internal-class-name . "Repeated_music") - (description . "") - (start-moment-function . ,Repeated_music::first_start) - (length . ,Repeated_music::volta_music_length) - (types . (general-music repeated-music volta-repeated-music)) + (TremoloSpanEvent + . ((description . "Tremolo over two stems") + (types . (general-music event span-event tremolo-span-event)) + )) + + (TrillSpanEvent + . ((description . "Start a trill spanner tr~~~") + (types . (general-music span-event event trill-span-event)) + )) + + (TupletSpanEvent + . ((description . "Used internally to signal where tuplet +brackets start and stop.") + (types . (tuplet-span-event span-event event general-music)) + )) + + (UnaCordaEvent + . ((description . "Depress or release una-corda pedal.") + (types . (general-music event pedal-event una-corda-event)) )) - + (UnfoldedRepeatedMusic - . ( - (iterator-ctor . ,Unfolded_repeat_iterator::constructor) - (description . "") - (start-moment-function . ,Repeated_music::first_start) - (internal-class-name . "Repeated_music") + . ((description . "Repeated music which is fully written +(and played) out.") + (iterator-ctor . ,ly:unfolded-repeat-iterator::constructor) + (start-callback . ,ly:repeated-music::first-start) (types . (general-music repeated-music unfolded-repeated-music)) - (length . ,Repeated_music::unfolded_music_length) + (length-callback . ,ly:repeated-music::unfolded-music-length) )) - (PercentRepeatedMusic - . ( - (internal-class-name . "Repeated_music") - (description . "Repeats encoded by percents.") - (iterator-ctor . ,Percent_repeat_iterator::constructor) - (start-moment-function . ,Repeated_music::first_start) - (length . ,Repeated_music::unfolded_music_length) - (types . (general-music repeated-music percent-repeated-music)) + + (UnisonoEvent + . ((description . "Print @q{a@tie{}2}.") + (part-combine-status . unisono) + (types . (general-music event part-combine-event unisono-event)))) + + (UnrelativableMusic + . ((description . "Music that cannot be converted from relative +to absolute notation. For example, transposed music.") + (to-relative-callback . ,ly:relative-octave-music::no-relative-callback) + (iterator-ctor . ,ly:music-wrapper-iterator::constructor) + (length-callback . ,ly:music-wrapper::length-callback) + (types . (music-wrapper-music general-music unrelativable-music)) )) - - (TremoloRepeatedMusic - . ( - (iterator-ctor . ,Chord_tremolo_iterator::constructor) - (description . "Repeated notes denoted by tremolo beams.") - (internal-class-name . "Repeated_music") - (start-moment-function . ,Repeated_music::first_start) - ;; the length of the repeat is handled by shifting the note logs - (length . ,Repeated_music::folded_music_length) - (types . (general-music repeated-music tremolo-repeated-music)) - - )) - - (FoldedRepeatedMusic - . ( - (internal-class-name . "Repeated_music") - (description . "Repeats with alternatives placed in parallel. ") - (iterator-ctor . ,Folded_repeat_iterator::constructor) - (start-moment-function . ,Repeated_music::minimum_start) - (length . ,Repeated_music::folded_music_length) - (types . (general-music repeated-music folded-repeated-music)) + (VoiceSeparator + . ((description . "Separate polyphonic voices in simultaneous music. + +Syntax: @code{\\\\}") + (types . (separator general-music)) + )) + + (VoltaRepeatedMusic + . ((description . "Repeats with alternatives placed sequentially.") + (iterator-ctor . ,ly:volta-repeat-iterator::constructor) + (start-callback . ,ly:repeated-music::first-start) + (length-callback . ,ly:repeated-music::volta-music-length) + (types . (general-music repeated-music volta-repeated-music)) )) )) (set! music-descriptions (sort music-descriptions alist