Re: Varying shape note heads varying by semitone
I have to admit that I'm stuck here. I see some documentation for gros here: http://lilypond.org/doc/v2.11/Documentation/user/lilypond-internals/grob_002dinterface#grob_002dinterface but I don't know where to start. Do you have a suggested URL? Han-Wen Nienhuys [EMAIL PROTECTED] writes: It would be the coolest if (all) these extensions could happen in grob-property space. This could be done by automatically overriding and reverting grob properties when middleCPosition or tonic context properties change. 2007/4/21, Kevin Dalley [EMAIL PROTECTED]: As another step toward in my path toward varying notation in LilyPond, I am varying note shapes by semitone. Usually, there are fewer than 12 note heads, but the semitone of the note determine the shape. My current implementation uses a function shapeLayoutFunction which returns an integer, which is an index into the vector shapeNoteStyles. This seems to work. The function description is: Function returning an integer which indexes into shapeNoteStyles vector. It takes an argument of pitch and tonic. Altnernatively, I could define a function which return a note head shape. Does anyone see a good reason to prefer one to the other. The first option has an advantage of using a small function like this: #(define (shapeSemitone pitch tonic) (modulo (ly:pitch-semitones pitch) 12)) plus an already standard vector. The second option has an advantage of everything being included in one variable, but the disadvantage of requiring slightly more complicated functions. For examples, see Twinline or kevin in this page: -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Varying shape note heads varying by semitone
As another step toward in my path toward varying notation in LilyPond, I am varying note shapes by semitone. Usually, there are fewer than 12 note heads, but the semitone of the note determine the shape. My current implementation uses a function shapeLayoutFunction which returns an integer, which is an index into the vector shapeNoteStyles. This seems to work. The function description is: Function returning an integer which indexes into shapeNoteStyles vector. It takes an argument of pitch and tonic. Altnernatively, I could define a function which return a note head shape. Does anyone see a good reason to prefer one to the other. The first option has an advantage of using a small function like this: #(define (shapeSemitone pitch tonic) (modulo (ly:pitch-semitones pitch) 12)) plus an already standard vector. The second option has an advantage of everything being included in one variable, but the disadvantage of requiring slightly more complicated functions. For examples, see Twinline or kevin in this page: http://www.kelphead.org/chromatic/scales.html ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Noteheads
You also need to describe where to attach the stems. A few sentences on this would be nice for the documentation. I managed to do it once, but I'm not ready to describe the process myself. Maximilian Albert [EMAIL PROTECTED] writes: It's a fun experience to learn metafont, so if you have the time and are a bit inclined to programming, give it a try. There is a nice introductory tutorial available at http://metafont.tutorial.free.fr/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How do I mix ly and scheme in define-music-function
Thanks. That was the part I was missing. I didn't realize that all of the items must be combined, and I didn't know how to combine them anyway. Is this worth mentioning somewhere in the Music Functions section of the documentation. Does that mean I have to write it. Nicolas Sceaux [EMAIL PROTECTED] writes: setAltStaff = #(define-music-function (parser location ...) (...) (make-music 'SequentialMusic 'elements (list (if ..condition.. #{ ..foo.. #} ;; if condition is not fulfilled, empty music: (make-music 'SequentialMusic)) #{ ..baz.. #}))) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
How do I mix ly and scheme in define-music-function
I want to stick an if statement in the middle of setting many values: This doesn't work. The if block appears to be skipped. By the way, in the real code, I replace #t with something else, but if I can't get it to work with #t, there is something wrong with my understanding. The later block does work. setAltStaff = #(define-music-function (parser location style lowerOctave upperOctave) (string? number? number?) (if #t #{ \set shapeNoteStyles = #(chromatic-value notation-style shape-note-styles) \set shapeLayout = #shapeSemitone #}) #{ \set Staff.clefGlyph = #clefs.G \set middleCPosition = #(chromatic-value $style middleCPosition) \set clefPosition = #(+ (chromatic-value $style middleCPosition) (chromatic-value $style g-clef-from-c)) \set staffLineLayout = #(chromatic-value $style layout) \override Staff.StaffSymbol #'line-count = #(length (all-lines-notation $style $lowerOctave $upperOctave)) \override Staff.StaffSymbol #'line-positions = #(all-lines-notation $style $lowerOctave $upperOctave) \override Staff.StaffSymbol #'internal-ledger-lines = #(all-ledgers-notation $style $lowerOctave $upperOctave) #} ) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Support for diatonic accordeon tablature
There are many different styles of accordions, probably leading to different notations. I would like to update some of the other accordion information as well, in between my chromatic staff changes. Cameron Horsburgh [EMAIL PROTECTED] writes: This looks rather interesting. I have two suggestions regarding what you could do with it. First, you could submit it to the LilyPond Snippet Repository. There is already at least one example of accordion notation there, although that's qute different to what you've done. You can do this by going to http://lsr.dsi.unimi.it/ and clicking on 'Contributing'. Second, you could write a page for the official documentation. There's a whole chapter (chapter 7) devoted to instrument specific issues. Go to http://lilypond.org/web/devel/participating/documentation-adding and follow the instructions. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [PATCH] Added chromatic ledger and internal ledger lines. Sample test file is
One more patch for the chromatic staff. I reverted this change. My original version does not work at all when a ledger line is at position 0. This will do better, but the ledger line code still needs some revisions for this case. Please tell me if you would like a patch which starts from the current 2.11. I'm willing to give it a try, if I can figure out enough git. From b530144219ff01bb837b559859f5a16ab5548709 Mon Sep 17 00:00:00 2001 From: Kevin Dalley [EMAIL PROTECTED] Date: Sat, 24 Mar 2007 18:33:55 -0700 Subject: [PATCH] Ignore pos if pos is 0. Restores original behavior, though this should be fixed to allow for ledger lines at position 0. --- lily/ledger-line-spanner.cc |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lily/ledger-line-spanner.cc b/lily/ledger-line-spanner.cc index 8401d2d..1ec9a68 100644 --- a/lily/ledger-line-spanner.cc +++ b/lily/ledger-line-spanner.cc @@ -526,7 +526,7 @@ Ledger_line_spanner::print (SCM smob) Item *h = dynamic_castItem * (heads[i]); int pos = Staff_symbol_referencer::get_rounded_position (h); - if (!staff_extent.contains (pos - sign (pos))) + if (pos !staff_extent.contains (pos - sign (pos))) { Interval ledger_size; Real left_shorten; -- 1.5.0.3 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Copyrights (was Re: No time/no bars)
You probably know about Mutopia's page on copyright. Their rule of thumb is: 1. The composer, lyricist, arranger and editor all must have been dead for more than seventy years. 2. The work must have been published prior to 1923. http://www.mutopiaproject.org/contribute.html Individual countries have different limits. I would wonder whether your score has enough contact by recent people to still be under copyright. If you contact Mutopia or Gutenberg, they can advise you further. http://www.gutenberg.org/wiki/Gutenberg:The_Sheet_Music_Project Klaus Muth [EMAIL PROTECTED] writes: Good Luck Yeah. I'm now half through Part three of Danses de travers. But I'm not sure about the copyright, Satie is dead long enough, but my score is marked with (c) 1978. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [PATCH] Added chromatic ledger and internal ledger lines. Sample test file is
Oops. I forgot my virtual destructor. From 5cc0407d62fd9cf02960cc5996b30578862e8e4c Mon Sep 17 00:00:00 2001 From: Kevin Dalley [EMAIL PROTECTED] Date: Wed, 7 Mar 2007 00:04:37 -0800 Subject: [PATCH] Added virtual destructor for Layout_pos --- lily/note-heads-engraver.cc |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lily/note-heads-engraver.cc b/lily/note-heads-engraver.cc index 4e9b0fe..52b7c5a 100644 --- a/lily/note-heads-engraver.cc +++ b/lily/note-heads-engraver.cc @@ -26,6 +26,9 @@ class Layout_pos { public: virtual int pos(Pitch* pit) = 0; + virtual ~Layout_pos() + { + } }; class Layout_pos_traditional : public Layout_pos -- 1.4.4.4 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: NoteNames, how do I change language and spacing
Thanks. I'm compiling the code anyway, and trying to get ready for submitting some changes. I'm getting used to modifying the code. I don't know whether I will add this change myself, or wait for someone else. Maximilian Albert [EMAIL PROTECTED] writes: Mats Bengtsson schrieb: Kevin Dalley wrote: I'm using NoteNames for some demos. There are 2 items I want to change. 1. I'm including english.ly, but as is output as ais. Is it possible to change the language? Unfortunately, it seems that the language is hard-coded in the current implementation. That shouldn't be hard to change though. More precisely, in the file lily/pitch.cc, there is a comment in lines 161-162 reading /* FIXME Merge with *pitch-text* funcs in chord-name.scm */ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
NoteNames, how do I change language and spacing
I'm using NoteNames for some demos. There are 2 items I want to change. 1. I'm including english.ly, but as is output as ais. Is it possible to change the language? 2. ais and b are right next to each other. With lyrics, I can change spacing. Is this possible with NoteNames? \version 2.10 \include english.ly scalesAll = \relative { a, as b c cs d ds e f fs g gs a as b c cs d ds e f fs g gs a as b c cs d ds e f fs g gs a } \new Staff \with { } { \time 4/4 \scalesAll \context NoteNames { \set printOctaveNames= ##f \scalesAll } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sponsorhip of new note heads
Thanks. I missed the upwards-pointing triangle. I should be able to figure out enough metafont to make the triangle point downwards. The upwards pointing triangle isn't listed in http://lilypond.org/doc/v2.10/Documentation/user/lilypond/source/input/regression/collated-files#note-head-style.ly though the triangle is in the example immediately before this one. The first URL has claims of including all note-head styles, from http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Special-noteheads#Special-noteheads though it seems to lack a few examples. Mats Bengtsson [EMAIL PROTECTED] writes: At least the upwards pointing triangle is already available in the font, see Appendix C.4 The Feta font in the manual. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Banjo part is relative but shouldn't be
Remove \relative and its matching . Your banjo will no longer need 64 frets. Pierre Abbat [EMAIL PROTECTED] writes: I'm writing a song with a banjo accompaniment. The melody line is relative and comes out correct. The banjo line, since it jumps all over the strings, I write in absolute notation, but Lily writes it as relative and goes all the way up to the 64th fret. How do I fix this? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: A contribution to the Wiki
Is the lilypond extension available on this wiki site. I can't figure out how to display lilypond in the best way on this site. John Mandereau [EMAIL PROTECTED] writes: Good, please add such small contributions to the wiki without asking permission. If you plan to contribute regularly, you are encouraged to create a user account and introduce yourself. Only big changes or restructurations may need to be discussed first. Speaking of, the Resources links section becomes too big; sooner or later it should be splitted into several pages. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Wikis
The nice thing about a wiki is that I can spend 15 minutes improving the one area which I now understand after spending an hour researching. Then, next month, I'll spend another 15 minutes. Pages which are often references tend to get better quickly. I probably won't spend 5 hours writing lilypond docs, but I might spend 15 minutes a few times a year. Graham Percival [EMAIL PROTECTED] writes: I have a challenge: before complaining about my anti-wiki position, spend five hours writing docs for the official docs. It doesn't have to be all at once; spend half an hour one day, maybe an hour on the next, etc. Send your doc changes to me according to this page: http://lilypond.org/web/devel/participating/documentation-adding If you want ideas on what to work on, I'm more than happy to discuss it with you. (but the time spent on that discussion doesn't count towards those five hours) This doesn't need to be original work; if you find some info in an email from lilypond-user that should be in the docs, by all means submit that. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Wikis
Yes, and no. I could spend 15 minutes, and mail it off to Graham, but I probably won't. The official document seems much more serious, and deserves much more thought than 15 minutes, therefore I may never do it. Nevertheless, I may give it a try. Graham Percival [EMAIL PROTECTED] writes: Kevin Dalley wrote: The nice thing about a wiki is that I can spend 15 minutes improving the one area which I now understand after spending an hour researching. The same applies to the main docs! Spend 10 minutes making a good small lilypond example, spend five minutes writing two or three sentences explaining the example, then email it to me. http://lilypond.org/web/devel/participating/documentation-adding - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
How do I add fingering for chords
Can I add fingering information for ChordNames when chords are entered using chordmode? Fingering when using staffs might be interesting as well. Since this is for an accordion, a single finger is often sufficient, and I don't need 1 number per note. \version 2.9.19 \include english.ly #(set-global-staff-size 20) harmonies = \relative c, { \chordmode { \time 4/4 c1:m c:m d:m7 e:m f2:m g:7 \bar || } } \score { \context ChordNames { \harmonies } \context Staff = lower { \clef treble \key c \minor % \lower \harmonies } \layout { \context { \GrandStaff \accepts Lyrics } \context { \Lyrics \consists Bar_engraver } } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user