Re: Pitch value of previous note

2021-04-30 Thread David Sumbler
On Fri, 2021-04-30 at 16:41 +0200, David Kastrup wrote: > David Sumbler writes: > > On Fri, 2021-04-30 at 04:17 -0700, Aaron Hill wrote: > > > A duration without pitch is encoded as a NoteEvent with the > > > pitchproperty. expand-repeat-notes! is the internal procedure > > > thatcarries over

Re: Pitch value of previous note

2021-04-30 Thread David Kastrup
David Sumbler writes: > On Fri, 2021-04-30 at 04:17 -0700, Aaron Hill wrote: > >> A duration without pitch is encoded as a NoteEvent with the pitch >> property. expand-repeat-notes! is the internal procedure that >> carries over the most recent pitch. So long as you insert these >> events

Re: Pitch value of previous note

2021-04-30 Thread David Sumbler
On Fri, 2021-04-30 at 04:17 -0700, Aaron Hill wrote: > On 2021-04-30 3:39 am, David Sumbler wrote: > > I want to be able to insert a note of the same pitch as the preceding > > one. I don't mind what form the pitch information is in, so long as I > > can use it to create a new note. It could,

Re: Pitch value of previous note

2021-04-30 Thread David Kastrup
Mark Knoop writes: > At 12:15 on 30 Apr 2021, David Kastrup wrote: >> David Sumbler writes: >>> How can I access the pitch value of this most recent note for use in a >>> Scheme function after some rests? >> >> Other value-propating mechanisms exist for default durations (attached >> by the

Re: Pitch value of previous note

2021-04-30 Thread Mark Knoop
At 12:15 on 30 Apr 2021, David Kastrup wrote: David Sumbler writes: How can I access the pitch value of this most recent note for use in a Scheme function after some rests? Other value-propating mechanisms exist for default durations (attached by the parser upon reading expressions),

Re: Pitch value of previous note

2021-04-30 Thread Aaron Hill
On 2021-04-30 4:17 am, Aaron Hill wrote: On 2021-04-30 3:39 am, David Sumbler wrote: I want to be able to insert a note of the same pitch as the preceding one. I don't mind what form the pitch information is in, so long as I can use it to create a new note. It could, for example, be in the

Re: Pitch value of previous note

2021-04-30 Thread Aaron Hill
On 2021-04-30 3:39 am, David Sumbler wrote: I want to be able to insert a note of the same pitch as the preceding one. I don't mind what form the pitch information is in, so long as I can use it to create a new note. It could, for example, be in the form "b,,", or something similar to "(-2,

Re: Pitch value of previous note

2021-04-30 Thread David Kastrup
David Sumbler writes: > On Fri, 2021-04-30 at 12:15 +0200, David Kastrup wrote: >> David Sumbler writes: >> > In a \relative{ } passage, in order for Lilypond to work out >> > theabsolute pitch of a note, it must have a record of the absolute >> > pitchof the previous note, even if there have

Re: Pitch value of previous note

2021-04-30 Thread David Sumbler
On Fri, 2021-04-30 at 12:15 +0200, David Kastrup wrote: > David Sumbler writes: > > In a \relative{ } passage, in order for Lilypond to work out > > theabsolute pitch of a note, it must have a record of the absolute > > pitchof the previous note, even if there have been some intervening > >

Re: Pitch value of previous note

2021-04-30 Thread David Kastrup
David Sumbler writes: > In a \relative{ } passage, in order for Lilypond to work out the > absolute pitch of a note, it must have a record of the absolute pitch > of the previous note, even if there have been some intervening rests. > It seems probable that it has this information in all cases,

Pitch value of previous note

2021-04-30 Thread David Sumbler
In a \relative{ } passage, in order for Lilypond to work out the absolute pitch of a note, it must have a record of the absolute pitch of the previous note, even if there have been some intervening rests. It seems probable that it has this information in all cases, whether relative pitch notation