Hi again (too soon?), I’m trying to make the positive intervals have a + in front of them.
Q1. My intuition tells me I need to use a lambda function with append. Does that seem like a reasonable approach? Regardless, assume for argument’s sake that it is… For the life of me, I can’t quite figure out where exactly such a construct would appear in the code. Everywhere I try throws [different] errors. =( The following doesn’t throw an error, and I know why, and I know why it outputs what it does — so I’m not quite as stupid as I feel (and maybe appear?): %%% \version "2.19.83" some-music = { a'4 bes' b' aes' g' cis' d' ees' fis' f' e' c' } #(display ((lambda (d) (append d d)) (map number->string (let ((muspst (map ly:pitch-semitones (music-pitches some-music)))) (map - (cdr muspst) muspst))))) %%% So this leads to my real question: Q2. What is a good way to change #(display (map number->string (let ((muspst (map ly:pitch-semitones (music-pitches some-music)))) (map - (cdr muspst) muspst)))) so that it outputs (+1 +1 -3 -1 -6 +1 +1 +3 -1 -1 -4) ? Thanks, Kieren. ________________________________ Kieren MacMillan, composer (he/him/his) ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info