Variable binding breaks layout

2023-05-10 Thread juergen . gruen
Hello all, why does each of the out commented lines break the layout when active? And why does "(brace-Y..." not? %%% \version "2.24.0" #(define (align-to-brace)    (lambda (grob)      (let* ((refp (ly:grob-system grob))             (all-elts (ly:grob-array->list (ly:gro

output-filename with variable

2024-05-04 Thread cordelia
Hello everyone, Is there a simple way to have the output-filename as a variable (the title of the main header)? This one doesn’t recognise the property as a string: \paper { output-filename = \fromproperty #'header:title } Thank you all, cord

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

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 ___

Re: variable in scheme

2015-04-29 Thread Mattes
Am Mittwoch, 29. April 2015 07:21 CEST, Stephen MacNeil 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

Re: variable containing header

2015-05-26 Thread Nathan Ho
On Tue, May 26, 2015 at 5:23 AM, Gianmaria Lari 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 { > ti

custom, variable paper size?

2007-09-28 Thread Michael Rasmussen
Having just rememberd that Lilypond can output png files for web use I'm now wondering about how to trim the image automatically. If I want to create a PNG of a simple snip[1]: \relative c'' { \time 6/4 \key ees \major c2 (g4 ees'2 d4) c2. ( g4 ) g' ( f ) } Wh

variable in paper block

2009-03-27 Thread Stefan Thomas
Dear community, I would like to make a substition in the paper block, for the part title. I usually use: \paper{ oddHeaderMarkup = \markup \fill-line { "name of the part" " " \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string } evenHeaderMarkup = \markup \fi

Dashed, variable-thickness slurs

2009-04-16 Thread Carl D. Sorensen
Dear LilyPond users, I've posted a patch for approval that implements variable thickness dashed and part-dashed, part-solid slurs. I hope it will be fully implemented in 2.13.1. As a preview, here's some slurs that were output by the new code. Please let me know if these are accepta

Variable substitution in postscript?

2009-05-25 Thread Eric Knapp
.8 rectstroke" } $note #}) Usage: \sample #0.25 bf2 What I want to do is have the value of the "thickness" variable replace the "0.25" in the postscript. I've tried everything that I can think of and have also looked in some postscript documentation. Is there a way t

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 m

Re: Variable slur thickness

2016-03-10 Thread tisimst
;(format #t "th: ~a\n" th) ;(format #t "newth: ~a\n" newth) (ly:grob-set-property! grob 'thickness newth) )) } %% HTH, Abraham P.S. Some of the power users on this list filter inline images, so if you wouldn't mind making the image an attachmen

Re: Variable slur thickness

2016-03-10 Thread Sharon Rosner
> I was thinking about this just yesterday. Here's a reasonable solution: Fantastic! I refactored the code to make it easier to change the parameters: #(define (variable-slur-thickness min-l max-l min-t max-t) (lambda (grob) (let* ((cpt (ly:grob-property grob 'control-points))

Re: Variable slur thickness

2016-03-10 Thread tisimst
: > +1. Nicely refactored. - Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Variable-slur-thickness-tp188374p188379.html Sent from the User mailing list archive at Nabble.com.___ lilypond-user mailing lis

Re: Variable slur thickness

2016-03-10 Thread tisimst
Fantastic! I refactored the code to make it easier to change the >> parameters: >> > > +1. Nicely refactored. > Submitted to LSR: http://lsr.di.unimi.it/LSR/Item?id=1028 - Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Variable-slur-thicknes

Re: Variable slur thickness

2016-03-10 Thread Malte Meyn
Am 10.03.2016 um 16:56 schrieb tisimst: Submitted to LSR: http://lsr.di.unimi.it/LSR/Item?id=1028 The header of the third score isn’t correct: Thickness goes from 1.2 to 2.7, not 1.4 to 2.7. ___ lilypond-user mailing list lilypond-user@gnu.org h

Re: Variable slur thickness

2016-03-10 Thread tisimst
correct: Thickness goes from 1.2 to > 2.7, not 1.4 to 2.7. > (facepalm) Thanks. Corrected. - Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Variable-slur-thickness-tp188374p188388.html Sent from the User mailing list archive at Nabble.com._

Re: Variable slur thickness

2016-03-10 Thread Thomas Morley
t; > >> >> The header of the third score isn’t correct: Thickness goes from 1.2 to >> 2.7, not 1.4 to 2.7. > > > (facepalm) Thanks. Corrected. > > - Abraham Hi Abraham, I had a look. Pretty nice one, some nitpicks, though. How about: #(define (variable-slur-

Re: Variable slur thickness

2016-03-10 Thread Sharon Rosner
Hi Abraham, Putting this code into actual use, I found a show stopper. After a line break, the slur thickness stops being adjusted and reflects the default thickness value. Any idea? Sharon -- View this message in context: http://lilypond.1069038.n5.nabble.com/Variable-slur-thickness

Re: Variable slur thickness

2016-03-10 Thread Thomas Morley
ok in situations like below? \score { { c'1( \break d') \repeat unfold 12 { d' \noBreak } c'( \break c' d' c' d') } \layout { \override Slur.after-line-breaking = #(variable-slur-thickness 3 10 1.4 12.7) } } Cheers, Harm _

Re: Variable slur thickness

2016-03-10 Thread Sharon Rosner
> How should it look in situations like below? > > \score { > { c'1( \break d') \repeat unfold 12 { d' \noBreak } c'( \break c' d' c' d') } > \layout { > \override Slur.after-line-breaking = #(variable-slur-thickness 3 10 1.4 > 12

Re: Variable slur thickness

2016-03-11 Thread Thomas Morley
2016-03-11 1:18 GMT+01:00 Sharon Rosner : >> How should it look in situations like below? >> >> \score { >> { c'1( \break d') \repeat unfold 12 { d' \noBreak } c'( \break c' d' c' d') } >> \layout { >> \ove

Re: Variable slur thickness

2016-03-11 Thread Sharon Rosner
16, 17-19, 20-23 etc. Thanks Sharon -- View this message in context: http://lilypond.1069038.n5.nabble.com/Variable-slur-thickness-tp188374p188431.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-use

Re: Variable slur thickness

2016-03-11 Thread Thomas Morley
2016-03-11 10:01 GMT+01:00 Sharon Rosner : >> Thus again: how should it look, in cases where a broken slur has a >> (very) long and a (very) short part? >> Some average-thickness? Or something else? > > The problem is not with the broken slurs, but rather with the other slurs > beginning on the sec

Re: Variable slur thickness

2016-03-11 Thread Sharon Rosner
> This problem arose before. > One needs to set 'thickness before-line-breaking, but then you don't > have access to the control-points, as far as I remember. > I'm not sure there is any way, have to think about it. Can you explain what’s going on? As far as I could tell from debugging the callba

Re: Variable slur thickness

2016-03-11 Thread Thomas Morley
2016-03-11 10:23 GMT+01:00 Sharon Rosner : >> This problem arose before. >> One needs to set 'thickness before-line-breaking, but then you don't >> have access to the control-points, as far as I remember. >> I'm not sure there is any way, have to think about it. > > Can you explain what’s going on?

Re: Variable slur thickness

2016-03-11 Thread tisimst
;thickness property and having each grob internally calculate its own control points rather than relying on it being calculated elsewhere (also attached): \version "2.19.36" #(define (variable-slur-thickness min-l max-l min-t max-t) (lambda (grob) (let* ((cpt (ly:slur::calc-

Re: Variable slur thickness

2016-03-11 Thread Sharon Rosner
Works great! I improved it further by making it compatible with ties too: #(define (variable-slur-thickness min-l max-l min-t max-t) (lambda (grob) (let* ((cpf (if (grob::has-interface grob 'tie-interface) ly:tie::calc-control-points ly:slur::calc-contr

Re: Variable slur thickness

2016-03-11 Thread Thomas Morley
on it >> being >> calculated elsewhere (also attached): > > Works great! I improved it further by making it compatible with ties too: > > > #(define (variable-slur-thickness min-l max-l min-t max-t) (lambda (grob) > (let* ((cpf (if (grob::has-interface grob '

Re: Variable slur thickness

2016-04-01 Thread Thomas Morley
calculate its own control points rather than relying on it >>> being >>> calculated elsewhere (also attached): >> >> Works great! I improved it further by making it compatible with ties too: >> >> >> #(define (variable-slur-thickness min-l max-l m

Re: Variable slur thickness

2016-04-01 Thread tisimst
property and having each > grob > >>> internally calculate its own control points rather than relying on it > >>> being > >>> calculated elsewhere (also attached): > >> > >> Works great! I improved it further by making it compatible wit

Termination of variable definitions

2016-04-19 Thread David Sumbler
would explain the following: how does Lilypond recognize the end of a variable definition? For instance, an example from the documentation shows: violin = \new Staff { \relative { a'4 b c b } } cello = \new Staff { \relative { \clef "bass" e2 d } } What I don&

Re: chordmode using variable

2016-04-20 Thread Thomas Morley
2016-04-20 10:34 GMT+02:00 Gianmaria Lari : > To generate the dominant seventh chord of c we use > > \chordmode {c:7} > > > Does exist any way to make the same thing but starting from a variable > containing a note? > > Something like this: > > mynote = {c} >

Re: chordmode using variable

2016-04-20 Thread Gianmaria Lari
Thomas, it works fantastically well! > So why? I don't see any advantage. I'm writing a kind of library to write accordion music. Let me finish the work and then I will post it here so that others can take advantage of it (I hope so) and/or suggest a better way to do it. Thanks again! g. ___

Re: duration using variable

2016-04-27 Thread Graham King
perhaps try: \scaleDurations 2/1 { \cC } hth -- Graham > > > Now I would like to be able to increase the lenght of the musical > expression contained in the cC variable. > > > In the previous example the cC variable contains a quarter note (and a > quarter bich

Re: duration using variable

2016-04-27 Thread David Kastrup
Graham King writes: > perhaps try: > \scaleDurations 2/1 { \cC } Doesn't change the visuals. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: duration using variable

2016-04-27 Thread Thomas Morley
gt; \keepWithTag #'screenOut \music > \layout {} > } > > \score > { > \keepWithTag #'midiOut \music > \layout {} > \midi {} > } > > > In the attached capture.png you can see the two different output, the first > when using screenOut and the s

ERROR: Unbound variable: remove ??

2013-05-08 Thread Thomas Morley
yPond 2.14.2 Processing `shape-double-slurs.ly' Parsing... Interpreting music... [8] Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems...ERROR: Unbound variable: remove ?? remove is not a LilyPond-procedure, it's guile

control notelength via variable?

2011-03-19 Thread TaoCG
Hi, I need to control the length of rest and notes with a variable. something like: len = 2 r\len this doesn't work of course but is there a way to do this? I tried overriding duration-log but it only changes the visual appearance. Regards, Tao -- View this message in context:

Chord from a variable

2011-08-07 Thread Volker Paul
ngly one octave deeper. Questions: How can I get a chord from a variable? Why doesn't it work this way? Why is this result one octave deeper? Greetings, Volker ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Simple variable definition

2011-08-21 Thread David Kastrup
Vaughan McAlley writes: > I’ve spent way to long trying to work this out... the simple test file: > > %test1.ly > \version "2.14.2" > > myTranspose =\transpose c' c > staffOneName = "Soprano" > > % Version for men’s choir > %{ > myTranspose = \transpose c' g > staffOneName = "Alto" > %} > >

Re: Simple variable definition

2011-08-21 Thread David Bobroff
On 8/21/2011 7:21 AM, Vaughan McAlley wrote: I’ve spent way to long trying to work this out... the simple test file: %test1.ly \version "2.14.2" myTranspose =\transpose c' c staffOneName = "Soprano" % Version for men’s choir %{ myTranspose = \transpose c' g staffOneName = "Alto" %} ...pr

Re: function variable question

2009-12-18 Thread Alexander Kobel
Hugh Myers wrote: Given: flashNote = #(define-music-function (parser location note)(ly:music?) #{ $note s2. \pageBreak #} ) I'd like to modify it so that a fixed duration for the note can be within the function rather than in the calling sequence. [...] I've tried various versions of $note4

Re: function variable question

2009-12-18 Thread Hugh Myers
Thanks again Alexander--- thats the third time today you've bailed me out! Hope I can return same someday. --hgsm On Fri, Dec 18, 2009 at 3:49 PM, Alexander Kobel wrote: > Hugh Myers wrote: >> >> Given: >> >> flashNote = #(define-music-function (parser location note)(ly:music?) #{ >>  $note s2.

Re: function variable question

2009-12-18 Thread Alexander Kobel
Hugh Myers wrote: Thanks again Alexander--- thats the third time today you've bailed me out! Hope I can return same someday. You're welcome. If it's not me whom you can help, it's someone else. Just fair - I've been there, too, and there have benn others... :-) Cheers, Alexander

scheme variable for tempo

2010-07-27 Thread michael webster
tempo. Ideally I could set some kind of variable for the tempo and have the metric modulations alter it, so that they would perform as expected in every situation. So for example \quarterEqualsDottedEighth would increase the tempo by 4/3. any thoughts? Thanks in advance

scheme variable for tempo

2010-07-28 Thread michael webster
tempo. Ideally I could set some kind of variable for the tempo and have the metric modulations alter it, so that they would perform as expected in every situation. So for example \quarterEqualsDottedEighth would increase the tempo by 4/3. any thoughts? Thanks in advance

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 an

Re: Variable length bars

2014-06-27 Thread Phil Holmes
- Original Message - From: "Patrick or Cynthia Karl" To: 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/2" f

Re: Variable length bars

2014-06-27 Thread Matthew Collett
On 27/06/2014, at 9:53 am, Patrick or Cynthia Karl 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 quasi-random > fash

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 c

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

Re: duration using variable

2016-04-27 Thread Graham King
On Wed, 2016-04-27 at 13:02 +0200, David Kastrup wrote: > Graham King writes: > > > perhaps try: > > \scaleDurations 2/1 { \cC } > > Doesn't change the visuals. > Sorry. More haste, less speed. I meant \shiftDurations. It might require other things to be adjusted too: \time is given as an

Re: duration using variable

2016-04-27 Thread Gianmaria Lari
27;screenOut \music > > \layout {} > > } > > > > \score > > { > > \keepWithTag #'midiOut \music > > \layout {} > > \midi {} > > } > > > > > > In the attached capture.png you can see the two different output, the &g

Re: chordmode using variable

2016-04-28 Thread Gianmaria Lari
Dear Harm, some weeks ago replying to me, you used a variable name syntax that I didn't know: > mynote.7 = . I see the compiler didn't complain and having the possibility to use number in the variable name would be very practical (at least for me). But is it a "standard

Re: chordmode using variable

2016-04-28 Thread Simon Albrecht
On 28.04.2016 11:52, Gianmaria Lari wrote: Dear Harm, some weeks ago replying to me, you used a variable name syntax that I didn't know: mynote.7 = . I see the compiler didn't complain and having the possibility to use number in the variable name would be very practical (at le

Re: chordmode using variable

2016-04-28 Thread Gianmaria Lari
gt; some weeks ago replying to me, you used a variable name syntax that I >> didn't know: >> >>> mynote.7 = . >> >> I see the compiler didn't complain and having the possibility to use >> number in the variable name would be very practical (at le

Re: chordmode using variable

2016-04-28 Thread Thomas Morley
2016-04-28 14:05 GMT+02:00 Simon Albrecht : > On 28.04.2016 11:52, Gianmaria Lari wrote: >> >> Dear Harm, >> >> some weeks ago replying to me, you used a variable name syntax that I >> didn't know: >> >>> mynote.7 = . >> >> I s

numbers in variable names

2006-04-19 Thread Kieren Richard MacMillan
Hello, all -- I use a lot of variables, especially when breaking larger works across multiple pieces (and thus .ly files). I'd like to name my variables numerically, e.g., file01.ly global01 = { ... } notes01 = { ... } file02.ly global02 = { ... } not

Re: Markup in a variable

2021-04-28 Thread Aaron Hill
On 2021-04-28 10:43 pm, Mark Probert wrote: Hi, all. I'm getting myself confused. I have an include file -- foo.ily -- and I want to define different instrument names for later use, like altoSax = { \markup { \fontsize #-2 { Alto Saxophone \concat { E { \raise #0.5 \teeny \flat } tenorS

Re: Markup in a variable

2021-04-28 Thread Mark Probert
You wrote: > > You have an extra pair of braces around your \markup. Consider: > > -- Aaron Hill Doh! Many thanks. Absolutely see it now .. m.

Re: Markup in a variable

2021-04-29 Thread David Kastrup
Mark Probert writes: > You wrote: >> >> You have an extra pair of braces around your \markup. Consider: >> >> -- Aaron Hill > > Doh! Many thanks. Absolutely see it now It's an inviting fallacy to consider braces { } as just grouping, just like Scheme beginners tend to be tripped up by the eff

Transform notes in a variable?

2021-08-01 Thread Craig Comstock
Related to my other question of note names I am wondering if it is possible to maybe write a mapping function of some sort for pitches? I know there is transpose like shown here: https://lilypond.org/doc/v2.22/Documentation/web/text-input

Re: Variable equivalent in Scheme

2019-11-09 Thread Aaron Hill
On 2019-11-09 5:37 pm, Freeman Gilmore wrote: If: traLaLa = { c'4 d'4 } How would I write this in Scheme? #(define traLaLa ?) You can quote LilyPond syntax within Scheme using the #{ #} tokens: #(define traLaLa #{ { c'4 d'4 } #}) You can also define music purely in Sc

use variable out side procedure

2020-05-29 Thread Freeman Gilmore
\version "2.20.0" #(use-modules (ice-9 regex) j = #(define-void-function (x) (string>?) (define Z x) (display Z))%works \j "-3 +8 -6+1-8" But how do i get Z (or x) out side so i can use the variable? for example: #(display Z) Thank you, ƒg

Re: check undefined variable scheme

2018-05-24 Thread Urs Liska
unt)                       )    ) Is my code ok, or I should write it in a different way? Two observations: - You don't need that (begin ...) wrapper because the procedure definition already behaves as such - You shouldn't use reserved words for variable names, so I'd use 'counter'

Re: check undefined variable scheme

2018-05-24 Thread David Kastrup
;>                       (number->string count) >>                       ) >>    ) >> >> Is my code ok, or I should write it in a different way? > > Two observations: > - You don't need that (begin ...) wrapper because the procedure > definit

Re: check undefined variable scheme

2018-05-24 Thread Urs Liska
eserved words for variable names, so I'd use 'counter' instead. Is it possible to define "count" inside the function just in case it is undefined? Yes, see: \version "2.19.80" #(define (nextcount)    (if (not (defined? 'counter)) (ly:parser-define! 

Re: check undefined variable scheme

2018-05-24 Thread Andrew Bernard
Hi Gianmaria, The others have beat me to it, but I just wanted to say you should read up on closures in Scheme. This will give you are really good grasp of what's going on. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.o

Re: check undefined variable scheme

2018-05-24 Thread Gianmaria Lari
Thank you David, Urs and Andrew for the code, the link to the documentation and the study suggestion! On Thu, 24 May 2018 at 11:00, Andrew Bernard wrote: > Hi Gianmaria, > > The others have beat me to it, but I just wanted to say you should read up > on closures in Scheme. This will give you are

Understanding symbol-list? variable names

2018-06-08 Thread Urs Liska
I can store variables with symbol-list? names like so: \version "2.19.80" my.note.one = { c'4 } my.note.two = { d'2 } {   \my.note.one   \my.note.two   \my.note.one } It is also possible to store functions in such variables: my.function = #(define-music-func

Re: variable of type finger

2018-06-25 Thread David Kastrup
Gianmaria Lari writes: > This code define a variable containing a duration and the use it: > > \version "2.19.81" > #(define myDuration (ly:make-duration 4 0)) > { a\myDuration} > > > I can do something similar wit fingering: > > \version "2.1

Re: variable of type finger

2018-06-25 Thread Gianmaria Lari
On Mon, 25 Jun 2018 at 15:49, David Kastrup wrote: > Gianmaria Lari writes: > > > This code define a variable containing a duration and the use it: > > > > \version "2.19.81" > > #(define myDuration (ly:make-duration 4 0)) > > { a\myDuration} > &

Re: variable of type finger

2018-06-25 Thread David Kastrup
Gianmaria Lari writes: > On Mon, 25 Jun 2018 at 15:49, David Kastrup wrote: > >> Gianmaria Lari writes: >> >> > This code define a variable containing a duration and the use it: >> > >> > \version "2.19.81" >> > #(define myDurati

Re: variable of type finger

2018-06-25 Thread Gianmaria Lari
On Mon, 25 Jun 2018 at 22:44, David Kastrup wrote: > Gianmaria Lari writes: > > > On Mon, 25 Jun 2018 at 15:49, David Kastrup wrote: > > > >> Gianmaria Lari writes: > >> > >> > This code define a variable containing a duration and the use it:

scheme variable name in lilypond

2018-06-25 Thread Gianmaria Lari
Is there any way to refer a scheme variable containing numbers in the name, in lilypond? For example, if I write: #(define duration32 (ly:make-duration (ly:intlog2 32))) duration32 is a valid scheme variable name. But this is not a valid lilypond variable name. Is there any way to access it

Re: variable of type finger

2018-06-25 Thread David Kastrup
Gianmaria Lari writes: > On Mon, 25 Jun 2018 at 22:44, David Kastrup wrote: >> >> #(display #{ \finger "3" #}) >> >> compiles just fine even if its output is not particularly legible. >> > > The problem was " wherever you can put Scheme expressions" I tried > to use it where lilypond expects

Global Variable vs Edition Engraver

2018-07-08 Thread Craig Dabelstein
Hi all, As I get more confident with using the Edition Engraver I was wondering if you had some advice on when to use a global variable and when to use the EE, especially with scores that use transposing instruments. ATM I put all my concert key signatures, barlines, repeats etc in a global

Use a variable Scheme module

2018-10-29 Thread Urs Liska
ctory. Alternatively is there a way to load all submodules of a given module? https://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Using-Guile-Modules.html#Using-Guile-Modules doesn't seem to indicate any help, but I can't imagine there's no way to load variable modul

put footnote in a variable

2018-11-01 Thread Gianmaria Lari
\layout { indent = 0\cm ragged-last = ##t} } } e2 f4 c c c } Is there any way to put all the code related to the footnote in a variable? For example if possible I would like to write something like this: \version "2.19.81" \fixed c' { \time 3/4 c c c \myfoot

Use String to reference Variable

2018-12-03 Thread Pedro Pessoa
Hello! I want a function that takes a string as arg an from that produces a valid variable reference, as follows: %%% pseudo Nabc={a1 d e f} Nxyz={b1 e a d} fun= #(define-music-function (x)(string?) #{ << #(concat x "abc") \\ #(concat x "xyz&q

lilypond 2.21 & scheme unbound variable

2019-04-01 Thread Gianmaria Lari
The error I get is the following: error: GUILE signaled an error for the expression beginning here # (define-event-function (arg) (number-or-markup?) Unbound variable: number-or-markup? Unbound variable: number-or-markup? How can I fix it?

staff-space as a variable

2019-05-17 Thread Edward Neeman
Hello, How can I modify my tweaks to take into account a smaller staff-space? In the example below, I’d like to set the padding to 1.1 * the staff-space, instead of explicitly writing 0.7. Previously I was using \magnifyStaff but that caused issues with the final bar line. Thanks, Edward \ve

Putting tweaks in a variable

2017-04-06 Thread Knute Snortum
I seem to remember that there is now a way to put several tweaks into a variable. So instead of writing this: c4 -\tweak something -\tweak something-else c8 I could write something like this: masterTweak = { \magic -\tweak something -\tweak something-else } ... c4 -\masterTweak

Including tweaks in a variable

2018-03-01 Thread Michael Stickles
notes to be smaller, resulting in code like this: 1 What I want to do is replace the "tweak" section with a variable, like this: smNote = \tweak font-size #-2 1 But this results in errors: error: unknown escaped string: `\smNote'

Re: error: Unbound variable: \version

2022-09-20 Thread Jean Abou Samra
current/scm/lily.scm:462:5 <0>: In procedure primitive-load-path in expression (primitive-load-path file-name): C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>: Unbound variable: \version Exited with return code 1. QUESTION: I have version in my computer. I

Re: error: Unbound variable: \version

2022-09-20 Thread ming tsang
> Starting lilypond-windows.exe 2.18.2 [Untitled (9)]... > > > > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <0>: > > In procedure primitive-load-path in expression (primitive-load-path > > file-name): > > > > C:/LilyPond_2-18-2/u

Re: error: Unbound variable: \version

2022-09-20 Thread Andrew Bernard
I am curious as to why you are still using 2.18.2. Is it really necessary for you? Why? Stable release is now 22.22.2. That's a _long_ way further on. I'm not sure people want to spend time helping debug 2.18.2 issues. Just asking. Andrew

Re: error: Unbound variable: \version

2022-09-20 Thread Jean Abou Samra
Le 20/09/2022 à 11:49, ming tsang a écrit : Hi Jean, The following code is in v2.23.11 and it run OK. \version "2.23.11" \markup "test" And the log file is : Starting lilypond.exe 2.23.11 [Untitled (11)]... Processing `C:/Users/YMINGT~1/AppData/Local/Temp/frescobaldi-7krgt6o3/tmprbzc8juy/docum

Re: error: Unbound variable: \version

2022-09-20 Thread David Wright
cm:462:5 <0>: > > > In procedure primitive-load-path in expression (primitive-load-path > > > file-name): > > > > > > C:/LilyPond_2-18-2/usr/share/lilypond/current/scm/lily.scm:462:5 <1>: > > > Unbound variable: \version > > > > > > Exi

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
f8 f8 However, lilypond reports error as follows: GNU LilyPond 2.24.0 (running Guile 2.2) Processing `main.ly' Parsing... accompanimentfunc.ly:19:6: error: Guile signaled an error for the expression beginning here $ x8 $x8 $x8 $x8 $x8 Unbound var

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
here $   x8 $x8 $x8 $x8 $x8 Unbound variable: x8 accompanimentfunc.ly:19:10: error: Guile signaled an error for the expression beginning here $x8 $   x8 $x8 $x8 $x8 Unbound variable: x8 accompanimentfunc.ly:19:14: error: Guile signaled an error fo

Re: substitution function variable name

2023-01-22 Thread Darren Ng
ed output is: > >> > >> f8 f8 f8 f8 f8 > >> > >> However, lilypond reports error as follows: > >> > >> GNU LilyPond 2.24.0 (running Guile 2.2) > >> Processing `main.ly' > >> Parsing... >

Re: substitution function variable name

2023-01-22 Thread Jean Abou Samra
Le 22/01/2023 à 18:22, Darren Ng a écrit : Thanks. The following works: accOne = #(define-music-function (x) (ly:pitch?) #{ $x 8 $x 8 #}) My ultimate goal is a function which does the following accTwo = #(define-music-function (x

Re: substitution function variable name

2023-01-28 Thread Jean Abou Samra
On 22/01/2023 18:31, Jean Abou Samra wrote: > Le 22/01/2023 à 18:22, Darren Ng a écrit : >> Thanks. The following works: >> >>    accOne = >>    #(define-music-function >>    (x    ) >>    (ly:pitch?) >> #{ >>    $x 8 $x 8 >> #}) >> >> My ultimate goal is a function which

Re: Variable binding breaks layout

2023-05-11 Thread Jean Abou Samra
Le jeudi 11 mai 2023 à 06:26 +, juergen.gr...@xyz.de a écrit : > Hello all, > > > why does each of the out commented lines break the layout when active? And > why does "(brace-Y..." not? What breaks the layout is not the variable bindings per se of course, but th

changing clefs in transposed variable

2023-08-22 Thread juiceDéLemon
hello list, new here, i have the following simplified snippets: music = \relative c' { c8 d e g, a b c4 } \score \relative c' { \transpose c f, \music } is it possible to change clef in the middle of the transposed music lem

Re: output-filename with variable

2024-05-04 Thread Valentin Petzel
er you define your header! Cheers, Valentin Am Samstag, 4. Mai 2024, 10:58:28 MESZ schrieb corde...@disroot.org: > Hello everyone, > > Is there a simple way to have the output-filename as a variable (the title > of the main header)? > > This one doesn’t recognise the property as

book with paper in variable

2024-09-04 Thread Walt North
I have a case where I need to create separate output files using the \book block.  I would like to reuse the \paper block in each of the blocks. I have found the \paper block can be put in a variable and the variable reuses successfully. However for some if I use the variable then the book

<    1   2   3   4   5   6   7   8   9   >