Compare commits
1 Commits
bb940b2a3b
...
03bb7562ee
| Author | SHA1 | Date | |
|---|---|---|---|
| 03bb7562ee |
@@ -2,7 +2,12 @@ TRANSPOSITION = #(cons #f #f)
|
|||||||
|
|
||||||
transposeGlobal =
|
transposeGlobal =
|
||||||
#(define-void-function (from to) (ly:pitch? ly:pitch?)
|
#(define-void-function (from to) (ly:pitch? ly:pitch?)
|
||||||
(set! TRANSPOSITION (cons from to)))
|
(if (not (car TRANSPOSITION))
|
||||||
|
(set! TRANSPOSITION (cons from to))
|
||||||
|
(let ((current_to (cdr TRANSPOSITION))
|
||||||
|
(interval (ly:pitch-diff to from)))
|
||||||
|
(set! TRANSPOSITION (cons (car TRANSPOSITION)
|
||||||
|
(ly:pitch-transpose current_to interval))))))
|
||||||
|
|
||||||
transposable =
|
transposable =
|
||||||
#(define-music-function (fromto music) (pair? ly:music?)
|
#(define-music-function (fromto music) (pair? ly:music?)
|
||||||
|
|||||||
Reference in New Issue
Block a user