Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1239)

Delta Between Two Patch Sets: ly/music-functions-init.ly

Issue 7424049: Allows slurs to break at barlines.
Left Patch Set: After large rebase Created 12 years, 1 month ago
Right Patch Set: Changes name, harmonizes slur direction Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « lily/volta-repeat-iterator.cc ('k') | ly/spanners-init.ly » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 %%%% -*- Mode: Scheme -*- 1 %%%% -*- Mode: Scheme -*-
2 2
3 %%%% This file is part of LilyPond, the GNU music typesetter. 3 %%%% This file is part of LilyPond, the GNU music typesetter.
4 %%%% 4 %%%%
5 %%%% Copyright (C) 2003--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> 5 %%%% Copyright (C) 2003--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 %%%% Jan Nieuwenhuizen <janneke@gnu.org> 6 %%%% Jan Nieuwenhuizen <janneke@gnu.org>
7 %%%% 7 %%%%
8 %%%% LilyPond is free software: you can redistribute it and/or modify 8 %%%% LilyPond is free software: you can redistribute it and/or modify
9 %%%% it under the terms of the GNU General Public License as published by 9 %%%% it under the terms of the GNU General Public License as published by
10 %%%% the Free Software Foundation, either version 3 of the License, or 10 %%%% the Free Software Foundation, either version 3 of the License, or
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 post-event, the @code{\\footnote} command itself needs to be attached 413 post-event, the @code{\\footnote} command itself needs to be attached
414 to the preceding note or rest as a post-event with @code{-}.") 414 to the preceding note or rest as a post-event with @code{-}.")
415 (let ((mus (make-music 415 (let ((mus (make-music
416 'FootnoteEvent 416 'FootnoteEvent
417 'X-offset (car offset) 417 'X-offset (car offset)
418 'Y-offset (cdr offset) 418 'Y-offset (cdr offset)
419 'automatically-numbered (not mark) 419 'automatically-numbered (not mark)
420 'text (or mark (make-null-markup)) 420 'text (or mark (make-null-markup))
421 'footnote-text footnote))) 421 'footnote-text footnote)))
422 #{ \tweak footnote-music #mus #item #})) 422 #{ \tweak footnote-music #mus #item #}))
423
424 free =
425 #(define-music-function (parser location music) (ly:music?)
426 (_i "@var{event} should start a free spanner.")
427 (let ((name (ly:music-property music 'name)))
428 (cond
429 ((eq? name 'SlurEvent)
430 (make-music 'BreakSlurEvent
431 'span-direction (ly:music-property music 'span-direction)
432 'direction (ly:music-property music 'direction)
433 'spanner-id (ly:music-property music 'spanner-id)))
434 ((eq? name 'PhrasingSlurEvent)
435 (make-music 'BreakPhrasingSlurEvent
436 'span-direction (ly:music-property music 'span-direction)
437 'direction (ly:music-property music 'direction)
438 'spanner-id (ly:music-property music 'spanner-id)))
439 (else
440 (begin
441 (ly:music-warning music (_ "not a breakable event"))
442 music)))))
423 443
424 grace = 444 grace =
425 #(def-grace-function startGraceMusic stopGraceMusic 445 #(def-grace-function startGraceMusic stopGraceMusic
426 (_i "Insert @var{music} as grace notes.")) 446 (_i "Insert @var{music} as grace notes."))
427 447
428 grobdescriptions = 448 grobdescriptions =
429 #(define-scheme-function (parser location descriptions) (list?) 449 #(define-scheme-function (parser location descriptions) (list?)
430 (_i "Create a context modification from @var{descriptions}, a list 450 (_i "Create a context modification from @var{descriptions}, a list
431 in the format of @code{all-grob-descriptions}.") 451 in the format of @code{all-grob-descriptions}.")
432 (ly:make-context-mod 452 (ly:make-context-mod
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 Use this if you want to have a scheme expression evaluated 1521 Use this if you want to have a scheme expression evaluated
1502 because of its side-effects, but its value ignored.")) 1522 because of its side-effects, but its value ignored."))
1503 1523
1504 withMusicProperty = 1524 withMusicProperty =
1505 #(define-music-function (parser location sym val music) 1525 #(define-music-function (parser location sym val music)
1506 (symbol? scheme? ly:music?) 1526 (symbol? scheme? ly:music?)
1507 (_i "Set @var{sym} to @var{val} in @var{music}.") 1527 (_i "Set @var{sym} to @var{val} in @var{music}.")
1508 1528
1509 (set! (ly:music-property music sym) val) 1529 (set! (ly:music-property music sym) val)
1510 music) 1530 music)
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b