[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extract pitch and duration from ly:music
From: |
Malte Meyn |
Subject: |
Re: Extract pitch and duration from ly:music |
Date: |
Wed, 21 Feb 2018 15:44:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Am 21.02.2018 um 15:40 schrieb Joshua Stutter:
[…]
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.
That’s not true, you simply need a space between $note and $dur:
\version "2.19.81"
fun = #(define-music-function (parser location note dur) (ly:pitch?
ly:duration?)
#{ $note $dur #})
\fun c' 4