lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad-Schemer syndrome


From: David Kastrup
Subject: Re: Bad-Schemer syndrome
Date: Thu, 03 Nov 2016 21:04:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> PMA <address@hidden> 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 3    g 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 <pitch-name> 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.

Pffff.  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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]