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--2011 Han-Wen Nienhuys <hanwen@xs4all.nl> | 5 %%%% Copyright (C) 2003--2011 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 (list | 374 (list |
375 #{ | 375 #{ |
376 \override TabNoteHead #'stencil = #(tab-note-head::print-custom-fret
-label $fret) | 376 \override TabNoteHead #'stencil = #(tab-note-head::print-custom-fret
-label $fret) |
377 #} | 377 #} |
378 (make-harmonic | 378 (make-harmonic |
379 (calc-harmonic-pitch pitch music)) | 379 (calc-harmonic-pitch pitch music)) |
380 #{ | 380 #{ |
381 \revert TabNoteHead #'stencil | 381 \revert TabNoteHead #'stencil |
382 #})))) | 382 #})))) |
383 | 383 |
| 384 startGlissandoStem = { |
| 385 \override NoteHead #'stencil = #(ly:make-stencil '() '(0 . 0) '(0 . 0)) |
| 386 \override NoteHead #'no-ledgers = ##t |
| 387 \set glissandoStem = ##t |
| 388 } |
| 389 |
| 390 stopGlissandoStem = { |
| 391 \revert NoteHead #'stencil |
| 392 \revert NoteHead #'no-ledgers |
| 393 \unset glissandoStem |
| 394 } |
| 395 |
384 harmonicByRatio = #(define-music-function (parser location ratio music) (number?
ly:music?) | 396 harmonicByRatio = #(define-music-function (parser location ratio music) (number?
ly:music?) |
385 (let ((pitch (ratio->pitch ratio)) | 397 (let ((pitch (ratio->pitch ratio)) |
386 (fret (ratio->fret ratio))) | 398 (fret (ratio->fret ratio))) |
387 (make-sequential-music | 399 (make-sequential-music |
388 (list | 400 (list |
389 #{ | 401 #{ |
390 \override TabNoteHead #'stencil = #(tab-note-head::print-custom-fret-
label $fret) | 402 \override TabNoteHead #'stencil = #(tab-note-head::print-custom-fret-
label $fret) |
391 #} | 403 #} |
392 (make-harmonic | 404 (make-harmonic |
393 (calc-harmonic-pitch pitch music)) | 405 (calc-harmonic-pitch pitch music)) |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 | 970 |
959 | 971 |
960 | 972 |
961 withMusicProperty = | 973 withMusicProperty = |
962 #(define-music-function (parser location sym val music) | 974 #(define-music-function (parser location sym val music) |
963 (symbol? scheme? ly:music?) | 975 (symbol? scheme? ly:music?) |
964 (_i "Set @var{sym} to @var{val} in @var{music}.") | 976 (_i "Set @var{sym} to @var{val} in @var{music}.") |
965 | 977 |
966 (set! (ly:music-property music sym) val) | 978 (set! (ly:music-property music sym) val) |
967 music) | 979 music) |
OLD | NEW |