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

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

Issue 7185044: Caches the interior skylines of vertical axis groups and systems. Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Left Patch Set: Eliminates translate_axis call from outside-staff-positioning. Created 12 years, 1 month ago
Right Patch Set: Gives Hairpin outside-staff-interface Created 11 years, 11 months 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
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 1378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 will result in two groups of three tuplets, each group lasting for a 1389 will result in two groups of three tuplets, each group lasting for a
1390 quarter note.") 1390 quarter note.")
1391 (make-music 'TimeScaledMusic 1391 (make-music 'TimeScaledMusic
1392 'element (ly:music-compress 1392 'element (ly:music-compress
1393 music 1393 music
1394 (ly:make-moment (cdr ratio) (car ratio))) 1394 (ly:make-moment (cdr ratio) (car ratio)))
1395 'numerator (cdr ratio) 1395 'numerator (cdr ratio)
1396 'denominator (car ratio) 1396 'denominator (car ratio)
1397 'duration tuplet-span)) 1397 'duration tuplet-span))
1398 1398
1399 tupletOutsideStaffPriority =
1400 #(define-music-function (parser location priority)
1401 (number?)
1402 (_i "Gives @code{outside-staff-priority} to both @code{TupletNumber}
1403 and @code{TupletBracket}, with @code{TupletBracket} having a slightly
1404 lower priority so that it gets shifted first and the @code{TupletNumber}
1405 can calculate its position based on the @code{TupletBracket}.
1406 @example
1407 \\tupletOutsideStaffPriority #1
1408 @end example
1409 ")
1410 #{
1411 \override TupletBracket #'outside-staff-priority = #priority
1412 \override TupletNumber #'outside-staff-priority = $(+ priority 0.001)
1413 #})
1414
1399 tupletSpan = 1415 tupletSpan =
1400 #(define-music-function (parser location tuplet-span) 1416 #(define-music-function (parser location tuplet-span)
1401 ((ly:duration?)) 1417 ((ly:duration?))
1402 (_i "Set @code{tupletSpannerDuration}, the length into which 1418 (_i "Set @code{tupletSpannerDuration}, the length into which
1403 @code{\\tuplet} without an explicit @samp{tuplet-span} argument of its 1419 @code{\\tuplet} without an explicit @samp{tuplet-span} argument of its
1404 own will group its tuplets, to the duration @var{tuplet-span}. To 1420 own will group its tuplets, to the duration @var{tuplet-span}. To
1405 revert to the default of not subdividing the contents of a @code{\\tuplet} 1421 revert to the default of not subdividing the contents of a @code{\\tuplet}
1406 command without explicit @samp{tuplet-span}, use 1422 command without explicit @samp{tuplet-span}, use
1407 @example 1423 @example
1408 \\tupletSpan \\default 1424 \\tupletSpan \\default
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 Use this if you want to have a scheme expression evaluated 1539 Use this if you want to have a scheme expression evaluated
1524 because of its side-effects, but its value ignored.")) 1540 because of its side-effects, but its value ignored."))
1525 1541
1526 withMusicProperty = 1542 withMusicProperty =
1527 #(define-music-function (parser location sym val music) 1543 #(define-music-function (parser location sym val music)
1528 (symbol? scheme? ly:music?) 1544 (symbol? scheme? ly:music?)
1529 (_i "Set @var{sym} to @var{val} in @var{music}.") 1545 (_i "Set @var{sym} to @var{val} in @var{music}.")
1530 1546
1531 (set! (ly:music-property music sym) val) 1547 (set! (ly:music-property music sym) val)
1532 music) 1548 music)
LEFTRIGHT

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