Re: Writing a fingering chart for French Horn
Hi Tommaso, 2013/8/18 Tommaso Gordini illinguista1...@gmail.com: Thank you, now everything works perfectly! I still have three demands. 1. It is possible to center the whole notes in the bar? Yes. See attached file. 2. It is possible to determine the distance of the first row of numbers from the first line of the pentagram? I wish that all the numbers were in line below the staff. For example, not 1 2 3 2 21 2-3 but 1 2 2 3 21 2-3 Here I don't know what you want. Doesn't the attached file gives you want you desire? 3. How do you get the line bar even in the white space between staves? Do you mean SpanBars? If yes, use StaffGroup. Again see attached file. Grazie e ciao Tommaso HTH, Harm tommaso-01.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Writing a fingering chart for French Horn
Hi Tommaso, 2013/8/18 Tommaso Gordini illinguista1...@gmail.com: Thank you, Thomas! please always reply to all! Unfortunately, I get an error: it could be due to the version of LilyPond that I use (2.16.2)? Yep. My use of define-scheme-function within fingerChart doesn't work with 2.16.2 this way. Try to replace it with: fingerChart = #(define-event-function (parser location arg)(string?) #{ \tweak #'text \markup \override #'(baseline-skip . 2) \finger \center-column { $(string-split arg #\+) } - #}) Btw, your approach seems to be inspired by http://lilypond.org/doc/v2.16/Documentation/notation/common-notation-for-wind-instruments#fingerings Seems we have no woodwind-diagram for French Horn http://lilypond.org/doc/v2.16/Documentation/notation/woodwind-diagrams Though, you might be interested in this discussion: http://lilypond.1069038.n5.nabble.com/Lilypond-Woodwind-Diagram-for-Bassoon-missing-half-hole-option-for-first-finger-td142777.html HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Fwd: Writing a fingering chart for French Horn
Thank you, now everything works perfectly! I still have three demands. 1. It is possible to center the whole notes in the bar? 2. It is possible to determine the distance of the first row of numbers from the first line of the pentagram? I wish that all the numbers were in line below the staff. For example, not 1 2 3 2 21 2-3 but 1 2 2 3 21 2-3 3. How do you get the line bar even in the white space between staves? Grazie e ciao Tommaso -- Forwarded message -- From: Thomas Morley thomasmorle...@gmail.com Date: 2013/8/18 Subject: Re: Writing a fingering chart for French Horn To: Tommaso Gordini illinguista1...@gmail.com Cc: lilypond-user lilypond-user@gnu.org Hi Tommaso, 2013/8/18 Tommaso Gordini illinguista1...@gmail.com: Thank you, Thomas! please always reply to all! Unfortunately, I get an error: it could be due to the version of LilyPond that I use (2.16.2)? Yep. My use of define-scheme-function within fingerChart doesn't work with 2.16.2 this way. Try to replace it with: fingerChart = #(define-event-function (parser location arg)(string?) #{ \tweak #'text \markup \override #'(baseline-skip . 2) \finger \center-column { $(string-split arg #\+) } - #}) Btw, your approach seems to be inspired by http://lilypond.org/doc/v2.16/Documentation/notation/common-notation-for-wind-instruments#fingerings Seems we have no woodwind-diagram for French Horn http://lilypond.org/doc/v2.16/Documentation/notation/woodwind-diagrams Though, you might be interested in this discussion: http://lilypond.1069038.n5.nabble.com/Lilypond-Woodwind-Diagram-for-Bassoon-missing-half-hole-option-for-first-finger-td142777.html HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Writing a fingering chart for French Horn
Hello to all, this is my first post on lilypond-user. I'm translating a practical guide to French horn and I have a problem that I could not solve. I have to write a French Horn fingering card. Many notes admit alternative combinations, and they are written one below the other. Below I attack the best code that I could find. Now I ask you: can you give me some advice to improve it? The position of the numbers is correct, or you think it is better to hit them under each note? In a scheme like this, you would put the notes centered in the bar, or the'd leave as they are? The result now I do, but I see that as early as the second pentagram numbers are no longer lined up as in the first. I ask you some help, and you can modify my code and show me how to do. Thank you! Tommy The code: \version 2.16.2 centermarkup = { \once \override TextScript #'self-alignment-X = #CENTER \once \override TextScript #'X-offset =#(ly:make-simple-closure `(,+ ,(ly:make-simple-closure (list ly:self-alignment-interface::centered-on-x-parent)) ,(ly:make-simple-closure (list ly:self-alignment-interface::x-aligned-on-self } %\paper { % #(set-paper-size a4) %} global = { \key c \major \time 4/4 \clef bass } hornF = \relative c' { \global \transposition f % Qui segue la musica. f,,1 \centermarkup \once \override TextScript #'padding = #2 fis_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 2 - 3 } } \centermarkup \once \override TextScript #'padding = #2 g_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 3 } } \centermarkup \once \override TextScript #'padding = #2 gis_\markup{\override #'(baseline-skip . 2) \column { \finger 2 - 3 } } \centermarkup \once \override TextScript #'padding = #2 a_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 2 \finger 3 } } \centermarkup \once \override TextScript #'padding = #2 ais_\markup{\override #'(baseline-skip . 2) \column { \finger 1 } } \centermarkup \once \override TextScript #'padding = #2 b_\markup{\override #'(baseline-skip . 2) \column { \finger 2 } } \centermarkup \once \override TextScript #'padding = #2 c_\markup{\override #'(baseline-skip . 2) \column { \finger 0 } } \centermarkup \once \override TextScript #'padding = #2 cis_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 2 - 3 } } \centermarkup \once \override TextScript #'padding = #1 d_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 3 } } \centermarkup \once \override TextScript #'padding = #1 dis_\markup{\override #'(baseline-skip . 2) \column { \finger 2 - 3 } } \centermarkup \once \override TextScript #'padding = #1 e_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 2 \finger 3 } } \centermarkup \once \override TextScript #'padding = #1 f_\markup{\override #'(baseline-skip . 2) \column { \finger 1 } } \centermarkup \once \override TextScript #'padding = #1 fis_\markup{\override #'(baseline-skip . 2) \column { \finger 2 \finger (1 - 2 - 3) } } \centermarkup \once \override TextScript #'padding = #1 g_\markup{\override #'(baseline-skip . 2) \column { \finger 0 \finger 1 - 3 } } \centermarkup \once \override TextScript #'padding = #1 gis_\markup{\override #'(baseline-skip . 2) \column { \finger 2 - 3 } } \centermarkup \once \override TextScript #'padding = #1 a_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 2 \finger 3 } } \centermarkup \once \override TextScript #'padding = #1 ais_\markup{\override #'(baseline-skip . 2) \column { \finger 1 \finger (1 - 2 - 3) } } \centermarkup \once \override TextScript #'padding = #1 b_\markup{\override #'(baseline-skip . 2) \column { \finger 2 \finger 1 - 3 } } \break \clef treble \centermarkup \once \override TextScript #'padding = #3 c_\markup{\override #'(baseline-skip . 2) \column { \finger 0 \finger 2 - 3 } } \centermarkup \once \override TextScript #'padding = #3 cis_\markup{\override #'(baseline-skip . 2) \column { \finger 1 - 2 \finger 3 \finger (1 - 2 - 3) } } \centermarkup \once \override TextScript #'padding = #3 d_\markup{\override #'(baseline-skip . 2) \column { \finger 1 \finger 1 - 3 } } \centermarkup \once \override TextScript #'padding = #3 dis_\markup{\override #'(baseline-skip . 2) \column { \finger 2 \finger 2 - 3 } } \centermarkup \once \override TextScript #'padding = #3 e_\markup{\override #'(baseline-skip . 2) \column { \finger 0 \finger 1 - 2 \finger 3 } } \centermarkup \once \override TextScript #'padding = #3 f_\markup{\override #'(baseline-skip . 2) \column { \finger 1 } } \centermarkup \once \override TextScript #'padding = #3 fis_\markup{\override #'(baseline-skip . 2) \column { \finger 2 \finger (1 - 2 - 3) } } \centermarkup \once \override TextScript #'padding = #3 g_\markup{\override #'(baseline-skip . 2) \column { \finger 0 \finger 1 - 3 } } \break \centermarkup \once \override TextScript #'padding = #1 gis_\markup{\override #'(baseline-skip . 2)
Re: Writing a fingering chart for French Horn
Hi Tommaso, 2013/8/17 Tommaso Gordini illinguista1...@gmail.com: Hello to all, this is my first post on lilypond-user. Welcome! I'm translating a practical guide to French horn and I have a problem that I could not solve. I have to write a French Horn fingering card. Many notes admit alternative combinations, and they are written one below the other. Below I attack the best code that I could find. Now I ask you: can you give me some advice to improve it? The position of the numbers is correct, or you think it is better to hit them under each note? In a scheme like this, you would put the notes centered in the bar, or the'd leave as they are? The result now I do, but I see that as early as the second pentagram numbers are no longer lined up as in the first. I ask you some help, and you can modify my code and show me how to do. Thank you! Tommy Actually, I don't understand what you're asking. Anyway, I rewrote part of your code to avoid retyping the same things again and again. Note that I used \center-column instead of \column. The argument of \fingerChart will be spilt at + i.e. \fingerChart 1+2 will return a center-columned markup with two lines: the first containg 1, the second 2. You'll need a newer devel-version to make full use of it. The Text_align_engraver will work with 2.16.2, though. It is from: http://lsr.dsi.unimi.it/LSR/Item?id=637 (click on the image) Because I don't know French Horn, I doubt I'll be of more use. \version 2.17.24 % from: % http://lsr.dsi.unimi.it/LSR/Item?id=637 #(define (Text_align_engraver ctx) (let ((scripts '()) (note-column #f)) `((acknowledgers (note-column-interface . ,(lambda (trans grob source) ;; cache NoteColumn in this Voice context (set! note-column grob))) (text-script-interface . ,(lambda (trans grob source) ;; whenever a TextScript is acknowledged, ;; add it to `scripts' list (set! scripts (cons grob scripts) (stop-translation-timestep . ,(lambda (trans) ;; if any TextScript grobs exist, ;; set NoteColumn as X-parent (and (pair? scripts) (for-each (lambda (script) (set! (ly:grob-parent script X) note-column)) scripts)) ;; clear scripts ready for next timestep (set! scripts '())) fingerChart = #(define-scheme-function (parser location arg)(string?) #{ \markup \override #'(baseline-skip . 2) \finger \center-column { $(string-split arg #\+) } #}) global = { \key c \major \clef bass } hornF = \relative c' { \global \transposition f % Qui segue la musica. f,,1 fis_\fingerChart 1 - 2 - 3 g_\fingerChart 1 - 3 gis_\fingerChart 2 - 3 a_\fingerChart 1 - 2+3 ais_\fingerChart 1 b_\fingerChart 2 c_\fingerChart 0 cis_\fingerChart 1 - 2 - 3 d_\fingerChart 1 - 3 dis_\fingerChart 2 - 3 e_\fingerChart 1 - 2+3 f_\fingerChart 1 fis_\fingerChart 2+(1 - 2 - 3) g_\fingerChart 0+1 - 3 gis_\fingerChart 2 - 3 a_\fingerChart 1 - 2+3 ais_\fingerChart (1 - 2 - 3) b_\fingerChart 2+1 - 3 \break \clef treble \bar || } hornB = \relative c' { \global \transposition f % Qui segue la musica. f,,1_\fingerChart 0 fis g gis a ais b_\fingerChart 1 - 2 - 3 c_\fingerChart 1 - 3 cis_\fingerChart 2 - 3 d_\fingerChart 1 - 2+3 dis_\fingerChart 1 e_\fingerChart 2 f_\fingerChart 0 fis g gis a ais b \clef treble \bar || } hornFPart = \new Staff \with { instrumentName = Fa shortInstrumentName = Fa } \hornF hornBPart = \new Staff \with { instrumentName = \markup { Si\flat } shortInstrumentName = \markup { Si\flat } } \hornB \score { \hornFPart \hornBPart \layout { \context { \Score \remove Bar_number_engraver } \context { \Voice \consists #Text_align_engraver \override TextScript #'X-offset = #ly:self-alignment-interface::aligned-on-x-parent \override TextScript #'self-alignment-X = #CENTER } } } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user