Re: composing Scheme identifiers?

2014-03-02 Thread Paul Morris
t: http://lilypond.1069038.n5.nabble.com/composing-Scheme-identifiers-tp160030p160056.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: composing Scheme identifiers?

2014-03-02 Thread David Kastrup
Paul Morris writes: > Simon Albrecht-2 wrote >> scoreSetup = >> #(define-music-function >> (parser location letter) >> (string?) >> #{ >> \score { >> \new Staff = "bassus" \with { instrumentName = "bassus" } >> % this is supposed to give the same result as @code{\bassK} for example… >> #(string->

Re: composing Scheme identifiers?

2014-03-02 Thread Paul Morris
whether I'm just doing something wrong? Here's a simple example that produces that error for me: \version "2.18.0" scoreSetup = #(define-music-function (parser location letter) (string?) #{ \score { { a b c d } } #}) \scoreSetup "K" -- View this mess

Re: composing Scheme identifiers?

2014-03-02 Thread David Kastrup
Simon Albrecht writes: > Hello, > > I currently work on a mass setting by Palestrina. The music is stored > in variables sopranoK, altoK, tenorK, bassK, sopranoVerseK, …, > sopranoG, altoG, etc. etc. for the different parts and movements. Now > since I need a separate \score block for each moveme

composing Scheme identifiers?

2014-03-02 Thread Simon Albrecht
Hello, I currently work on a mass setting by Palestrina. The music is stored in variables sopranoK, altoK, tenorK, bassK, sopranoVerseK, …, sopranoG, altoG, etc. etc. for the different parts and movements. Now since I need a separate \score block for each movement, but these score blocks will

Re: writing identifiers

2007-05-23 Thread madhg
hanks, David -- View this message in context: http://www.nabble.com/writing-identifiers-tf3803517.html#a10765855 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu

Re: writing identifiers

2007-05-23 Thread Mats Bengtsson
It's not that tricky. At first sight, you may even think that there is no need for a music function at all, but as you probably have found out yourself, an identifier like myGrace = { \once \override Slur #'transparent = ##t \appoggiatura } does not work. The reason is that \appoggiatura itself i

Re: writing identifiers

2007-05-23 Thread madhg
me. > Thanks, Graham. I had followed links as far as 5.6, which didn't help. Ch. 12, "Interfaces for programmers", is serious stuff, as the title says. I might work on it when I have more time for study. David -- View this message in context: http://www.nabble.com/writing-identi

Re: writing identifiers

2007-05-23 Thread Graham Percival
madhg wrote: But after rereading this section of the doc, I still don't know what should go after "parser location" or replace "(number?)". Is that information somewhere accessible (bearing in mind that the Learning Manual is intended for non-experts)? I feel rather at sea here. Follow the l

writing identifiers

2007-05-23 Thread madhg
ion padding) (number?) #{ \once \override TextScript #'padding = #$padding #}) from the "Learning Manual" section of the documentation: http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Saving-typing-with-identifiers-and-functions But after rereadi

Re: Using identifiers for triplets

2007-03-26 Thread Mats Bengtsson
That's a straightforward application of section "12.1.2 Simple substitution functions": \version "2.10.0" trip = #(define-music-function (parser location music) (ly:music?) #{ \times 2/3 $music #}) /Mats Anders Nelstrom wrote: Is it possible to create an identifier to save typing when triple

Using identifiers for triplets

2007-03-26 Thread Anders Nelstrom
Is it possible to create an identifier to save typing when triplets are required? For example, instead of typing: \times 2/3 { c8 e g } \times 2/3 { c g e } c it would be great to use: \trip { c8 e g } \trip { c g e } c4 or such like. I appreciate that the \times command is flexible, and I

Re: Identifiers

2006-11-08 Thread Graham Percival
Kamal wrote: How do you attach a duration (or other notation) to an identifier? You can't attach durations to identifiers. You need to write a music function to do this; see "interfaces for programmers" in the 2.9 manual. C

Re: Identifiers

2006-11-08 Thread Rick Hansen (aka RickH)
s capability for my chord library, so I will be interested in an answer as well. -- View this message in context: http://www.nabble.com/Identifiers-tf2596524.html#a7246499 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___

Identifiers

2006-11-08 Thread Kamal
How do you attach a duration (or other notation) to an identifier? Example: I have: 8 16[ ] I want to use "" as an identifier so I tried the following but it didn't work: var = { < a c e> } \score { { \var \var16[ \var16] } } I am using lilypond 2.8.6 ___

Re: identifiers

2006-09-25 Thread Mike Amundsen
ll keep digging & experimenting to satifsy my curiousity.    I did discover that identifiers needed to be alpha only in the documentation although I didn't look until after I tried:  'CMaj7 = { }' .  That has everything to do with my learning style and nothing to do with the doc

Re: identifiers

2006-09-23 Thread Mats Bengtsson
Quoting Mike Amundsen <[EMAIL PROTECTED]>: While creating identifiers for fret diagrams I found the identifiers can be alpha only. I've searched the archives to see if there was a discussion that described the reasons for that constraint. I'd guess it's for reasons

identifiers

2006-09-22 Thread Mike Amundsen
While creating identifiers for fret diagrams I found the identifiers can be alpha only. I've searched the archives to see if there was a discussion that described the reasons for that constraint. I'd guess it's for reasons of simplicity and/or something to do with the interopera