transposeGlobal kann ganzen Song transponieren
This commit is contained in:
13
transposition.ly
Normal file
13
transposition.ly
Normal file
@ -0,0 +1,13 @@
|
||||
TRANSPOSITION = ##f
|
||||
|
||||
transposeGlobal =
|
||||
#(define-void-function (from to) (ly:pitch? ly:pitch?)
|
||||
(set! TRANSPOSITION (cons from to)))
|
||||
|
||||
transposable =
|
||||
#(define-music-function (music) (ly:music?)
|
||||
(if TRANSPOSITION
|
||||
#{
|
||||
\transpose #(car TRANSPOSITION) #(cdr TRANSPOSITION) #music
|
||||
#}
|
||||
music))
|
Reference in New Issue
Block a user