The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse Contributing Snippet database

Results 21−30 of 60 for midi

Irrational time signatures for metric modulation [0.21429]

…measures would be 4/7. LilyPond correctly produces MIDI files for these time signatures; uncomment the \midi line to check this.

…7 fis fis | } \score { \metrmods % uncomment to check MIDI output. % \midi { } \layout { } }

Irrational time signatures for metric modulation

tag manipulating functions and additional filter by tag functions [0.21429]

…stored in the Parameter PSM = #'(Part Score Midi); their name shows which tag they keep.

…start-tag end-tag) new-music) new-music)) PSM = #'(Part Score Midi) keepPart = #(define-music-function (music) (ly:music?) #{ \cleansedKeepOrRemoveWithTag #'… …#'FOO \cleansedKeepOrRemoveWithTag #'Part #'(Part Score Midi) \Music } \header { piece = \markup \fontsize #-3 { \with-color #grey "\\… …FOO" \bold "\\cleansedKeepOrRemoveWithTag #'Part #'(Part Score Midi)" \italic "\\Music" } } } \score { \new Staff \with \myLayout { \keepWithTag …

tag manipulating functions and additional filter by tag functions

Adding metronome ticks to a piece of music [0.20536]

…music with metronome ticks, optionally only in the midi, you can use this boilerplate code. Note that …

…ticks will (optionally) only be included in the midi file, not in % the printed document. % Global settings … …score { \removeWithTag #'midiOnly \allMusic \layout { } } %% Generate the MIDI. \score { \removeWithTag #'scoreOnly \unfoldRepeats \allMusic \midi { } }

Adding metronome ticks to a piece of music

Consecutive tremolos [0.17857]

…default LilyPond does not unfold tremolo repeats for midi. A function for unfolding only tremolo repeats is …

…:[number]` are not are reflected in the MIDI output: % \music \musicMidi } \midi { } }

Consecutive tremolos

Baroque lute tablature [0.17857]

…e.g. Bravura ) for an old looking output. Midi output and worksheet for guitar transcriptions are also …

…5 . 0) } \context { \TabStaff \omit Clef tablatureFormat = #fret-letter-tablature-format } } } % midi file : \score { << \high \\ \medium \\ \low >> \midi { \context { \Score midiInstrument = #"acoustic guitar (nylon)" } } } %{ % worksheet …

Baroque lute tablature

Repeats with parallelMusic [0.14286]

…It also handles the wanted repeats in the midi output.

…score { \new Staff { \unfoldRepeats << \voiceA \\ \voiceB >> << \voiceA \\ \voiceB >> } \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 128/4) } } } \paper { …

Repeats with parallelMusic

Defining a Custom Staff Context [0.13393]

…accepts MyCustomStaff } } % DEFINE THE CUSTOM STAFF CONTEXT FOR "MIDI" TOO % to avoid warnings the context has to … …alias Staff % the customizations are not needed for midi % since they are for visual output only } \context { \… …f' } \new MyCustomStaff { c' d' e' f' } >> \layout { } \midi { } }

Defining a Custom Staff Context

Defining a Custom Staff Context [0.13393]

…accepts MyCustomStaff } } % DEFINE THE CUSTOM STAFF CONTEXT FOR "MIDI" TOO % to avoid warnings the context has to … …alias Staff % the customizations are not needed for midi % since they are for visual output only } \context { \… …f' } \new MyCustomStaff { c' d' e' f' } >> \layout { } \midi { } }

Defining a Custom Staff Context

Using the input-tag property to create musical outlines [0.12500]

…s4. } >> \bar "|." } %% ----------------------------------------- %% Output %% 3 levels of outlining + midi %% ----------------------------------------- \book { %% Maximum outlining \markup { \column { "BWV 1001 … …score { \new Staff { \outlineMusic #2 \melody } \layout {} } %% Consecutive midi for all 3 scores \score { \new Staff { \outlineMusic #0 \melody \outlineMusic #1 \melody \outlineMusic #2 \melody } \midi {} } \paper { tagline = ##f } }

Using the input-tag property to create musical outlines

Arrow notation and transposition for quarter tones [0.12500]

…override TrillPitchAccidental.alteration-glyph-name-alist = \arrowGlyphs \override AmbitusAccidental.alteration-glyph-name-alist = \arrowGlyphs } } % MIDI implements microtones as a pitch bend, with one … …each voice can have its correct % pitch bend. \midi { \context { \Staff \remove "Staff_performer" } \context { \Voice \consists "… …clarinet" } { \transposition bes \transpose bes c \notes } >> \layout{} \midi{}}

Arrow notation and transposition for quarter tones

⇦ Previous 1 2 3 4 5 6 Next ⇨