Re: Re: Macro with pitches as parameters

2019-11-14 Thread Mats Bengtsson
On 2019-11-14 12:46, Aaron Hill wrote: On 2019-11-14 1:02 am, David Menéndez Hurtado wrote: >> I am transcribing a piece that is filled with the rhythmic motif "8. 16 8" at different pitches. Being a LaTeX user, I want to write a macro like \myrithm{c a g}. I found the documentation for Schem

Re: Macro with

2019-11-14 Thread David Kastrup
David Menéndez Hurtado writes: > On Thu, 14 Nov 2019 at 12:47, Aaron Hill wrote: > >> Secondly, there's a quirk in variable substitution syntax. You need to >> use the $var form, so the parser will see the ly:pitch? and ly:duration? >> tokens as indicating a single note. >> > > Ah, right. I und

Applying a rhythmic pattern (was Re: Macro with)

2019-11-14 Thread Aaron Hill
I was inspired by David's post, as I have also encountered patterns in durations that I wish were less redundant to input. The snippet Malte linked to is rather complex, although I suspect it is significantly more air-tight at handling edge cases. Here is a simpler (i.e. "one-pager") music fu

Re: Macro with

2019-11-14 Thread Urs Liska
Am 14.11.19 um 10:26 schrieb David Menéndez Hurtado: On Thu, 14 Nov 2019 at 10:05, Malte Meyn > wrote: Am 14.11.19 um 10:02 schrieb David Menéndez Hurtado: > I am transcribing a piece that is filled with the rhythmic motif "8. 16 > 8" at differen

Re: Macro with

2019-11-14 Thread David Menéndez Hurtado
On Thu, 14 Nov 2019 at 12:47, Aaron Hill wrote: > Secondly, there's a quirk in variable substitution syntax. You need to > use the $var form, so the parser will see the ly:pitch? and ly:duration? > tokens as indicating a single note. > Ah, right. I understand now the manual means with "normal L

Re: Macro with

2019-11-14 Thread Aaron Hill
On 2019-11-14 1:02 am, David Menéndez Hurtado wrote: This is what I managed to put together, but doesn't quite work. Anyone can suggest how to fix it? \version "2.19.83" \language "english" myrithm = #(define-music-function (parser location first second third) (first second third) (ly:pit

Re: Macro with

2019-11-14 Thread David Menéndez Hurtado
On Thu, 14 Nov 2019 at 10:05, Malte Meyn wrote: > Am 14.11.19 um 10:02 schrieb David Menéndez Hurtado: > > I am transcribing a piece that is filled with the rhythmic motif "8. 16 > > 8" at different pitches. Being a LaTeX user, I want to write a macro > > like \myrithm{c a g}. > > Maybe http://ls

Re: Macro with

2019-11-14 Thread Malte Meyn
Am 14.11.19 um 10:02 schrieb David Menéndez Hurtado: I am transcribing a piece that is filled with the rhythmic motif "8. 16 8" at different pitches. Being a LaTeX user, I want to write a macro like \myrithm{c a g}. Maybe http://lsr.di.unimi.it/LSR/Item?id=465 or http://lsr.di.unimi.it/LSR

Macro with

2019-11-14 Thread David Menéndez Hurtado
I am transcribing a piece that is filled with the rhythmic motif "8. 16 8" at different pitches. Being a LaTeX user, I want to write a macro like \myrithm{c a g}. I found the documentation for Scheme functions, and how to edit whole music sections, but nothing on how to insert a fixed number of pit

sustainOff/On macro with pedal brackets

2011-07-20 Thread Dieter Grollmann
Hello all, (first tiny steps in LilyPond-Scheme ...) I want to have the piano pedal change \sustainOff\sustainOn in one command. This doesn't work: PED = \sustainOff\sustainOn The following only works properly with "pedalSustainStyle = #'text", brackets are not connected (found in http://lists