[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bad-Schemer syndrome
From: |
PMA |
Subject: |
Bad-Schemer syndrome |
Date: |
Thu, 3 Nov 2016 15:41:25 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 |
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
#})
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
- Bad-Schemer syndrome,
PMA <=