[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extract pitch and duration from ly:music
From: |
David Kastrup |
Subject: |
Re: Extract pitch and duration from ly:music |
Date: |
Wed, 21 Feb 2018 16:05:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Joshua Stutter <address@hidden> writes:
> I feel I should enter into the discussion here. I had a conversation
> with Paolo on lilypond IRC where he was wishing to accomplish
> something along the lines of:
>
> fun = #(define-music-function (parser location note dur) (ly:pitch?
> ly:duration?)
> #{ $note$dur #})
>
> and create notes from pitches and durations within #{ #}. I explained
> that, to the best of my knowledge, this is not possible and new notes
> must be constructed within Scheme and cannot be concatenated like
> this.
Uh, you write $note $dur (the space is important) and it can be
concatenated exactly like this.
--
David Kastrup