Re: tempo marking fuction
Hi, Maybe these links will help! http://lilypond.org/doc/v2.10/Documentation/user/lilypond/lily-5ec9ac4df8.ly http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Moving-objects#Moving-objects http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Saving-typing-with-identifiers-and-functions#Saving-typing-with-identifiers-and-functions http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Style-sheets#Style-sheets best regards Charlie Anh Hai Trinh a écrit : Hello, I want to have a function that can put text tempo marking, e.g. Allegro. The manual suggests tempoMark = #(define-music-function (parser location padding marktext) (number? string?) #{ \once \override Score . RehearsalMark #'padding = $padding \once \override Score . RehearsalMark #'no-spacing-rods = ##t \mark \markup { \bold $marktext } #}) http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Simple-substitution-functions#Simple-substitution-functions But that put the text centered on the bar line and that's not right. Is there a way to do it properly, i.e. left aligned with the bar? Thanks, AT ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grid lines, GDP- need some help
On Sun, 17 Feb 2008 06:07:14 -0800 Jay Hamilton [EMAIL PROTECTED] wrote: I'm working on section 1.7 for GDP, and nearly done with 1st pass. I've come to the grid lines section 1.7.2.2 and need help understanding the code so I can explain it because there's too much there that is not explained. Does anyone have an example with %here's why this is here annotations that you could send me? How's this: \layout { \context { \Staff \consists Grid_point_engraver %% sets of grid % this sets the grid interval to 1 quarternote (crotchet) gridInterval = #(ly:make-moment 1 4) } } \new Score \with { \consists Grid_line_span_engraver %% centers grid lines horizontally below note heads % by default the grid lines are aligned with the % left side of the notehead % this moves them to the right half a staff space \override NoteColumn #'X-offset = #-0.5 } \new ChoirStaff \new Staff { \stemUp \relative { c'4. d8 e8 f g4 } } \new Staff { %% centers grid lines vertically % by default the grid lines join the middle line of each staff % this moves them up one staff space \override Score.GridLine #'extra-offset = #'( 0.0 . 1.0 ) \stemDown \clef bass \relative c { c4 g' f e } } -- Mark Knoop ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tempo marking fuction
Ledocq-Boccart wrote: Hi, Maybe these links will help! http://lilypond.org/doc/v2.10/Documentation/user/lilypond/lily-5ec9ac4df8.ly http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Moving-objects#Moving-objects http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Saving-typing-with-identifiers-and-functions#Saving-typing-with-identifiers-and-functions Unfortunately, none of the above links provide much additional information compared to what's already use by Anh. However, the one below includes the line that he probably is looking for: \once \override Score . RehearsalMark #'self-alignment-X = #LEFT This gives the left alignment of the text marks. /Mats http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Style-sheets#Style-sheets best regards Charlie Anh Hai Trinh a écrit : Hello, I want to have a function that can put text tempo marking, e.g. Allegro. The manual suggests tempoMark = #(define-music-function (parser location padding marktext) (number? string?) #{ \once \override Score . RehearsalMark #'padding = $padding \once \override Score . RehearsalMark #'no-spacing-rods = ##t \mark \markup { \bold $marktext } #}) http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Simple-substitution-functions#Simple-substitution-functions But that put the text centered on the bar line and that's not right. Is there a way to do it properly, i.e. left aligned with the bar? Thanks, AT ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
\fromproperty return problem.
I just try the version 2.11.40 and his new markup command : \underline. I am very happy with it but i have a problem using it with the \fromproperty command. In the score above, there is no title defined in the score header but you can see a line above the note : { c'1^\markup { \underline \fromproperty #'header:title } } It seems that \fromproperty doesn't return an empty stencil, even if the property given in the argument is empty. It becomes a problem in a book with several scores, if you defines a scoreTitleMarkup for example in a way like that \paper { scoreTitleMarkup = \markup { printallheaders=##t \underline \fromproperty #'header:subsubtitle } } } because if a score has no subsubtitle, you'll get a (under)line ! Is there a workaround for that ? Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Doing \score { ...... } and \context Staff .... in scheme?
Am Mittwoch, 20. Februar 2008 schrieb Nicolas Sceaux: module-define! is the function you were looking for. Ah, thanks... I was confused by the name and didn't even consider it (thinking it somehow defines a module, while in fact it is defining INSIDE a module). Here is function that builds a score with a piece title and some music, using the new bindings: makeScore = #(define-music-function (parser location title music) (string? ly:music?) (let ((score (ly:make-score music)) (header (make-module))) (module-define! header 'piece title) (ly:score-set-header! score header) (collect-scores-for-book parser score)) (make-music 'Music 'void #t)) \makeScore Test { c'4 d' e' f' g'1 } Dang, that looked so promising! It worked fine in all my tests, until I started switching my orchestral score to my own createscore function... The problem is that cue notes do not appear in the score!!! Apparently your makeScore function is not exactly the same as \score { { c'4 d' e' f' g'1 } \header { piece = Test } } Attached is a (stripped-down) example, where the cue notes are displayed in the score, while they are not in the score(s) generated in scheme. I tried both collect-scores-for-book and an explicit \score, and in both cases the cues simply don't appear. Cheers, Reinhold -- -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung Jung-Wien, http://www.jung-wien.at/ \version 2.11.39 \header { title = Scores generated by Scheme } % Definitions of the music, staves, piece names, instrument names, etc. testmusic = {f'4 d'2. f'1 } \addQuote Test \testmusic anothermusic = { c''4 \cueDuring #Test #DOWN {r4 r2 R1} } anotherInstrumentName = another inst. anotherShortInstrumentName = a. anotherstaff = \new Staff \with { instrumentName = \anotherInstrumentName shortInstrumentName = \anotherShortInstrumentName } \anothermusic % classical lilypond style \score { \anotherstaff \header { piece = Classical lilypond code, cues shown } } createscoreV = #(define-music-function (parser location) () (let* ( (score (ly:make-score anotherstaff)) (header(make-module)) ) ; Set the piecename in the header and apply it to the score (module-define! header 'piece Scheme functions used, cues are not shown) (ly:score-set-header! score header) ; Schedule the score for typesetting (collect-scores-for-book parser score) ) ; This is a void function, the score has been schedulled for typesetting already (make-music 'Music 'void #t) ) \createscoreV #(define (createscoreVI) (let* ( (score (ly:make-score anotherstaff)) (header(make-module)) ) (module-define! header 'piece Scheme functions used, cues are not shown) (ly:score-set-header! score header) (ly:export score) ) ) \score { #(createscoreVI) } lisp_score_cue_problemI.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Several issues transcribing ancient notation (clefs, noteheads, spacing)
Mats Bengtsson-4 wrote: till wrote: 2. There is a lot of threads here on the list. You can play with all sorts of spacing but nothing is yet really convincing. The most simple workaround appears to be to scale all note durations to a singe duration, eg. 1/8, which can be achieved by appending the note duration: a\breve*1/8 will give a breve that takes only the space of 1/8. For the record, you made a typo (thinko?) here. The duration of a\breve*1/8 will be 1/8 of the duration of a breve, i.e. a quarter note. /Mats Oh yes, so true, I ignored that! I somehow thought you *set* somthing with the asterisk to a certain duration, but in fact you multiply! So this is no easy way to scale all notes to the same duration. Till -- View this message in context: http://www.nabble.com/Several-issues-transcribing-ancient-notation-%28clefs%2C-noteheads%2C-spacing%29-tp15421815p15617739.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Several issues transcribing ancient notation (clefs, noteheads, spacing)
Hi Till, So this is no easy way to scale all notes to the same duration. No, but a Scheme-savvy person (Mats? or you, Till?) should be able to whip up something like unifyDuration = #(define-music-function (parser location music duration) (ly:music? number?) (let ((new-music (ly:music-deep-copy music))) (ly:make-duration new-music $duration) new-music)) This one, of course, doesn't work -- I'm not very Scheme-savvy... =\ Just a thought-experiment for you. Hope this helps, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \fromproperty return problem.
Le 21 févr. 08 à 14:57, Gilles THIBAULT a écrit : I just try the version 2.11.40 and his new markup command : \underline. I am very happy with it but i have a problem using it with the \fromproperty command. In the score above, there is no title defined in the score header but you can see a line above the note : { c'1^\markup { \underline \fromproperty #'header:title } } It seems that \fromproperty doesn't return an empty stencil, even if the property given in the argument is empty. It becomes a problem in a book with several scores, if you defines a scoreTitleMarkup for example in a way like that \paper { scoreTitleMarkup = \markup { printallheaders=##t \underline \fromproperty #'header:subsubtitle } } } because if a score has no subsubtitle, you'll get a (under)line ! Is there a workaround for that ? I use a \when-property markup command to handle that: #(define-markup-command (when-property layout props symbol markp) (symbol? markup?) (if (chain-assoc-get symbol props) (interpret-markup layout props markp) (ly:make-stencil '() '(1 . -1) '(1 . -1 \when-property #'header:title \underline \fromproperty #'header:title ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
GDP: Repeats
Hi, All - I'm currently working on rewriting Repeats in the Notation Reference, and I don't care for the existing structure. Currently, it looks like this: 1.4 Repeats 1.4.1 Writing repeats 1.4.1.1 Repeat syntax 1.4.1.2 Normal repeats 1.4.1.3 Manual repeat commands 1.4.2 Other repeats 1.4.2.1 Tremolo repeats 1.4.2.2 Measure repeats However, since Repeat syntax discusses the common syntax for all the repeats, it would seem to make more sense to take it out of the section dealing with normal. I'd like to suggest: 1.4 Repeats 1.4.1 Repeat syntax 1.4.1.1 Repeat syntax and types of repeats (introduction of the syntactic construct) (following types of repetition are supported . . .) 1.4.2 Writing repeats 1.4.2.1 Normal repeats (I'd prefer a better term than normal) 1.4.2.2 Manual repeat commands 1.4.2.3 Tremolo repeats 1.4.2.4 Measure repeats It might also make sense to split 1.4.1.1 into 1.4.1.1 Repeat syntax, followed by 1.4.1.2 Types of repeats supported. Comments, please? Ralph ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \fromproperty return problem.
It seems that \fromproperty doesn't return an empty stencil, even if the property given in the argument is empty. Is there a workaround for that ? I use a \when-property markup command to handle that: #(define-markup-command (when-property layout props symbol markp) (symbol? markup?) (if (chain-assoc-get symbol props) (interpret-markup layout props markp) (ly:make-stencil '() '(1 . -1) '(1 . -1 \when-property #'header:title \underline \fromproperty #'header:title Yes, it works perfectly. (Ok, I don't really understand why now, but i'll try to ) Thank you very much. Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Several issues transcribing ancient notation (clefs, noteheads, spacing)
Am Donnerstag, 21. Februar 2008 schrieb Kieren MacMillan: Hi Till, So this is no easy way to scale all notes to the same duration. No, but a Scheme-savvy person (Mats? or you, Till?) should be able to whip up something like unifyDuration = #(define-music-function (parser location music duration) (ly:music? number?) (let ((new-music (ly:music-deep-copy music))) (ly:make-duration new-music $duration) new-music)) This one, of course, doesn't work -- I'm not very Scheme-savvy... =\ Just a thought-experiment for you. As a little help, there is an LSR snippet that takes given notes and applies the same rhythm to them (i.e. it applies certain durations to the passed notes), so I suppose it should be able to adjust it to your needs: http://lsr.dsi.unimi.it/LSR/Item?id=346 Cheers, Reinhold -- -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung Jung-Wien, http://www.jung-wien.at/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re:what does adorn mean in this context? question continues GDP
I knew/know what adorn in English and articulations are in music however in the context of 1.7.2.1 of the GDP they don't seem to mean that. What is 'adorned' here? Does it mean enhanced? (not to me) And looking at the code and seeing the result does anyone see a difference between text and GrobText? Just need an clearer way to say whatever it is that is happening with this code. Thanks in advance. Yours- Jay Jay Hamilton www.soundand.com 206-328-7694 Message: 6 Date: Tue, 19 Feb 2008 09:20:09 +0100 From: Nicholas WASTELL [EMAIL PROTECTED] Subject: Re: what does adorn mean in this context? GDP To: [EMAIL PROTECTED] Cc: lilypond-user@gnu.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII On Mon, 18 Feb 2008 18:26:58 -0800 Jay Hamilton [EMAIL PROTECTED] wrote: There are two music functions, balloonGrobText and balloonText; the former takes the name of the grob to adorn, while the latter may be used as an articulation on a note. The other arguments are the offset and the text of the label. the words after the semicolon (;) look like they make sense but adorn and articulation don't really make sense I'm a native English (en-GB) speaker, but I am not familiar with the balloon function. ;-) However: To adorn is to decorate and enhance. It's rather an old-fashioned word, I suppose. http://en.wiktionary.org/wiki/adorn Articulation in this context is a musical term, meaning a mark (e.g., accent, staccato dot, stopped mark) against a note showing how it should be delivered (i.e., articulated). http://en.wiktionary.org/wiki/articulation It doesn't explain (to me) the difference between the two functions. I'd have a look in LSR, but it appears to be down at the moment. hth, Nick. -- Nicholas WASTELL France ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Error about paper block?
When running Lilypond, I'm continually getting a notice about a \paper { ... } block, when I have one at the top of my document. I'm preparing a file with multiple \book { ... } sections, each with a \layout { ... } block. Is there something special about this that I need to know? ~Ben -- My PGP key (can be found on the Ubuntu Keyserver) Fingerprint is: 74D9 E4BE 2F95 3806 E2FA 7E04 8A71 5831 0E8B CAA1 signature.asc Description: This is a digitally signed message part. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: GDP: Repeats
On Thu, 21 Feb 2008 16:03:38 -0500 Palmer, Ralph [EMAIL PROTECTED] wrote: I'm currently working on rewriting Repeats in the Notation Reference, and I don't care for the existing structure. Currently, it looks like this: I'm not wild about the current structure either, but I'm not certain that your proposal is optimal. - I want to have at least two subsubsections in each subsection. I admit this is trickier with only 5 subsubsections, though. :) - 90% of the time, a user just wants to see \repeat volta 2 {} or possibly \repeat volta 2 {} \alternative { {} {} } so we should make this easy to find. - 90% of our readers won't understand anything from the repeat syntax section on its own. As an amusing sidenote, struggling to understand Repeat syntax (and failing :) is my only memory of reading the lilypond docs for the first time, 7 years ago. - In general, users indicated they wanted longer subsubsections instead of many small subsubsections. Recommendations: - move the first example of 1.4.1.2 into 1.4.1.1. A picture will make 1.4.1.1 much easier to understand. - consider removing the \alternative from that example, and renaming 1.4.1.2 to alternatives. - ... sorry, nothing else springs immediately to mind, but clearly more needs to be done. Umm, I await further discussion? :) Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: tempo marking fuction
That's it. Thank you! -AT On Thu, 21 Feb 2008 08:24:47 -0500, Mats Bengtsson [EMAIL PROTECTED] wrote: Ledocq-Boccart wrote: Hi, Maybe these links will help! http://lilypond.org/doc/v2.10/Documentation/user/lilypond/lily-5ec9ac4df8.ly http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Moving-objects#Moving-objects http://lilypond.org/doc/v2.10/Documentation/user/lilypond/Saving-typing-with-identifiers-and-functions#Saving-typing-with-identifiers-and-functions Unfortunately, none of the above links provide much additional information compared to what's already use by Anh. However, the one below includes the line that he probably is looking for: \once \override Score . RehearsalMark #'self-alignment-X = #LEFT This gives the left alignment of the text marks. /Mats ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user