David Kastrup writes:
> Thomas Morley writes:
>
>> Otoh, we can store things like \paper, \layout, \midi, \with and as
>> off issue 4908 even \header in variables.
>> But when called, the variable needs to be wrapped in a proper manner,
>> sometimes not. Example:
>>
>> ppr = \paper { ragged-righ
Thomas Morley writes:
> Well, not really. As said before, my feelings were ambivalent.
>
> After reconsidering:
>
> It's more a possibility I sometimes use. Mostly because of lazyness in typing.
>
> Writing
> \new Staff \with \some-function-returning-a-context-modification ...
> instead of
> \new
2016-07-01 11:50 GMT+02:00 David Kastrup :
> David Kastrup writes:
>
>> Thomas Morley writes:
>>
>>> 2016-07-01 7:05 GMT+02:00 David Kastrup :
Thomas Morley writes:
>>>
> %% works:
> tstII =
> \with { instrumentName = "foo" shortInstrumentName = "foo" }
> \new Staff \tstII {
David Kastrup writes:
> Thomas Morley writes:
>
>> 2016-07-01 7:05 GMT+02:00 David Kastrup :
>>> Thomas Morley writes:
>>
%% works:
tstII =
\with { instrumentName = "foo" shortInstrumentName = "foo" }
\new Staff \tstII { r1 }
>>>
>>> Issue 4911 is supposed to harmonize this
Thomas Morley writes:
> 2016-07-01 7:05 GMT+02:00 David Kastrup :
>> Thomas Morley writes:
>
>>> %% works:
>>> tstII =
>>> \with { instrumentName = "foo" shortInstrumentName = "foo" }
>>> \new Staff \tstII { r1 }
>>
>> Issue 4911 is supposed to harmonize this by stopping the second example
>> fr
2016-07-01 7:05 GMT+02:00 David Kastrup :
> Thomas Morley writes:
>> %% works:
>> tstII =
>> \with { instrumentName = "foo" shortInstrumentName = "foo" }
>> \new Staff \tstII { r1 }
>
> Issue 4911 is supposed to harmonize this by stopping the second example
> from working. This makes it possible
Thomas Morley writes:
> 2016-07-01 0:05 GMT+02:00 Br. Gabriel-Marie | SSPX :
>> Thanks, Mr. Meyn,
>>
>> That certainly does the trick.
>>
>> So you can't write macros for \with{} statements?
>> Why couldn't I do it this way, if I just want to create the \with statement?
>
> Obviously a call of a
2016-07-01 0:05 GMT+02:00 Br. Gabriel-Marie | SSPX :
> Thanks, Mr. Meyn,
>
> That certainly does the trick.
>
> So you can't write macros for \with{} statements?
> Why couldn't I do it this way, if I just want to create the \with statement?
Obviously a call of a scheme-function is not allowed inst
"Br. Gabriel-Marie | SSPX" writes:
> In my music script I want to use this:
>
> \new Lyrics \with { instrumentName = "1." shortInstrumentName = "1." }
>
> However, I would like to make a function out of it. I'm looking at
> this page:
> http://lilypond.org/doc/v2.18/Documentation/learning/saving
Thanks, Mr. Meyn,
That certainly does the trick.
So you can't write macros for \with{} statements?
Why couldn't I do it this way, if I just want to create the
\with statement?
Where can I find the docs to explain how the macro works?
(I've looked all over)
verseNumber = #(define-music-func
I've also tried this, but I get a compiler error for "wrong
number of arguments", which makes me wonder if I can replace
whatnumber more than once.
verseNumber = #(define-music-function(whatnumber)(string?)#{
\with { instrumentName = whatnumber shortInstrumentName
= whatnumber }
#})
On
No, I *want* to use instrument names, not stanza numbers.
But my question isn't about that.
I am trying to figure out how to write a function where I
can supply the value for a variable inside it.
myfunction(somevar){
;do stuff
}
If were programming in a coding language, I would do this:
a
Am 30.06.2016 um 22:59 schrieb Jeffery Shivers:
Hi Gabriel-Marie,
Could you describe in context what you are trying to achieve? Are you
meaning to apply *stanza* number, rather than instrument names? Have a look
at:
No he doesn’t, he wants stanzas at the beginning of every line, see the
thr
Am 30.06.2016 um 22:37 schrieb Br. Gabriel-Marie | SSPX:
\new Lyrics \verseNumber #1
This would have to be \new Lyrics \with { \verseNumber 1 } or, easier to
type, \lyricsWithVerseNumber 1 like in the code below:
\version "2.18.2"
lyricsWithVerseNumber =
#(define-music-function
(p
Hi Gabriel-Marie,
Could you describe in context what you are trying to achieve? Are you
meaning to apply *stanza* number, rather than instrument names? Have a look
at:
http://lilypond.org/doc/v2.19/Documentation/notation/stanzas
HTH,
Jeffery
On Thu, Jun 30, 2016 at 4:37 PM, Br. Gabriel-Marie |
In my music script I want to use this:
\new Lyrics \with { instrumentName = "1."
shortInstrumentName = "1." }
However, I would like to make a function out of it. I'm
looking at this page:
http://lilypond.org/doc/v2.18/Documentation/learning/saving-typing-with-variables-and-functions
and th
16 matches
Mail list logo