OLD | NEW |
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 (begin | 372 (begin |
373 (ly:music-compress mus multiplier) | 373 (ly:music-compress mus multiplier) |
374 (set! multiplier (ly:moment-mul factor multiplier))))) | 374 (set! multiplier (ly:moment-mul factor multiplier))))) |
375 (extract-named-music argument '(EventChord NoteEvent RestEvent SkipEvent))
) | 375 (extract-named-music argument '(EventChord NoteEvent RestEvent SkipEvent))
) |
376 (ly:music-compress | 376 (ly:music-compress |
377 argument | 377 argument |
378 (ly:moment-div orig-duration (ly:music-length argument))) | 378 (ly:moment-div orig-duration (ly:music-length argument))) |
379 | 379 |
380 argument)) | 380 argument)) |
381 | 381 |
| 382 finger = |
| 383 #(define-event-function (parser location finger) (number-or-markup?) |
| 384 (_i "Apply @var{finger} as a fingering indication.") |
| 385 |
| 386 (make-music |
| 387 'FingeringEvent |
| 388 (if (number? finger) 'digit 'text) |
| 389 finger)) |
| 390 |
382 footnote = | 391 footnote = |
383 #(define-music-function (parser location mark offset footnote item) | 392 #(define-music-function (parser location mark offset footnote item) |
384 ((markup?) number-pair? markup? symbol-list-or-music?) | 393 ((markup?) number-pair? markup? symbol-list-or-music?) |
385 (_i "Make the markup @var{footnote} a footnote on @var{item}. The | 394 (_i "Make the markup @var{footnote} a footnote on @var{item}. The |
386 footnote is marked with a markup @var{mark} moved by @var{offset} with | 395 footnote is marked with a markup @var{mark} moved by @var{offset} with |
387 respect to the marked music. | 396 respect to the marked music. |
388 | 397 |
389 If @var{mark} is not given or specified as @var{\\default}, it is | 398 If @var{mark} is not given or specified as @var{\\default}, it is |
390 replaced by an automatically generated sequence number. If @var{item} | 399 replaced by an automatically generated sequence number. If @var{item} |
391 is a symbol list of form @samp{Grob} or @samp{Context.Grob}, then | 400 is a symbol list of form @samp{Grob} or @samp{Context.Grob}, then |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 revertTimeSignatureSettings = | 1063 revertTimeSignatureSettings = |
1055 #(define-music-function | 1064 #(define-music-function |
1056 (parser location time-signature) | 1065 (parser location time-signature) |
1057 (pair?) | 1066 (pair?) |
1058 | 1067 |
1059 (_i "Revert @code{timeSignatureSettings} | 1068 (_i "Revert @code{timeSignatureSettings} |
1060 for time signatures of @var{time-signature}.") | 1069 for time signatures of @var{time-signature}.") |
1061 (revert-time-signature-setting time-signature)) | 1070 (revert-time-signature-setting time-signature)) |
1062 | 1071 |
1063 rightHandFinger = | 1072 rightHandFinger = |
1064 #(define-event-function (parser location finger) (number-or-string?) | 1073 #(define-event-function (parser location finger) (number-or-markup?) |
1065 (_i "Apply @var{finger} as a fingering indication.") | 1074 (_i "Apply @var{finger} as a fingering indication.") |
1066 | 1075 |
1067 (make-music | 1076 (make-music |
1068 'StrokeFingerEvent | 1077 'StrokeFingerEvent |
1069 'origin location | 1078 (if (number? finger) 'digit 'text) |
1070 (if (string? finger) 'text 'digit) | |
1071 finger)) | 1079 finger)) |
1072 | 1080 |
1073 scaleDurations = | 1081 scaleDurations = |
1074 #(define-music-function (parser location fraction music) | 1082 #(define-music-function (parser location fraction music) |
1075 (fraction? ly:music?) | 1083 (fraction? ly:music?) |
1076 (_i "Multiply the duration of events in @var{music} by @var{fraction}.") | 1084 (_i "Multiply the duration of events in @var{music} by @var{fraction}.") |
1077 (ly:music-compress music | 1085 (ly:music-compress music |
1078 (ly:make-moment (car fraction) (cdr fraction)))) | 1086 (ly:make-moment (car fraction) (cdr fraction)))) |
1079 | 1087 |
1080 settingsFrom = | 1088 settingsFrom = |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 Use this if you want to have a scheme expression evaluated | 1500 Use this if you want to have a scheme expression evaluated |
1493 because of its side-effects, but its value ignored.")) | 1501 because of its side-effects, but its value ignored.")) |
1494 | 1502 |
1495 withMusicProperty = | 1503 withMusicProperty = |
1496 #(define-music-function (parser location sym val music) | 1504 #(define-music-function (parser location sym val music) |
1497 (symbol? scheme? ly:music?) | 1505 (symbol? scheme? ly:music?) |
1498 (_i "Set @var{sym} to @var{val} in @var{music}.") | 1506 (_i "Set @var{sym} to @var{val} in @var{music}.") |
1499 | 1507 |
1500 (set! (ly:music-property music sym) val) | 1508 (set! (ly:music-property music sym) val) |
1501 music) | 1509 music) |
OLD | NEW |