Re: Bad-Schemer syndrome

2016-12-02 Thread PMA

Oops.  Ignore the Subject line here, and the whole
lower message.  I forgot to erase them.  Mea culpa!

On 12/02/2016 05:39 PM, PMA wrote:

Hi All!

I notice that the spacer command (e.g., "s4"), though
always accounting rightly for the TIME it commandeers
(here a quarter-note's worth), does not always insert
ACTUAL HORIZONTAL SPACE in the score.

How can I ensure that it'll do that too?  (I.e., what
score-setup spec would have disabled it?)

Thanks,
Pete


On 11/03/2016 03:41 PM, PMA wrote:

Hi LP Gurus!

I have a score (see "Original" below) full of note events
like "gs 3", whose duration is MEANT always to be realized
as *one triplet half-note*.

Original = { gs 3  a 3g 2   a 3 }
Replaced = { \TR gs\TR a  g 2   \TR a }

So, I'm trying to concoct a function that, for any event
of original duration '3', will input the pitch name only
(reading from "Replaced") and embed that string in the
command "\tuplet 3/2  2".

TR =
#(define-music-function (parser location offset) (?)
   #{
  \tuplet 3/2 offset 2
   #})

But I'm stymied trying to whittle its Scheme, especially
re two questions: what variable type will work for the
the define-line ending "(?)" - "string" doesn't; and
what extra syntax might the "\tuplet..." command need to
handle the "offset" in its innards?

Hope this is clear.
Thanks in advance.
Pete



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bad-Schemer syndrome

2016-12-02 Thread PMA

Hi All!

I notice that the spacer command (e.g., "s4"), though
always accounting rightly for the TIME it commandeers
(here a quarter-note's worth), does not always insert
ACTUAL HORIZONTAL SPACE in the score.

How can I ensure that it'll do that too?  (I.e., what
score-setup spec would have disabled it?)

Thanks,
Pete


On 11/03/2016 03:41 PM, PMA wrote:

Hi LP Gurus!

I have a score (see "Original" below) full of note events
like "gs 3", whose duration is MEANT always to be realized
as *one triplet half-note*.

Original = { gs 3  a 3g 2   a 3 }
Replaced = { \TR gs\TR a  g 2   \TR a }

So, I'm trying to concoct a function that, for any event
of original duration '3', will input the pitch name only
(reading from "Replaced") and embed that string in the
command "\tuplet 3/2  2".

TR =
#(define-music-function (parser location offset) (?)
   #{
  \tuplet 3/2 offset 2
   #})

But I'm stymied trying to whittle its Scheme, especially
re two questions: what variable type will work for the
the define-line ending "(?)" - "string" doesn't; and
what extra syntax might the "\tuplet..." command need to
handle the "offset" in its innards?

Hope this is clear.
Thanks in advance.
Pete



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bad-Schemer syndrome

2016-11-03 Thread David Kastrup
David Kastrup  writes:

> PMA  writes:
>
>> Hi LP Gurus!
>>
>> I have a score (see "Original" below) full of note events
>> like "gs 3", whose duration is MEANT always to be realized
>> as *one triplet half-note*.
>>
>> Original = { gs 3  a 3g 2   a 3 }
>> Replaced = { \TR gs\TR a  g 2   \TR a }
>>
>> So, I'm trying to concoct a function that, for any event
>> of original duration '3', will input the pitch name only
>> (reading from "Replaced") and embed that string in the
>> command "\tuplet 3/2  2".
>>
>> TR =
>> #(define-music-function (parser location offset) (?)
>>   #{
>>  \tuplet 3/2 offset 2
>>   #})
>
> ? is ly:duration?  and you need to write $offset instead of offset.

P.  Of course ? is ly:pitch? rather.  What have I been thinking.

> Problem is that you usually want a _group_ of triplets, and this will
> only deliver a single one.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bad-Schemer syndrome

2016-11-03 Thread David Kastrup
PMA  writes:

> Hi LP Gurus!
>
> I have a score (see "Original" below) full of note events
> like "gs 3", whose duration is MEANT always to be realized
> as *one triplet half-note*.
>
> Original = { gs 3  a 3g 2   a 3 }
> Replaced = { \TR gs\TR a  g 2   \TR a }
>
> So, I'm trying to concoct a function that, for any event
> of original duration '3', will input the pitch name only
> (reading from "Replaced") and embed that string in the
> command "\tuplet 3/2  2".
>
> TR =
> #(define-music-function (parser location offset) (?)
>   #{
>  \tuplet 3/2 offset 2
>   #})

? is ly:duration?  and you need to write $offset instead of offset.

Problem is that you usually want a _group_ of triplets, and this will
only deliver a single one.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Bad-Schemer syndrome

2016-11-03 Thread PMA

Hi LP Gurus!

I have a score (see "Original" below) full of note events
like "gs 3", whose duration is MEANT always to be realized
as *one triplet half-note*.

Original = { gs 3  a 3g 2   a 3 }
Replaced = { \TR gs\TR a  g 2   \TR a }

So, I'm trying to concoct a function that, for any event
of original duration '3', will input the pitch name only
(reading from "Replaced") and embed that string in the
command "\tuplet 3/2  2".

TR =
#(define-music-function (parser location offset) (?)
  #{
 \tuplet 3/2 offset 2
  #})

But I'm stymied trying to whittle its Scheme, especially
re two questions: what variable type will work for the
the define-line ending "(?)" - "string" doesn't; and
what extra syntax might the "\tuplet..." command need to
handle the "offset" in its innards?

Hope this is clear.
Thanks in advance.
Pete


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user