lilypond-user
[Top][All Lists]
Advanced

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

Simple scheme function


From: Павел Буданов
Subject: Simple scheme function
Date: Thu, 2 Apr 2020 01:04:47 +0300

Hello, I'm newbie in scheme. I want to write simple function to octavize melody, but something doesn't works...


\version "2.20.0"
octavize = #(define-music-function
    (parser location music) (ly:music?)
    #{ << #music \transpose c c' #music >> #})

music = { c' d' e' f' }

\markup "Need:"
\new Voice { << \music \transpose c c' \music >> }
\markup "Got:"
\new Voice { \octavize \music }

reply via email to

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