Re: Strings as variable names

2015-12-29 Thread David Kastrup
Simon Albrecht writes: > To just give my personal opinion, it would be brilliant to have > > (define (foo arg) ) > (define-music-function (foo arg) (arg-type?) ) > [] > (define-markup-command (foo arg) (arg-type?) ) I don't share your sentiments here. Now

Re: Strings as variable names

2015-12-29 Thread Simon Albrecht
On 28.12.2015 23:35, David Kastrup wrote: Simon Albrecht writes: On 28.12.2015 20:28, Johan Vromans wrote: NR refers to http://www.lilypond.org/doc/v2.19/Documentation/learning/organizing-pieces-with-variables which does not mention the quoted syntax, and explicitly

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 21:39:05 +0100 (CET) Werner LEMBERG wrote: > I suggest to use the m4 preprocessor > [https://en.wikipedia.org/wiki/M4_(computer_language)] to convert, Yikes. Speaking of overkill... > say, `violin1' to `violinI'. Add the line > > define(`violin1',

Re: Strings as variable names

2015-12-28 Thread David Kastrup
Johan Vromans <jvrom...@squirrel.nl> writes: > On Mon, 28 Dec 2015 12:05:22 +1100 > Andrew Bernard <andrew.bern...@gmail.com> wrote: > >> The name of a variable must have alphabetic characters only, no numbers, >> underscores, or dashes. >> >>

Re: Strings as variable names

2015-12-28 Thread Andrew Bernard
Consistency with what actually? And so the NR should in fact therefore be updated? Andrew On 28/12/2015, 20:17, "David Kastrup" wrote: The quote syntax is a bit of an ugliness which was added for sort-of

Re: Strings as variable names

2015-12-28 Thread David Kastrup
Andrew Bernard writes: > d...@gnu.org> wrote: >> >> The quote syntax is a bit of an ugliness which was added for sort-of >> consistency reasons. > > Consistency with what actually? After xxx =

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 12:51:51 +0100 David Kastrup wrote: > "xxx" = ... > > has always been allowed for arbitrary strings. > > > And so the NR should in fact therefore be updated? > > It's not really making stuff more readable. Now if only this would work: \version "2.19.33"

Re: Strings as variable names

2015-12-28 Thread David Kastrup
David Sumbler <da...@aeolia.co.uk> writes: >> > From: David Kastrup <d...@gnu.org> >> > To: Andrew Bernard <andrew.bern...@gmail.com> >> > Cc: lilypond-user@gnu.org >> > Subject: Re: Strings as variable names >> > Date: Mon, 28

Re: Strings as variable names

2015-12-28 Thread David Sumbler
> > From: David Kastrup <d...@gnu.org> > > To: Andrew Bernard <andrew.bern...@gmail.com> > > Cc: lilypond-user@gnu.org > > Subject: Re: Strings as variable names > > Date: Mon, 28 Dec 2015 12:51:51 +0100 > > > > Andrew Bernard <andrew.ber

Re: Strings as variable names

2015-12-28 Thread Urs Liska
ella_melodia_\part" > } > > I can think of some use cases for this. I think something like this should be achievable using a music function with two string arguments. It could concatenate them in an arbitrary fashion and find the appropriate variable through the parser commands. Ur

Re: Strings as variable names

2015-12-28 Thread David Kastrup
Urs Liska <u...@openlilylib.org> writes: > Am 28.12.2015 um 18:49 schrieb David Kastrup: >>> Using the syntax with quotes is rather ugly, I agree. But it is >>> > nonetheless potentially useful for two reasons: >>> > (1) it enables us to use n

Re: Strings as variable names

2015-12-28 Thread Urs Liska
Am 28.12.2015 um 18:49 schrieb David Kastrup: >> Using the syntax with quotes is rather ugly, I agree. But it is >> > nonetheless potentially useful for two reasons: >> > (1) it enables us to use numbers etc. in variable names > Why would that be desirable? >

Re: Strings as variable names

2015-12-28 Thread Marc Hohl
Am 28.12.2015 um 18:49 schrieb David Kastrup: David Sumbler <da...@aeolia.co.uk> writes: [...] Using the syntax with quotes is rather ugly, I agree. But it is nonetheless potentially useful for two reasons: (1) it enables us to use numbers etc. in variable names Why would that be des

Re: Strings as variable names

2015-12-28 Thread David Kastrup
u could mention them again. Perl has gobbled up every syntax from all traditional UNIX utilities anyway so that does not really count. JavaScript does not appear to do variable interpolation into string literals <URL:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String&

Re: Strings as variable names

2015-12-28 Thread David Kastrup
Simon Albrecht writes: > On 28.12.2015 20:28, Johan Vromans wrote: >> NR refers to >> http://www.lilypond.org/doc/v2.19/Documentation/learning/organizing-pieces-with-variables >> which does not mention the quoted syntax, and explicitly disallows dashes > > Ugh, that’s

Re: Strings as variable names

2015-12-28 Thread David Kastrup
Johan Vromans writes: > On Mon, 28 Dec 2015 21:39:05 +0100 (CET) > Werner LEMBERG wrote: > >> I suggest to use the m4 preprocessor >> [https://en.wikipedia.org/wiki/M4_(computer_language)] to convert, > > Yikes. Speaking of overkill... > >> say, `violin1' to

Re: Strings as variable names

2015-12-28 Thread David Kastrup
ting into quoted strings? The C preprocessor can expand #identifier into a string, and juxtaposed with other double-quoted strings they combine into a larger string I believe. But that's only for preprocessor constants, and those are not really part of the language proper. The strings in Python's

Re: Strings as variable names

2015-12-28 Thread David Kastrup
Malte Meyn <lilyp...@maltemeyn.de> writes: > Am 28.12.2015 um 19:20 schrieb David Kastrup: >> What's wrong with violinI ? > > lexicographical sorting (of file names) ≠ roman numeral sorting File names are not variable name

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 17:42:03 + David Sumbler wrote: > > > It's not really making stuff more readable. > > I think it would be useful to have it added to the NR. If it's part of the language syntax, it should be documented. If it's experimental, dangerous, or

Re: Strings as variable names

2015-12-28 Thread Malte Meyn
Am 28.12.2015 um 19:20 schrieb David Kastrup: > What's wrong with violinI ? lexicographical sorting (of file names) ≠ roman numeral sorting >> flute_phrase01 = >> flute_phrase02 = >> >> or similar. > > When would you ever want to do that? Variations (one score per variation): fluteTheme = …

Re: Strings as variable names

2015-12-28 Thread Werner LEMBERG
> Reading people's ideas about those things make them appear like > something we would be better without. They only lead to confusion. +1 Werner ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Strings as variable names

2015-12-28 Thread Thomas Morley
2015-12-28 18:49 GMT+01:00 David Kastrup : [...] > > Reading people's ideas about those things make them appear like > something we would be better without. They only lead to confusion. > > -- > David Kastrup I rarely use this possibility, but it's very nice to have numbers, etc in

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 19:01:47 +0100 Urs Liska wrote: > > part = cello > > > > \score { > > \"bella_melodia_\part" > > } > > I think something like this should be achievable using a music function > with two string arguments. Yes, but my suggestion was to have a

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 18:49:30 +0100 David Kastrup <d...@gnu.org> wrote: > > I have always been frustrated by the fact that I can't (or thought I > > couldn't) use underscores in variable names, > > Well, that is hopefully more or less documented though probably not

Re: Strings as variable names

2015-12-28 Thread Werner LEMBERG
> Whenever you have variables pointing to indexed parts or to > consecutive snippets you may want to use variables like > > violin1 = > violin2 = > > or > > flute_phrase01 = > flute_phrase02 = > > or similar. This is expressive as LilyPond code per se, and would > be accessible for scripting,

Re: Strings as variable names

2015-12-28 Thread Kieren MacMillan
in II" for their parts than otherwise. Instrument names [presentation] and variable names [content] are independent… or at least should be. Best regards, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmill

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 20:27:22 +0100 David Kastrup wrote: > The above is mainly confused. Remember that \n in a string stands for > newline. So there's already some kind of processing done. \{varname} would be an alternative. But it is just a suggestion. > But what _programming_

Re: Strings as variable names

2015-12-28 Thread Simon Albrecht
On 28.12.2015 20:28, Johan Vromans wrote: NR refers to http://www.lilypond.org/doc/v2.19/Documentation/learning/organizing-pieces-with-variables which does not mention the quoted syntax, and explicitly disallows dashes Ugh, that’s bad. Especially since it’s an important feature in interlocking

Re: Strings as variable names

2015-12-28 Thread Malte Meyn
Am 28.12.2015 um 20:30 schrieb David Kastrup: > Malte Meyn <lilyp...@maltemeyn.de> writes: > >> Am 28.12.2015 um 19:20 schrieb David Kastrup: >>> What's wrong with violinI ? >> >> lexicographical sorting (of file names) ≠ roman numeral sorting > >

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 23:52:27 +0100 David Kastrup wrote: > So, no. I stand corrected. It's a very long since ago that I stopped using m4. > It would not be my choice of tool here nevertheless. Preprocessors in general add the disadvantage of having unmaintainable sources (you

Re: Strings as variable names

2015-12-28 Thread Johan Vromans
On Mon, 28 Dec 2015 23:04:37 +0100 David Kastrup wrote: > You conveniently snipped shells so that you could mention them again. You can find a lot more on https://en.wikipedia.org/wiki/String_interpolation But does it really matter? The point is, is it something we would want

Strings as variable names

2015-12-27 Thread Menu Jacques
Hello folks, I’ve found that one can write the following: \version "2.19.33" "bella melodia" = \relative c' { r4- ef\upbow(f) r g | } \score { \"bella melodia" } but I couldn’t find such a possibility in the 2.19.31 Notation Reference, even though that may be useful. Does anyone know

Re: Strings as variable names

2015-12-27 Thread Andrew Bernard
Hi Jacques, Well, the NR states: The name of a variable must have alphabetic characters only, no numbers, underscores, or dashes. That excludes spaces explicitly. The fact that you can use a quoted string is undocumented and may therefore become unsupported at any time. In Scheme, you cannot

Re: Strings as variable names

2015-12-27 Thread Johan Vromans
On Mon, 28 Dec 2015 12:05:22 +1100 Andrew Bernard <andrew.bern...@gmail.com> wrote: > The name of a variable must have alphabetic characters only, no numbers, > underscores, or dashes. > > Most lilypond users would write bellaMelodia, conventionally. In terms of > read

Re: Overriding font size in markup variable

2015-07-14 Thread Javier Ruiz-Alma
text/html; charset=us-ascii: Unrecognized ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Overriding font size in markup variable

2015-07-14 Thread Simon Albrecht
Javier Ruiz-Alma: I have a markup variable preformatted to specific font size. I wish to use the same variable elsewhere, but override the font-size to smaller size. Can this be done? Snippet: %* \version 2.18.2 thisText = \markup { \abs-fontsize #20 My Text } \markup

Re: Overriding font size in markup variable

2015-07-14 Thread MING TSANG
a markup variable preformatted to specific font size. I wish to use the same variable elsewhere, but override the font-size to smaller size. Can this be done? Snippet:%* \version 2.18.2 ___ lilypond-user mailing list lilypond

Overriding font size in markup variable

2015-07-11 Thread Javier Ruiz-Alma
I have a markup variable preformatted to specific font size. I wish to use the same variable elsewhere, but override the font-size to smaller size.  Can this be done? Snippet:%* \version 2.18.2 thisText = \markup { \abs-fontsize #20 My Text } \markup {   \column

Re: Overriding font size in markup variable

2015-07-11 Thread Andrew Bernard
Hi Javier, No, that does not work. But if you are going to type '\override #'(font-size . 10)’ why not remove the font size specification from your variable and just preface it with '\abs-fontsize #10’ or whatever you require? Alternatively, if you require a few sizes, and don’t want to type

variable containing header

2015-05-26 Thread Gianmaria Lari
I'm trying to define a variable containing the header but lilypond does not accept it. Am'I doing some error or is this forbidden? % my source \version 2.18.2 head = \header { title = The Third Position } \score { {a b c d} \head \layout {} } Thank you, g -- View this message

Re: variable containing header

2015-05-26 Thread Nathan Ho
On Tue, May 26, 2015 at 5:23 AM, Gianmaria Lari gianmarial...@gmail.com wrote: I'm trying to define a variable containing the header but lilypond does not accept it. Am'I doing some error or is this forbidden? % my source \version 2.18.2 head = \header { title = The Third Position

Re: variable in scheme

2015-04-29 Thread Mattes
Am Mittwoch, 29. April 2015 07:21 CEST, Stephen MacNeil classicalja...@gmail.com schrieb: is this correct? What's the intent? (#'(,num)) (#'(,str)) No, commas (',') are only allowed within a backquoted form. Cheers, RalfD thanks Stephen

Re: variable in scheme

2015-04-29 Thread Stephen MacNeil
Hey thanks I didn't need it after all. What's the intent? I never use tab so my bend file definitions.ily has all the tab sections removed so it doesn't print tab- did that a long time ago. All works fine however a friend wanted to use the tab and couldn't do quarter tones. So I was going to

variable in scheme

2015-04-28 Thread Stephen MacNeil
is this correct? (#'(,num)) (#'(,str)) thanks Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: string variable for markup

2015-03-31 Thread Stephen MacNeil
Thanks for putting on the path Mark! This is my solution thus far to a sizable hairpin for accent dynamics acdy = #(define-music-function (parser location str) (number?) #{ -\markup { \pad-markup #.5 \halign #-1.2 \combine \draw-line #`(,str . 0.7) \draw-line #`(,str . -0.7) } #} )

Re: string variable for markup

2015-03-30 Thread Mark Knoop
like you want a number, not a string. Try the following. When you use the variable you have to quasiquote the pair, thus the syntax changes slightly. Note the backtick and comma. \version 2.18.2 #(define str 5) \markup \pad-markup #.5 \halign #-1.3 \combine \draw-line #`(,str . 0.5

string variable for markup

2015-03-30 Thread Stephen MacNeil
how would i get the input string to attach to a markup? eg \version 2.18.2 acdy = \markup \pad-markup #.5 \halign #-1.3 { \combine \draw-line #'($str . .5) \draw-line #'($str . -.5) } The idea is to be able to assign a length $str thanks Stephen

error when creating variable for paper block

2015-03-23 Thread Nikolai Hedler
I'm attempting to arrange a Bach organ fugue for brass quintet, and I am attempting to create a single file which outputs the score and all individual parts. I would like to create a variable which contains the contents of the \paper block for the individual parts, which is different than

Re: error when creating variable for paper block

2015-03-23 Thread Kevin Barry
Hi Nikolai, Can you post a (preferably tiny) example of the variable that produces this problem? LilyPond may not evaluate variables when they appear but it still needs to figure out where they begin and end so perhaps that is the source of the problem? It's hard to know without seeing any code

Creating Rest of length of music variable

2015-03-17 Thread Urs Liska
Hi, I'm looking for a way to create a MultiMeasureRest of exactly the same length as a music variable. I think having read about exactly this but I don't seem to be able to find anything, so I hacked a solution that actually seems to work. But somehow I feel there should really be a better

Re: Creating Rest of length of music variable

2015-03-17 Thread Jim Long
On Tue, Mar 17, 2015 at 10:21:55AM -0700, H. S. Teoh wrote: http://lilypond.org/doc/v2.18/Documentation/notation/special-rhythmic-concerns#aligning-to-c adenzas Wow, those functions are almost buried in the docs. I don't see either of them in the index, and I would never have guessed

Re: Creating Rest of length of music variable

2015-03-17 Thread Jim Long
On Tue, Mar 17, 2015 at 06:06:58PM +0100, Urs Liska wrote: Hi, I'm looking for a way to create a MultiMeasureRest of exactly the same length as a music variable. I've mentioned before that extractMusic is in my standard bag of tricks. If it were me, I'd use that. It's easier than writing

Re: Creating Rest of length of music variable

2015-03-17 Thread H. S. Teoh
On Tue, Mar 17, 2015 at 06:06:58PM +0100, Urs Liska wrote: Hi, I'm looking for a way to create a MultiMeasureRest of exactly the same length as a music variable. I think having read about exactly this but I don't seem to be able to find anything, so I hacked a solution that actually seems

Re: Encapsulating tweak and markup in a variable

2015-02-16 Thread Jacques Menu
-- View this message in context: http://lilypond.1069038.n5.nabble.com/Encapsulating-tweak-and-markup-in-a-variable-tp171826p171829.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Encapsulating tweak and markup in a variable

2015-02-13 Thread Klaus Blum
#}) {g2 \mf ^\UN_E} % Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Encapsulating-tweak-and-markup-in-a-variable-tp171826p171827.html Sent from the User mailing list archive at Nabble.com

Re: Encapsulating tweak and markup in a variable

2015-02-13 Thread Klaus Blum
} % ...just discovered Pierre's response. That's really easier! Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Encapsulating-tweak-and-markup-in-a-variable-tp171826p171829.html Sent from the User mailing list archive at Nabble.com

Re: Encapsulating tweak and markup in a variable

2015-02-13 Thread Pierre Perol-Schneider
} % Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Encapsulating-tweak-and-markup-in-a-variable-tp171826p171827.html Sent from the User mailing list archive at Nabble.com

Encapsulating tweak and markup in a variable

2015-02-13 Thread Menu Jacques
TextScript.self-alignment-X #CENTER ^\markup{\large\bold\with-color #magenta 1E} | % 2 g2 \bar || } {\Introduction} %% My attempt to define a variable UN_E to obtain the same effect: %% UN_E = { \tweak TextScript.self-alignment-X #CENTER \markup\large\bold

variable in markup possible?

2015-02-12 Thread Ole Schmidt
Hi, Is it possible to use a variable inside a markup, like def = { \center-column { \combine \draw-line #'(0 . 6) \arrow-head #Y #DOWN ##f } } {c1^\markup {def}} thanks, ole ___ lilypond-user mailing list

Re: variable in markup possible?

2015-02-12 Thread Noeck
Hi Ole, Is it possible to use a variable inside a markup Yes. With two modifications to your code: 1. The definition of def must be a markup (insert \markup before the \center-column) 2. You have to call a variable with a backslash (\def). The definitions of a variable is: var = … The usage

Re: using variable in \translate #'(10 . 30) \center-align Ignatzek

2015-02-12 Thread MarcM
. -- View this message in context: http://lilypond.1069038.n5.nabble.com/using-variable-in-translate-10-30-center-align-Ignatzek-tp171744p171807.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user

using variable in \translate #'(10 . 30) \center-align Ignatzek

2015-02-12 Thread MarcM
I am using this great snippet that allows to position markup with coordinates http://lsr.di.unimi.it/LSR/Snippet?id=628 It uses \translate #'(10 . 30) \center-align Ignatzek How can I replace the 10 by a variable? I tried different syntaxes but none worked -- View this message in context

Re: variable in markup possible?

2015-02-12 Thread Ole Schmidt
Am 12.02.2015 um 12:40 schrieb Noeck noeck.marb...@gmx.de: www.oleschmidt.de Hi Ole, Is it possible to use a variable inside a markup Yes. With two modifications to your code: 1. The definition of def must be a markup (insert \markup before the \center-column) 2. You have to call

Re: using variable in \translate #'(10 . 30) \center-align Ignatzek

2015-02-12 Thread Klaus Blum
Ignatzek #(define x-var 20) \markup \translate #(cons x-var 30) \center-align Ignatzek % -- Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/using-variable-in-translate-10-30-center-align-Ignatzek-tp171744p171751.html Sent

Suppress command (\arpeggio) in music variable

2014-12-25 Thread Joel C. Salomon
I've got a bit of music that repeats -- except there's an arpeggio that's only there the first time. I've defined a music variable thus: barsSixToEight = { \new Voice { \voiceOne d'8 cs d fs4-\arpeggio e8 | d8 cs b cs4- b8

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread Kieren MacMillan
Hi Joel, As indicated, I do not want the arpeggio in the second repetition. Is there a way to achieve what I'm trying to do? Something along the lines of \barsSixToEight \override Arpeggio.stencil = ##f \barsSixToEight \revert Arpeggio.stencil (or some similar variant) should work.

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread Ted Lemon
On Dec 25, 2014, at 10:50 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: \override Arpeggio.stencil = ##f \barsSixToEight \revert Arpeggio.stencil This will prevent it showing up in the output, but it'll still show up in the midi, won't it?

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread David Nalesnik
Hi, On Thu, Dec 25, 2014 at 10:01 AM, Ted Lemon mel...@fugue.com wrote: On Dec 25, 2014, at 10:50 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: \override Arpeggio.stencil = ##f \barsSixToEight \revert Arpeggio.stencil This will prevent it showing up in the output, but it'll

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread Joel C. Salomon
On 12/25/2014 10:50 AM, Kieren MacMillan wrote: As indicated, I do not want the arpeggio in the second repetition. Is there a way to achieve what I'm trying to do? Something along the lines of \barsSixToEight \override Arpeggio.stencil = ##f \barsSixToEight \revert Arpeggio.stencil

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread Kieren MacMillan
Hi, This will prevent it showing up in the output, but it'll still show up in the midi, won't it? Hmmm… I think it probably will. So maybe use tags instead? e.g. (warning: UNTESTED CODE!): barsSixToEight = { \new Voice { \voiceOne d'8 cs d fs4--\tag

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread Joel C. Salomon
On Thu, Dec 25, 2014 at 11:37 AM, David Nalesnik david.nales...@gmail.com wrote: This should do the trick then: \version 2.19.15 That worked; thank you. --Joel ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread David Nalesnik
On Thu, Dec 25, 2014 at 10:49 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Hi, This will prevent it showing up in the output, but it'll still show up in the midi, won't it? Hmmm… I think it probably will. So maybe use tags instead? e.g. (warning: UNTESTED CODE!):

Re: Suppress command (\arpeggio) in music variable

2014-12-25 Thread David Nalesnik
Joel. On Thu, Dec 25, 2014 at 12:06 PM, David Nalesnik david.nales...@gmail.com wrote: I can't test it with the example the OP has given, since it doesn't compile. Ah, I see the note about changing the language of the example on GitHub. --David

Re: variable variables

2014-12-12 Thread Phil Holmes
- Original Message - From: Johan Vromans jvrom...@squirrel.nl To: lilypond-user@gnu.org Sent: Friday, December 12, 2014 7:15 AM Subject: Re: variable variables On Thu, 11 Dec 2014 18:29:44 -0700 (MST) Paul Morris p...@paulwmorris.com wrote: I forgot to link to these snippets: make

Re: variable variables

2014-12-12 Thread Gerjan Piksen
} -- View this message in context: http://lilypond.1069038.n5.nabble.com/variable-variables-tp169395p169397.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman

variable variables

2014-12-11 Thread Gerjan Piksen
Hi everyone, In the piece I’m writing right now I use a lot of clusters, to notate these clusters i use a custom note head. And the code looks like this: qRecta= #(ly:make-stencil (list 'embedded-ps gsave currentpoint translate newpath 0 0.55 moveto 0.33375 0.55 lineto 0.33375 -0.55 lineto 0

Re: variable variables

2014-12-11 Thread Paul Morris
' f' g' a' b' c'8 } -- View this message in context: http://lilypond.1069038.n5.nabble.com/variable-variables-tp169395p169397.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https

Re: variable variables

2014-12-11 Thread Paul Morris
I forgot to link to these snippets: make-connected-path-stencil http://lsr.di.unimi.it/LSR/Item?id=891 another option: ly:make-stencil and path http://lsr.di.unimi.it/LSR/Item?id=623 -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/variable-variables

Re: variable variables

2014-12-11 Thread Johan Vromans
On Thu, 11 Dec 2014 18:29:44 -0700 (MST) Paul Morris p...@paulwmorris.com wrote: I forgot to link to these snippets: make-connected-path-stencil http://lsr.di.unimi.it/LSR/Item?id=891 FWIW, this snippet is missing the output of the second example (the one with the triangle and the moon).

Defining a variable for path names

2014-11-18 Thread ingbolbograr
I have two different versions of each of my lilypond files, each with a different header. At the top of each file, I have this: \include C:/songs/lilypond_header_file_1.ly %\include C:/music/lilypond_header_file_2.ly I'd like to be able to use a global variable that is set in only one place

Re: Defining a variable for path names

2014-11-18 Thread Brian Barker
a global variable that is set in only one place (maybe somewhere in C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly) to determine which header file to use. That way, at the top of each file I could write something like \include $header_file and I would know that whenever I

Re: Defining a variable for path names

2014-11-18 Thread Urs Liska
to be able to use a global variable that is set in only one place (maybe somewhere in C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly) Do *not* store such a configuration inside the LilyPond installation because it would be trashed when you uninstall or update LilyPond. Use a location

Re: Defining a variable for path names

2014-11-18 Thread ingbolbograr
That's brilliant. Thank you. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Defining-a-variable-for-path-names-tp168784p168811.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list

Re: Unbound variable: define-public-toplevel

2014-10-19 Thread David Kastrup
MarcM m...@mouries.net writes: in 2.19, I am getting an error Unbound variable: define-public-toplevel when i run the file includeIfAbsent.ly in the enhancement request [*] that seemed to work in 2.12. includeIfAbsent.ly:26:2: error: GUILE signaled an error for the expression beginning here

Unbound variable: define-public-toplevel

2014-10-18 Thread MarcM
in 2.19, I am getting an error Unbound variable: define-public-toplevel when i run the file includeIfAbsent.ly in the enhancement request [*] that seemed to work in 2.12. includeIfAbsent.ly:26:2: error: GUILE signaled an error for the expression beginning here # (if (not (defined

Re: Variable length bars

2014-06-27 Thread Phil Holmes
- Original Message - From: Patrick or Cynthia Karl pck...@mac.com To: lilypond-user@gnu.org Sent: Thursday, June 26, 2014 10:53 PM Subject: Variable length bars I'm trying to set a John Dowland piece (Come Ye Heavy States of Night) which has a single initial time signature of 4/2 2

Re: Variable length bars

2014-06-27 Thread Matthew Collett
On 27/06/2014, at 9:53 am, Patrick or Cynthia Karl pck...@mac.com wrote: I'm trying to set a John Dowland piece (Come Ye Heavy States of Night) which has a single initial time signature of 4/2 2/2 followed by measures that are either 4 half-note beats or 2 half-note beats long, in

Re: Variable length bars

2014-06-27 Thread Urs Liska
Am 26.06.2014 23:53, schrieb Patrick or Cynthia Karl: I'm trying to set a John Dowland piece (Come Ye Heavy States of Night) which has a single initial time signature of 4/2 2/2 followed by measures that are either 4 half-note beats or 2 half-note beats long, in quasi-random fashion. It's

Re: Variable length bars

2014-06-27 Thread Urs Liska
Am 27.06.2014 10:05, schrieb Urs Liska: Am 26.06.2014 23:53, schrieb Patrick or Cynthia Karl: I'm trying to set a John Dowland piece (Come Ye Heavy States of Night) which has a single initial time signature of 4/2 2/2 followed by measures that are either 4 half-note beats or 2 half-note beats

Fwd: Re: Variable length bars

2014-06-27 Thread Malte Meyn
Forgot CC … Original Message Subject: Re: Variable length bars Date: Fri, 27 Jun 2014 08:10:52 +0200 From: Malte Meyn lilyp...@maltemeyn.de To: Patrick or Cynthia Karl pck...@mac.com You don’t even need the \set Timing.measureLength, a \time command will do the same when you

Re: Variable length bars (Phil Holmes)

2014-06-27 Thread Knute Snortum
:44 AM, Andrew A. Cashner andrewacash...@gmail.com wrote: -- Forwarded message -- From: Phil Holmes m...@philholmes.net To: Patrick or Cynthia Karl pck...@mac.com, lilypond-user@gnu.org Cc: Date: Fri, 27 Jun 2014 08:45:46 +0100 Subject: Re: Variable length bars - Original

Variable length bars

2014-06-26 Thread Patrick or Cynthia Karl
I'm trying to set a John Dowland piece (Come Ye Heavy States of Night) which has a single initial time signature of 4/2 2/2 followed by measures that are either 4 half-note beats or 2 half-note beats long, in quasi-random fashion. It's clear that if I can get that time signature printed, I can

Continuing issues with variable \markup issues in footers

2014-02-19 Thread Joshua Nichols
is a first page which the copyright is not centered at the bottom of the page, though it says \fill-line. When I try other variable ways of getting this effect, I either get error codes and fatal returns, or my even footer markup does not show up. Does anyone know how to get the copyright centered

Re: Continuing issues with variable \markup issues in footers

2014-02-19 Thread Eluze
} and compiled. What I'm getting is a first page which the copyright is not centered at the bottom of the page, though it says \fill-line. When I try other variable ways of getting this effect, I either get error codes and fatal returns, or my even footer markup does not show up. Does anyone

Re: master variable (Re: ANN: Frescobaldi 2.0.12)

2013-12-29 Thread Jakub Pavlík
Thank you very much! Jakub 2013/12/28 Wilbert Berendsen wbs...@xs4all.nl op 28-12-13 13:25, Jakub Pavlík schreef: Hi, I am quite unhappy about the removal of the master document variable, which I have relied on quite heavily. For my workflows it is much more useful than sessions

master variable (Re: ANN: Frescobaldi 2.0.12)

2013-12-28 Thread Wilbert Berendsen
op 28-12-13 13:25, Jakub Pavlík schreef: Hi, I am quite unhappy about the removal of the master document variable, which I have relied on quite heavily. For my workflows it is much more useful than sessions. If this decision is final, I will either stick to 2.0.11 for the rest of my life

Re: place variable definition

2013-12-16 Thread Eluze
Tom van der Hoeven wrote The partn.lyp files contain definitions like partname = Part N music = \relative c'' { a b c d } within the book I use \partname and \music. The question is: Has a variable definition to be outside any environment, [...] for instance the \book environment

place variable definition

2013-12-11 Thread Tom van der Hoeven
c d } within the book I use \partname and \music. The question is: Has a variable definition to be outside any environment, or is it possible to define, set or override the variable music within an environment. for instance the \book environment. My ultimate goal is that with one include

Re: Using a 'global' variable with multi-bar rests

2013-11-21 Thread Jean-Charles Malahieude
Le 21/11/2013 17:50, Stig Johan Berggren disait : \version 2.12.3 global = { \time 4/4 \skip 1*3 \time 3/4 \skip 2.*2 \bar |. } flute = \relative c'' { R1*3 d2. c } Replace \new Staff \global \flute with \new Staff \compressFullBarRests \global \flute in

Re: Using a 'global' variable with multi-bar rests

2013-11-21 Thread ryanmichaelmcclure
in context: http://lilypond.1069038.n5.nabble.com/Using-a-global-variable-with-multi-bar-rests-tp154230p154232.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman

<    1   2   3   4   5   6   7   8   9   >