Music expressions inside scheme list

2024-10-20 Thread Alec Bartsch
Hello lilypond experts, In an effort to avoid awkward variable names like these: one = \relative c { c4 bf a c | bf af g bf | a g fs a | af gf f af | g } two = \relative c { c4 bf a g | f af g bf | a g fs e | gf f gf af | g } ...etc... I'm putting my music expressions into a list and extract

Re: Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
Thanks for the tip, Valentin, great to know about this. On Sat, May 4, 2024 at 3:22 AM Valentin Petzel wrote: > Hello Alec, > > note that since 2.24 we have a neat markup function > \with-string-transformer, > which is called whenever a string is found, and does a lot of the logic > for > you (s

Re: Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
A-ha! That makes sense and works great, thanks David. On Sat, May 4, 2024 at 1:54 AM David Kastrup wrote: > Alec Bartsch writes: > > > I'm attempting to write a markup command that, in addition to other > > formatting, strips a trailing # or b character off the end of th

Trouble with concat in a markup command

2024-05-04 Thread Alec Bartsch
I'm attempting to write a markup command that, in addition to other formatting, strips a trailing # or b character off the end of the text argument and replaces it with the appropriate accidental markup. I think I'm super-close but stuck on the proper syntax for passing a markup list to the concat.

Re: Help with Chordname

2013-09-27 Thread Alec Bartsch
On Sep 27, 2013, at 5:23 PM, Steve Noland wrote: > I am trying to typeset a score for jazz orchestra. I am having problems with > some of the jazz chordnames engraving correctly. Specifically, a Dm7(b5) > chord (D minor 7, flat 5) engraves as a Dº, or D diminished. What can be the > problem

Re: Re[surrecting]: Version Control and Public Repository

2013-09-27 Thread Alec Bartsch
On Sep 27, 2013, at 3:50 AM, Phil Holmes wrote: > If you have scoreA.ly and this includes my-tweak.ily and you create a commit > in the git repo for this music, no matter how often you then alter my-tweak, > you could always return to the commit for this music, and my-tweak will > always be a

Re: Bracket with text label

2013-09-19 Thread Alec Bartsch
On Sep 19, 2013, at 12:35 PM, David Kastrup wrote: > 4 is a number. You want (ly:make-duration 2 0) instead. OK, great, this version is going in my jazz \include and will tighten up my code considerably: triplet = #(define-music-function (parser location tuplet-span music)

Re: Bracket with text label

2013-09-19 Thread Alec Bartsch
On Sep 19, 2013, at 11:03 AM, Urs Liska wrote: > even= > #(define-music-function (parser location music)(ly:music?) > #{ > \once \override TupletNumber #'text = "even" > \times 4/4 { $music } > #}) > > \even { a8 g16 f } > > Maybe it works ;-) Thanks for the suggestion. That works g

Re: Bracket with text label

2013-09-19 Thread Alec Bartsch
On Sep 19, 2013, at 12:18 PM, SoundsFromSound wrote: > The include of english.ly allows you to use English names for sharps and > flats, however you now can use *\language "english" *instead of the include. Nice! Thanks. Alec ___ lilypond-user mail

Re: Bracket with text label

2013-09-19 Thread Alec Bartsch
On Sep 19, 2013, at 10:02 AM, Urs Liska wrote: > I'm not sure if that's the best approach, but you could use a pseudo tuplet > and override the text of the "tuplet number": > > \once \override TupletNumber #'text = "even" > \times 4/4 { a8 g16 f } > > Depending on your LilyPond version you can

Bracket with text label

2013-09-19 Thread Alec Bartsch
Hi LilyPond users,In my first post to this list, I'm looking for suggestions on how to engrave the brackets seen in the attached image, labeled "even". (Hopefully it's OK to attach small images?) This is an indication in a jazz chart (where eighth notes are normally interpreted as "swung eighths) t