The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 49 for duration

Indicating the duration of a feathered beam [0.21429]

Indicating the duration of a feathered beam

…This is an easy way to indicate the duration of a set of beamed notes (especially those …

Indicating the duration of a feathered beam

Scaling durations [0.17857]

You can alter the length of duration by a fraction N/M appending `* N/M ' (…

…gis a % Normal durations a4 a % Double the duration of chord <a d>4*2 % Duration of quarter, appears like sixteenth b16*4 c4 }

Scaling durations

Extracting notes inside chords into separate staves [0.14286]

…#(define (no-duration? music) (not (ly:duration? (ly:music-property music 'duration)))) #(define (expand-q-chords music); for q chords : … …ly:music?) (map-some-music (lambda (evt) (let ((dur (ly:music-property evt 'duration #f))) (and dur (begin (ly:music-set-property! evt 'duration (ly:make-duration (1+ (ly:duration-log dur)) (ly:duration-dot-count dur))) evt)))) music)) %%%%%%%%%%%%%%%%%%%%%%%%% …

Extracting notes inside chords into separate staves

A function to repeatedly print a given pattern with different notes [0.14286]

…notes in a chord can have a different duration (music-map (lambda (x) ; get main duration from `from (… …patII = #(make-music 'SequentialMusic 'elements (list (make-music 'NoteEvent 'duration (ly:make-duration 2 1 1) 'pitch (ly:make-pitch -1 0 0)) (make-music 'NoteEvent 'duration (ly:make-duration 3 0 1) 'pitch (ly:make-pitch -1 0 …

A function to repeatedly print a given pattern with different notes

Adding notes to the notes of a melody [0.14286]

…#(define (no-duration? music) (not (ly:duration? (ly:music-property music 'duration)))) #(define (expand-q-chords music); for q chords : … …ly:music?) (map-some-music (lambda (evt) (let ((dur (ly:music-property evt 'duration #f))) (and dur (begin (ly:music-set-property! evt 'duration (ly:make-duration (1+ (ly:duration-log dur)) (ly:duration-dot-count dur))) evt)))) music)) %%%%%%%%%%%%%%%%%%%%%%%%% …

Adding notes to the notes of a melody

Contemporary glissando 2 [0.14286]

…can be typeset using a hidden note and duration scaling.

…relative c'' { \time 3/4 c4 c4 % Scale Duration of notes with *1/2 c4*1/2-\…

Contemporary glissando 2

Easy Rhythm Template Creation [0.13839]

…and (music-is-of-type? m 'skip-event) (let ((dur (ly:music-property m 'duration)) (art (ly:music-property m 'articulations)) (res (ly:music-deep-copy chord))) ;; transfer … …duration (for-some-music (lambda (c) (and (ly:duration? (ly:music-property c 'duration)) (begin (set! (ly:music-property c 'duration) dur) #t))) res) ;; transfer articulations of skip to …

Easy Rhythm Template Creation

Extracting unmodified fragments of a music expression [0.13839]

…music 'name))) #(define (get-duration music) (ly:music-property music 'duration)) #(define (moment>=? momentA momentB) (not (ly:moment<? momentA … …end-pos from to))(set! end-pos to)))) (ly:music-set-property! music 'duration (moment->duration (ly:moment-sub end-pos begin-pos))) (*current-moment* end-pos) music) (else ; for …

Extracting unmodified fragments of a music expression

Flams, drags and ruffs [0.12500]

…music 'elements)) (has-duration? (lambda (x) (ly:duration? (ly:music-property x 'duration)))) ;; If the whole chord should be printed catch … …music 'event-chord) (first (event-chord-notes music))) (else music))) ;; Set duration of note, clear 'articulations. (note (map-some-music (lambda (m) (and (has-duration? m) (begin (set! (ly:music-property m 'duration) (ly:make-duration (if (> lngth 1) 4 3) 0 1 …

Flams, drags and ruffs

Entering durations - 2 [0.10714]

If the duration is omitted then it is set to the previously entered duration. The default for the first note is a …

Entering durations - 2

1 2 3 4 5 Next ⇨