| [ << Tabelle del manuale della notazione ] | [Top][Contents][Index] | [ Schema riassuntivo >> ] |
| [ < stencil ] | [ Up: Tabelle del manuale della notazione ] | [ Identificatori delle modifiche di contesto > ] |
A.20 Funzioni musicali disponibili
\absolutemusic (music) ⇒ music ¶Make music absolute.
This does not actually change the music itself but rather hides it from surrounding
\relativeand\fixedcommands.\acciaccaturamusic (music) ⇒ music ¶Create an acciaccatura from music.
\accidentalStylestyle (symbol list) ⇒ music ¶Set accidental style to style.
style is a (predefined) symbol list like
piano-cautionary; see Alterazioni automatiche for the available styles. If it is preceded by a context name, the settings are applied to that context (example:Staff.piano-cautionary). Otherwise, the context defaults toStaff, except for piano styles, which useGrandStaffas a context.\addChordShapekey-symbol (symbol) tuning (pair) shape-definition (string or pair) ⇒ void ¶Add shape-definition as a chord shape.
It gets added to the
chord-shape-tablehash with the key(cons key-symbol tuning).\addInstrumentDefinitionname (string) lst (list) ⇒ void ¶Create instrument name with properties lst.
This function is deprecated.
\addQuotename (string) music (music) ⇒ void ¶Define music as a quotable music expression named name.
\afterdelta (duration) ev (music) mus (music) ⇒ music ¶Add music ev with a delay of delta after the onset of mus.
ev is usually a post-event.
\afterGrace[fraction (non-negative rational, fraction, or moment)] main (music) grace (music) ⇒ music ¶Create grace as grace notes after a main music expression.
The musical position of the grace expression is after a given fraction of the main note’s duration has passed. If optional argument fraction is omitted, the fraction value is taken from
afterGraceFraction, defaulting to 3/4.\allowPageTurn⇒ music ¶Allow a page turn.
May be used at top level (i.e., between scores or markups), or inside a score.
\allowVoltaHookbar (string) ⇒ void ¶Allow the volta bracket hook being drawn over bar line bar.
\alterBrokenproperty (key list or symbol) arg (list) target (key list or music) ⇒ music ¶Override property for pieces of broken spanner target with arg.
target may either be music in the form of a starting spanner event, or a symbol list of the form
Context.Grobor justGrob. If target is in the form of a spanner event, property may also have the formGrob.propertyfor specifying a directed tweak.arg is a list of values, one for each broken piece.
\ambitusAftertarget (symbol) ⇒ music ¶Move the ambitus after the break-align symbol target.
\appendToTagtag (symbol) more (music) music (music) ⇒ music ¶Append more to music tagged with tag.
A post-event can be added to the articulations of rhythmic events or chords; other expressions may be added to chords, sequential or simultaneous music.
\appendToTagMarkuptag (symbol) more (markup) music (music) ⇒ music ¶Append more to every markup in music tagged with tag.
\applyContextproc (procedure) ⇒ music ¶Modify context properties with Scheme procedure proc.
\applyMusicfunc (procedure) music (music) ⇒ music ¶Apply procedure func to music.
\applyOutputtarget (symbol list or symbol) proc (procedure) ⇒ music ¶Apply function
procto every layout object matched by target.target takes the form
ContextorContext.Grob.\appoggiaturamusic (music) ⇒ music ¶Create an appoggiatura from music.
\assertBeamQuantl (pair) r (pair) ⇒ music ¶Testing function: check whether the beam quants l and r are correct.
\assertBeamSlopecomp (procedure) ⇒ music ¶Testing function: check whether the slope of the beam is the same as comp.
\atLeftm (music) ⇒ post-event ¶Set
side-axistoXanddirectiontoLEFTfor mus.\atRightm (music) ⇒ post-event ¶Set
side-axistoXanddirectiontoRIGHTfor mus.\augmentumexpr (music) ⇒ music ¶Add augmentum dots (morae) to Gregorian chant expr.
\autoChange[pitch (pitch)] [clef-1 (context modification)] [clef-2 (context modification)] music (music) ⇒ music ¶Make voices for music that switch between staves automatically.
The optional argument pitch specifies where to switch staves; the default is
c'. Optional arguments clef-1 and clef-2 specify which clefs to use; this only works for implicitly instantiated staves.Example:
\autoChange d' \with { \clef alto } { g4 d' g' }\balloonGrobTextgrob-name (symbol) offset (pair of numbers) text (markup) ⇒ music ¶Attach text to grob-name at offset offset (use like
\once).\balloonTextoffset (pair of numbers) text (markup) ⇒ post-event ¶Attach text at offset (use like
\tweak).\bartype (string) ⇒ music ¶Insert a bar line of type type, overriding any automatic bar lines.
\barNumberCheckn (integer) ⇒ music ¶Print a warning if the current bar number is not n.
\beamExceptionsmusic (music) ⇒ any type ¶Set beam exceptions.
This function extracts a value suitable for setting
Timing.beamExceptionsfrom the given pattern with explicit beams in music. A bar check ‘|’ has to be used between bars of patterns in order to reset the timing.\bendAfterdelta (real number) ⇒ post-event ¶Create a fall or doit of pitch interval delta.
\bendHoldmus (music) ⇒ post-event ¶Set
BendSpanner.styleto'holdfor mus.\bendStartLevelidx (non-negative, exact integer) mus (music) ⇒ post-event ¶Set
Bendspanner.details.successive-levelto idx for mus.\bookOutputNamenewfilename (string) ⇒ void ¶Direct output for the current book block to newfilename.
This is equivalent to setting
output-filenamein the current book’s\paperblock.\bookOutputSuffixnewsuffix (string) ⇒ void ¶Set the output file name suffix for the current book block to newsuffix.
This is equivalent to setting
output-suffixin the current book’s\paperblock.\breathe⇒ music ¶Insert a breath mark.
\caesura⇒ music ¶Insert a caesura.
\chordRepeats[event-types (list)] music (music) ⇒ music ¶Extend ‘q’ to also repeat articulation.
This function walks through music, putting the notes of the previous chord into repeat chords, as well as an optional list of event-types such as
#'(string-number-event).\cleftype (string) ⇒ music ¶Set the current clef to type.
\codaMark[num (non-negative, exact integer)] ⇒ music ¶Create a coda mark.
num may be 1 for the first mark, 2 for the second, etc., or it may be
\defaultto use the next number in sequence automatically.\compoundMetertime-sig (pair) ⇒ music ¶Set the time signature to time-sig.
This is like
\timetime-sig, except that it allows abbreviating fractions as lists. For example, a time signature of (3+1)/8 + 2/4 can be created with\compoundMeter #'((3 1 8) (2 4)), and a time signature of (3+2)/8 with either\compoundMeter #'((3 2 8))or the shorter version\compoundMeter 3,2,8.\compressMMRestsmusic (music) ⇒ music ¶Convert empty bars to multi-measure rests in music.
\contextPropertyCheckproperty-path (symbol list or symbol) [expected-value (any type)] ⇒ music ¶Check that the context property identified by property-path is set to expected-value in that very context: being set in an enclosing context is insufficient. If expected-value is
\default, check that the property is unset in that context.If property-path does not name a context,
Bottomis implied.Print a warning if the requested context is not visible looking upward from the current context or if the state of the property in the requested context is unexpected.
\crossStaffnotes (music) ⇒ music ¶Create cross-staff stems for notes.
\cueCleftype (string) ⇒ music ¶Set the current cue clef to type.
\cueClefUnset⇒ music ¶Unset the current cue clef.
\cueDuringwhat (string) dir (direction) main-music (music) ⇒ music ¶Create a cue.
This function inserts the contents of quote what corresponding to main-music, in a
CueVoicecontext calledcueoriented by dir.\cueDuringWithClefwhat (string) dir (direction) clef (string) main-music (music) ⇒ music ¶Create a cue with clef.
This function inserts the contents of quote what corresponding to main-music, in a
CueVoicecontext calledcueoriented by dir and using clef clef.\deadNotenote (music) ⇒ music ¶Print note with a cross-shaped note head.
\defineBarLinebar (string) glyph-list (list) ⇒ void ¶Define bar line settings for bar line bar.
The list glyph-list must have three entries, defining substitute glyphs for the end of a line, the beginning of a line, and a span bar, respectively. The substitute glyphs may be either strings or Booleans:
#tcalls for the same value as bar and#fcalls for no glyph.\displayLilyMusic[port (output port)] music (music) ⇒ music ¶Write LilyPond’s input representation of music.
If port is omitted, the output defaults to the console (stdout).
\displayMusic[port (output port)] music (music) ⇒ music ¶Write the internal representation of music.
If port is omitted, the output defaults to the console (stdout).
\displayScheme[port (output port)] expr (any type) ⇒ any type ¶Write the internal Scheme representation of expr.
If port is omitted, the output defaults to the console (stdout).
\dropNotenum (integer) music (music) ⇒ music ¶‘Drop’ the num-th note in each chord of music.
This function moves the affected notes down (usually by an octave) to be lower than the other notes of the chord. The position in a chord is counted downwards from the top.
The opposite function is
\raiseNote.\enablePolymeter⇒ void ¶Enable polymetry.
This function moves the timing management from
ScoretoStaff-like contexts. This is done by removing theTiming_translatorfromScore, and adding it to all contexts having theStaffalias.Use this within an output definition.
\endSpannersmusic (music) ⇒ music ¶Terminate spanners.
This function prematurely ends all spanners in music by inserting an end-spanner event at the end of the argument, without the need of specific end-spanner commands.
\eventChordsmusic (music) ⇒ music ¶Compatibility function: Handle isolated rhythmic events in music.
Use this to wrap
EventChordaround isolated rhythmic events occuring since version 2.15.28, after expanding repeat chords ‘q’.Not needed for new code.
\featherDurationsscale (non-negative rational, fraction, or moment) music (music) ⇒ music ¶Adjust feathered beam durations in music by scale.
\fingerfinger (index or markup) ⇒ post-event ¶Apply finger as a fingering indication.
\fixedpitch (pitch) music (music) ⇒ music ¶Use the octave of pitch as the default octave for music.
\footnote[mark (markup)] offset (pair of numbers) footnote (markup) item (symbol list or music) ⇒ music ¶Make the markup footnote a footnote on item.
The footnote is marked with a markup mark moved by offset with respect to the marked music.
If mark is not given or specified as
\default, it is replaced by an automatically generated sequence number. If item is a symbol list of formGroborContext.Grob, then grobs of that type are marked at the current time step in the given context (defaultBottom).If item is music, the music gets a footnote attached to a grob immediately attached to the event, like
\tweakdoes. For attaching a footnote to an indirectly caused grob, write\single\footnote, use item to specify the grob, and follow it with the music to annotate.Like with
\tweak, if you use a footnote on a following post-event, the\footnotecommand itself needs to be attached to the preceding note or rest as a post-event with ‘-’.\gracemusic (music) ⇒ music ¶Insert music as grace notes.
\grobdescriptionsdescriptions (list) ⇒ any type ¶Create a context modification from descriptions.
The argument is a list in the format of
all-grob-descriptions.\harmonicByFretfret (number) music (music) ⇒ music ¶Convert music into mixed harmonics.
The resulting notes resemble harmonics played on a fretted instrument by touching the strings at fret.
\harmonicByRatioratio (number) music (music) ⇒ music ¶Convert music into mixed harmonics.
The resulting notes resemble harmonics played on a fretted instrument by touching the strings at the point given through ratio.
\harmonicNotenote (music) ⇒ music ¶Print note with a diamond-shaped note head.
\harmonicsOn⇒ music ¶Set the default note head style to a diamond-shaped style.
\hideitem (symbol list or music) ⇒ music ¶Make item invisible while still retaining its dimensions.
If item is a symbol list of form
GrobNameorContext.GrobName, the result is an override for the grob name specified by it. If item is a music expression, the result is the same music expression with an appropriate tweak applied to it.This function sets item’s
transparentproperty to#t.\incipitincipit-music (music) ⇒ music ¶Output incipit-music as an incipit.
incipit-music is typeset within a
MensuralStaffcontext; the result is positioned before the main staff (as part of anInstrumentNamegrob) to indicate the music’s original notation.In the special case that incipit-music has the form
\new xxx …where ‘xxx’ is a context type not accepted byMensuralStaff, it is taken directly.\inherit-acceptabilityto (symbol) from (symbol) ⇒ void ¶Make two contexts ‘compatible’.
When used in an output definition, modify all context definitions such that context to is accepted as a child by all contexts that also accept from.
\initialContextFrommusic (music) ⇒ music ¶Enter the initial context of music and ignore the rest of it.
This is useful for prepending music while preserving the influence of the original music on the context.
Example:
{ \initialContextFrom \originalMusic \prependedMusic \originalMusic \appendedMusic }\inStaffSegno⇒ music ¶Put the segno variant
varsegnoat this position into the staff.This is compatible with the repeat command.
\instrumentSwitchname (string) ⇒ music ¶Switch instrument to name.
name must have been predefined with function
\addInstrumentDefinition.This function is deprecated.
\inversionaround (pitch) to (pitch) music (music) ⇒ music ¶Invert music about around and transpose from around to to.
\invertChordsnum (integer) music (music) ⇒ music ¶Invert any chords in music into their num-th position.
Chord inversions may be directed downwards using negative integers.
\jumptext (markup) ⇒ music ¶Use text to mark a point of departure, e.g., ‘Gavotte I D.C.’.
\keepWithTagtags (symbol list or symbol) music (music) ⇒ music ¶Keep tagged music.
This function only includes elements of music that are tagged with one of the tags in tags. tags may be either a single symbol or a list of symbols.
Each tag may be declared as a member of at most one tag group (defined with
\tagGroup). If none of a music element’s tags share a tag group with one of the specified tags, the element is retained.\key[tonic (pitch)] [pitch-alist (list of number pairs)] ⇒ music ¶Set key to tonic and scale pitch-alist.
If both arguments are omitted (i.e., replaced by
\default), just generate aKeyChangeEvent, which prints the current key signature again.\killCuesmusic (music) ⇒ music ¶Remove cue notes from music.
\labellabel (symbol) ⇒ music ¶Create label as a referrable label.
The value stored in label is the page number, which can be extracted with the
\page-refmarkup command later on.\languagelanguage (string) ⇒ void ¶Set note names for language language.
The value is stored in the
pitchnamesalist.\languageRestore⇒ void ¶Restore the previously-saved
pitchnamesalist.\languageSaveAndChangelanguage (string) ⇒ void ¶Save current
pitchnamesalist and change note names to language.\ligaturemusic (music) ⇒ music ¶Make a ligature from Gregorian Chant music.
This is equivalent to enclosing music with
\[and\].\magnifyMusicmag (positive number) music (music) ⇒ music ¶Magnify the size of music by factor mag.
This doesn’t change the staff size. Stems, beams, slurs, ties, and horizontal spacing are adjusted automatically.
\magnifyStaffmag (positive number) ⇒ music ¶Change the staff size by factor mag.
This adjusts notation size and horizontal spacing automatically.
\makeClustersarg (music) ⇒ music ¶Display chords in arg as clusters.
\makeDefaultStringTuningsymbol (symbol) pitches (list) ⇒ void ¶Define string tuning symbol by a list of pitches.
symbol also gets registered in
defaultStringTuningsfor documentation purposes.\mark[label (index or markup)] ⇒ music ¶Create a rehearsal mark.
If label is an integer, create the rehearsal mark for the given sequence number. If label is
\default, create the next sequential rehearsal mark. If label is markup, use it for the mark.\markupMappath (symbol list or symbol) markupfun (markup-function) music (music) ⇒ music ¶Apply markupfun to property path in music.
Argument path is either of the form
propertyorMusicExpression.property. IfMusicExpressionis not given, markupfun gets applied to all properties calledproperty, otherwise it is restricted toMusicExpressionevents. Ifpropertyis not a markup, it is ignored.In the following example, both the tempo indication and the bowing instruction are printed in red. If you replace
textwithTempoChangeEvent.text, only the tempo indication changes the color.\markupMap text \markup \with-color #red \etc { \tempo "Largo" g'2_"arco" c'' }\modalInversionaround (pitch) to (pitch) scale (music) music (music) ⇒ music ¶Invert music about around using scale and transpose from around to to.
\modalTransposefrom (pitch) to (pitch) scale (music) music (music) ⇒ music ¶Transpose music from pitch from to pitch to using scale.
\musicLengthmusic (music) ⇒ any type ¶Return the length of music as a moment.
\musicMapproc (procedure) mus (music) ⇒ music ¶Apply proc to mus and all of the music it contains.
\noPageBreak⇒ music ¶Forbid a page break.
May be used at top level (i.e., between scores or markups), or inside a score.
\noPageTurn⇒ music ¶Forbid a page turn.
May be used at top level (i.e., between scores or markups), or inside a score.
\octaveCheckpitch (pitch) ⇒ music ¶Do an octave check.
This prints a warning if the interval between the previous note and pitch is not within a fourth.
\offsetproperty (symbol list or symbol) offsets (any type) item (key list or music) ⇒ music ¶Offset the default value of property of item by offsets.
If item is a string, the result is an override for the specified grob type. If item is a music expression, the result is the same music expression with an appropriate tweak applied to it.
\omititem (symbol list or music) ⇒ music ¶Omit item without taking up space.
If item is a symbol list of form
GrobNameorContext.GrobName, the result is an override for the grob name specified by it. If item is a music expression, the result is the same music expression with an appropriate tweak applied to it.This function sets item’s
stencilproperty to#f.\oncemusic (music) ⇒ music ¶Set property
onceto#ton all layout instruction events in music.\ottavaoctave (integer) ⇒ music ¶Set the octavation to octave.
A positive value n indicates n octaves higher; a negative value n octaves lower, and value 0 means no octavation.
\overridePropertygrob-property-path (list of indices or symbols) value (any type) ⇒ music ¶Set the grob property specified by grob-property-path to value.
grob-property-path is a symbol list of the form
Context.GrobName.propertyorGrobName.property, possibly with subproperties given as well.As opposed to
\override, which overrides the context-dependent defaults with which a grob is created, this command usesOutput_property_engraverat the grob acknowledge stage. This may be necessary for overriding values set after the initial grob creation.\overrideTimeSignatureSettingstime-signature (boolean-or-fraction) beat-base (positive exact rational, fraction (as pair), moment, or +inf.0) beat-structure (list) beam-exceptions (list) ⇒ music ¶Override time signature settings.
This function sets
timeSignatureSettingsfor time signatures equal to time-signature to have settings of beat-base, beat-structure, and beam-exceptions.\pageBreak⇒ music ¶Force a page break.
May be used at top-level (i.e., between scores or markups), or inside a score.
\pageTurn⇒ music ¶Force a page turn.
May be used at top-level (i.e., between scores or markups), or inside a score.
\palmMutenote (music) ⇒ music ¶Print note with a triangle-shaped note head.
\palmMuteOn⇒ music ¶Set the default note head style to a triangle-shaped style.
\parallelMusicvoice-ids (list) music (music) ⇒ void ¶Define parallel music sequences.
Within music, parallel music sequences are separated by ‘|’ characters. The sequences are assigned to the LilyPond music identifiers provided in voice-ids.
For example, this code
\parallelMusic A,B,C { c c | d d | e e | d d | e e | f f | }is equivalent to
A = { c c | d d } B = { d d | e e } C = { e e | f f }The last bar checks in a sequence are not copied to the result in order to facilitate ending the last entry at non-bar boundaries.
\parenthesizearg (symbol list or music) ⇒ music ¶Tag arg to be parenthesized.
arg may be either a music event or a grob path.
\partCombine[chord-range (pair of numbers)] part1 (music) part2 (music) ⇒ music ¶Combine two parts into a single staff.
This takes the music in part1 and part2 and returns a music expression containing simultaneous
Voicecontexts (calledonefor the upper andtwofor the lower voice). Where appropriate, part1 and part2 are combined into a single voice (calledsharedorsolo, depending on context).Optional argument chord-range is a pair
(start . stop)that defines the range in which the two voices are printed as chords (or unison); the default value is(0 . 8), which means that intervals up to and including a ninth are unified.\partCombineDown[chord-range (pair of numbers)] part1 (music) part2 (music) ⇒ music ¶Combine two parts into a single staff with all stems downwards.
See function
\partCombinefor details.\partCombineForce[type (symbol)] ⇒ music ¶Override the part-combiner mode with type.
The following table gives the possible values for type, together with the corresponding shorthand functions.
apart\partCombineApartchords\partCombineChordsunisono\partCombineUnisonosolo1\partCombineSoloIsolo2\partCombineSoloII\default\partCombineAutomatic\partCombineUp[chord-range (pair of numbers)] part1 (music) part2 (music) ⇒ music ¶Combine two parts into a single staff with all stems upwards.
See function
\partCombinefor details.\partialdur (duration) ⇒ music ¶Adjust the measure position to end the current measure at dur past the point of use. As a special case, when used at the start, create an anacrusis before the first measure.
\phrasingSlurDashPatterndash-fraction (number) dash-period (number) ⇒ music ¶Set up a custom dash pattern style for phrasing slurs.
dash-fraction gives the size of one dash relative to dash-period; dash-period is the length of one dash plus one space. LilyPond adjusts dash-period to produce symmetrical output.
More complex patterns can be achieved by directly manipulating the
PhrasingSlur.dash-definitionproperty.\pitchedTrillmain-note (music) secondary-note (music) ⇒ music ¶Print a pitched trill.
main-note is the main note of the trill; secondary-note gets printed as a stemless note head in parentheses.
\pointAndClickOff⇒ void ¶Suppress links to LilyPond source code in music output.
\pointAndClickOn⇒ void ¶Generate links to LilyPond source code in music output.
This enables the creation of code in a PDF or SVG output file to reference the originating LilyPond source code (i.e., file name, line number, and column). This is helpful when developing a score; however, the output file becomes much larger.
\pointAndClickTypestypes (symbol list or symbol) ⇒ void ¶Generate point-and-click info for music of type types only.
types is a single music expression (such as
#'note-event) or a list of music expressions.\popContextPropertypath (list of indices or symbols) ⇒ music ¶Pop value of context property path from stack and set it.
This is the opposite to function
\pushContextProperty.\preBendmus (music) ⇒ post-event ¶Set
BendSpanner.styleto'pre-bendfor mus.\preBendHoldmus (music) ⇒ post-event ¶Set
BendSpanner.styleto'pre-bend-holdfor mus.\propertyOverridegrob-property-path (list of indices or symbols) value (any type) ⇒ music ¶Set the grob property specified by grob-property-path to value.
grob-property-path is a symbol list of the form
Context.GrobName.propertyorGrobName.property, possibly with subproperties given as well. This music function is mostly intended for use from Scheme as a substitute for the built-in\overridecommand.\propertyRevertgrob-property-path (list of indices or symbols) ⇒ music ¶Revert the grob property specified by grob-property-path to its previous value.
grob-property-path is a symbol list of the form
Context.GrobName.propertyorGrobName.property, possibly with subproperties given as well. This music function is mostly intended for use from Scheme as a substitute for the built-in\revertcommand.\propertySetproperty-path (symbol list or symbol) value (any type) ⇒ music ¶Set the context property specified by property-path to value.
This music function is mostly intended for use from Scheme as a substitute for the built-in
\setcommand.\propertyTweakprop (key list or symbol) value (any type) item (key list or music) ⇒ music ¶Add a tweak to item, usually music.
This function sets the value of property prop to value; it generally behaves like
\tweakbut will turn into an\overridewhen item is a symbol list. In that case, item specifies the grob path to override. This is mainly useful when using\propertyTweakas as a component for building other functions like\omit. It is not the default behavior for\tweaksince many input strings in\lyricmodecan serve equally as music or as symbols, which causes surprising behavior when tweaking lyrics using the less specific semantics of\propertyTweak.prop can contain additional elements in which case a nested property (inside of an alist) is tweaked.
\propertyUnsetproperty-path (symbol list or symbol) ⇒ music ¶Unset the context property specified by property-path.
This music function is mostly intended for use from Scheme as a substitute for the built-in
\unsetcommand.\pushContextPropertypath (list of indices or symbols) ⇒ music ¶Push the current value of context property path to a stack.
The property can later be restored to the saved value with function
\popContextProperty.\pushToTagtag (symbol) more (music) music (music) ⇒ music ¶Add more to the front of music tagged with tag.
A post-event can be added to the articulations of rhythmic events or chords; other expressions may be added to chords, sequential or simultaneous music.
\pushToTagMarkuptag (symbol) more (markup) music (music) ⇒ music ¶Prepend more to every markup in music tagged with tag.
\quoteDuringwhat (string) main-music (music) ⇒ music ¶Indicate a section of music to be quoted.
what indicates the name of the quoted voice, as specified in an
\addQuotecommand. main-music is used to indicate the length of music to be quoted; it usually contains spacers or multi-measure rests.\raiseNotenum (integer) music (music) ⇒ music ¶‘Raise’ the num-th note in each chord of music.
This function moves the affected notes up (usually by an octave) to be higher than the other notes of the chord. The position in a chord is counted upwards from the bottom.
The opposite function is
\dropNote.\reduceChordsmusic (music) ⇒ music ¶Reduce chords contained in music to single notes.
This is intended mainly for reusing music in a
RhythmicStaffcontext. It does not reduce simultaneous music.\relative[pitch (pitch)] music (music) ⇒ music ¶Make music relative to pitch.
If pitch is omitted, the first note in music is given in absolute pitch.
\removeWithTagtags (symbol list or symbol) music (music) ⇒ music ¶Remove elements of music that are tagged with one of the tags in tags.
tags may be either a single symbol or a list of symbols.
\resetRelativeOctavepitch (pitch) ⇒ music ¶Set the octave inside a
\relativesection to pitch.\responsummusic (music) ⇒ music ¶Prepend character U+211F (RESPONSE) to the lyrics represented by music.
\retrogrademusic (music) ⇒ music ¶Return music in reverse order.
\revertTimeSignatureSettingstime-signature (pair) ⇒ music ¶Revert
timeSignatureSettingsfor time signatures equal to time-signature.\rightHandFingerfinger (index or markup) ⇒ post-event ¶Apply finger as a right-hand fingering indication.
\scaleDurationsfraction (non-negative rational, fraction, or moment) music (music) ⇒ music ¶Multiply the duration of events in music by fraction.
\sectionLabeltext (markup) ⇒ music ¶Mark the beginning of a named passage with text, e.g., “Coda”.
This is well suited for use at a section division created with
\section, but it does not imply\sectionand may be used alone.\segnoMark[num (non-negative, exact integer)] ⇒ music ¶Create a segno mark (or bar line).
num may be 1 for the first segno, 2 for the second, etc., or it may be
\defaultto use the next number in sequence automatically.If the
segnoStylecontext property is'bar-line, a segno bar line is created instead of a segno mark.\settingsFrom[ctx (symbol)] music (music) ⇒ any type ¶Translate layout instructions into a context modification.
This function takes the layout instruction events from music (i.e.,
\set,\unset,\override,\revert), optionally restricted to those applying to context type ctx, and returns a context modification duplicating their effect.\shapeoffsets (list) item (key list or music) ⇒ music ¶Offset control points of item by offsets.
offsets is a list of number pairs
(x . y)or a list of such lists. Each pair represents an offset to a control point. The ‘y’ value of each pair is scaled by staff space.If item is a string, the result is
\once\overridefor the specified grob type. If item is a music expression, the result is the same music expression with an appropriate tweak applied.\shiftDurationsdur (integer) dots (integer) arg (music) ⇒ music ¶Change duration of arg.
This function walks over all durations and dot counts in arg, adding dur to the durations and dots to the dot counts.
\singleoverrides (music) music (music) ⇒ music ¶Convert overrides to tweaks and apply them to music.
This does not convert
\revert,\setor\unset.\skiparg (duration-or-music) ⇒ music ¶Skip over arg, which may be music or a duration.
\slashedGracemusic (music) ⇒ music ¶Create slashed graces from music.
This produces slashes through stems, but no slur.
\slurDashPatterndash-fraction (number) dash-period (number) ⇒ music ¶Set up a custom dash pattern style for slurs.
dash-fraction gives the size of one dash relative to dash-period; dash-period is the length of one dash plus one space. LilyPond adjusts dash-period to produce symmetrical output.
More complex patterns can be achieved by directly manipulating the
Slur.dash-definitionproperty.\staffHighlightcolor (color) ⇒ music ¶Start a highlight with color color.
\storePredefinedDiagramfretboard-table (hash table) chord (music) tuning (pair) diagram-definition (string or pair) ⇒ void ¶Add a predefined fret diagram to fretboard-table.
It is defined by diagram-definition for the chord pitches chord and the string tuning tuning.
\stringTuningchord (music) ⇒ any type ¶Convert chord to a string tuning.
chord must be in absolute pitches and should have the highest string number (generally the lowest pitch) first.
\styledNoteHeadsstyle (symbol) heads (symbol list or symbol) music (music) ⇒ music ¶Set heads in music to style.
\tabChordRepeats[event-types (list)] music (music) ⇒ music ¶Extend ‘q’ to also repeat string and fingering information.
This function walks through music putting the notes, fingerings and string numbers of the previous chord into repeat chords, as well as an optional list of event-types such as
#'(articulation-event).\tabChordRepetition⇒ void ¶Include the string and fingering information in a chord repetition.
This function is deprecated; use
\tabChordRepeatsinstead.\tagtags (symbol list or symbol) music (music) ⇒ music ¶Tag music with tags.
This function adds the single symbol or symbol list tags to the
tagsproperty of music and returns the result.\tagGrouptags (symbol list) ⇒ void ¶Define a tag group comprising the symbols in the symbol list tags.
Tag groups must not overlap.
\temporarymusic (music) ⇒ music ¶Make
\overridereversible with\revert.This function makes any
\overridein music replace an existing grob property value only temporarily, restoring the old value when a corresponding\revertis executed. This is achieved by clearing thepop-firstproperty normally set on\overrides.An
\override/\revertsequence created by using\temporaryand\undoon the same music containing overrides will cancel out perfectly or cause a warning.Non-property-related music is ignored, warnings are generated for any property-changing music that isn’t an
\override.\textEndMarktext (markup) ⇒ music ¶Create a right-aligned text mark using text.
\textMarktext (markup) ⇒ music ¶Create a (left-aligned) text mark using text.
\tieDashPatterndash-fraction (number) dash-period (number) ⇒ music ¶Set up a custom dash pattern style for ties.
dash-fraction gives the size of one dash relative to dash-period; dash-period is the length of one dash plus one space. LilyPond adjusts dash-period to produce symmetrical output.
More complex patterns can be achieved by directly manipulating the
Tie.dash-definitionproperty.\time[beat-structure (number list)] time-sig (time signature) ⇒ music ¶Set the time signature to time-sig.
The optional number list beat-structure additionally sets a beat structure.
time-sig may be a fraction, e.g.,
3/4.time-sig may also describe a complex time signature as a Scheme expression. Fractions are represented as pairs,
(numerator . denominator), where the denominator is always a number. The numerator is one number or a list of two or more numbers. A list represents concatenation.For example, a time signature of (3+1)/8 + 2/4 can be created with
\time #'(((3 1) . 8) (2 . 4))\timesfraction (fraction, as pair) music (music) ⇒ music ¶Scale music in time by fraction.
\tocItem[label (symbol list or symbol)] text (markup) ⇒ music ¶Add text as an entry to the table of contents.
This uses the
tocItemMarkuppaper variable markup for formatting and assigns it to label if one is provided. If a hierarchy of labels is given, make the current item a child of the corresponding objects.\transposefrom (pitch) to (pitch) music (music) ⇒ music ¶Transpose music from pitch from to pitch to.
\transposedCueDuringwhat (string) dir (direction) pitch (pitch) main-music (music) ⇒ music ¶Create a transposed cue.
This function inserts notes from the part what into a
CueVoicecontext calledcue, using the transposition defined by pitch. This happens simultaneously with main-music, which is usually a rest. The argument dir determines whether the cue notes should be notated as a first or second voice.\transpositionpitch (pitch) ⇒ music ¶Set instrument transposition to pitch.
\tupletratio (fraction, as pair) [tuplet-span (duration)] music (music) ⇒ music ¶Scale the given music to tuplets.
ratio is a fraction that specifies how many notes are played in place of the nominal value: it will be 3/2 for triplets, namely three notes being played in place of two.
If the optional duration tuplet-span is specified, it is used instead of
tupletSpannerDurationfor grouping the tuplets. For example,\tuplet 3/2 4 { c8 c c c c c }results in two groups of three tuplets, each group lasting for a quarter note.
\tupletSpan[tuplet-span (duration)] ⇒ music ¶Set
tupletSpannerDurationto the duration tuplet-span.This context property is the length into which
\tupletwithout an explicit tuplet span argument of its own will group its tuplets. To revert to the default of not subdividing the contents of a\tupletcommand without an explicit tuplet span argument, use\tupletSpan \default
\tweakprop (key list or symbol) value (any type) music (music) ⇒ music ¶Add a tweak to music.
Layout objects created by music get their property prop set to value. If prop has the form
Grob.property, like with\tweak Accidental.color #red cis'
an indirectly created grob (
Accidentalis caused byNoteHead) can be tweaked; otherwise only directly created grobs are affected.prop can contain additional elements in which case a nested property (inside of an alist) is tweaked.
If music is an
event-chord, every containedrhythmic-eventis tweaked instead.\undomusic (music) ⇒ music ¶Convert
\overrideand\setin music to\revertand\unset, respectively.Any reverts and unsets already in music cause a warning. Non-property-related music is ignored.
\unfoldedmusic (music) ⇒ music ¶Mask music until the innermost enclosing repeat is unfolded.
\unfoldRepeats[types (symbol list or symbol)] music (music) ⇒ music ¶Unfold
\repeat.This forces
\repeat volta,\repeat tremoloor\repeat percentcommands in music to be interpreted as\repeat unfold, if specified in the optional symbol-list types. The default for types is an empty list, which forces any of those commands in music to be interpreted as\repeat unfold. Possible entries arevolta,tremoloorpercent. Multiple entries are possible.\versusmusic (music) ⇒ music ¶Prepend character U+2123 (VERSICLE) to the lyrics represented by music.
\voicesids (list of indices or symbols) music (music) ⇒ music ¶Specify voice order in simultaneous music.
This takes the key list ids of numbers (indicating the use of ‘\voiceOne’…) or symbols (indicating voice names, typically converted from strings by argument list processing) and assign the following
\\-separated music in music to contexts according to that list. Named rather than numbered contexts can be used for continuing one voice (for the sake of spanners and lyrics), usually requiring a\voiceOne-style override at the beginning of the passage and a\oneVoiceoverride at its end.The default
<< … \\ … \\ … >>
construct would correspond to
\voices 1,2,3 << … \\ … \\ … >>
\voidarg (any type) ⇒ void ¶Accept a Scheme argument arg and return a void expression.
Use this if you want to have a Scheme expression evaluated because of its side effects but its return value being ignored.
\voltavolta-numbers (number list) music (music) ⇒ music ¶Mark music as being limited to the volte given in volta-numbers.
This gets used when the innermost enclosing repeat is unfolded. Volta number begins at 1 and increases by 1 with each repetition.
\vshapeoffsets (list) item (key list or music) ⇒ music ¶Like
\shape, but additionally show control points for ease of tweaking.\withMusicPropertysym (symbol) val (any type) music (music) ⇒ music ¶Set music property sym to val in music.
\withRelativeDirfile-name (string) ⇒ any type ¶Prepend directory of current input file to string file-name.
Use this for markup commands that include files, and where such files should be found relative to the input file. Example:
\markup { \image #X #3 \withRelativeDir "test.png" }\xNotenote (music) ⇒ music ¶Print note with a cross-shaped note head.
\=id (index or symbol) event (post-event) ⇒ post-event ¶Assign an ID to a spanner or an item.
This sets the
spanner-idoridproperty of event to the given id, which is a non-negative integer or a symbol.For spanners this can be used to tell LilyPond how to connect overlapping or parallel slurs or phrasing slurs within a single
Voicecontext.\fixed c' { c\=1( d\=2( e\=1) f\=2) }
For itmes this can be used, for example, to tell LilyPond how to connect a
FingerGlideSpannerwith non-matching fingers.\fixed c' { c\glide \= #'foo -1 d\= #'foo -2 }
| [ << Tabelle del manuale della notazione ] | [Top][Contents][Index] | [ Schema riassuntivo >> ] |
| [ < stencil ] | [ Up: Tabelle del manuale della notazione ] | [ Identificatori delle modifiche di contesto > ] |