April 22, 20223 yr Is there a way to remove or replace intervals from a melody? I am looking for a function like chord-interval-replace but for a melody instead of chords.
April 22, 20223 yr Convert the pitch list to intervals, remove the unwanted intervals, then back to pitches. (setf pitches '(g0 fs1 e2 bb4 eb3 e3 fs3 a4 b3 d4 e4 fs4 g4 a5)) (setf intervals (pitch-to-interval pitches)) => (11 10 30 -19 1 2 15 -10 3 2 2 1 14) (setf new (filter-remove '(2 19 30) intervals)) (interval-to-pitch new :start 'g4) => (g4 fs5 e6 a4 bb4 cs6 eb5 fs5 g5 a6) or (interval-ambitus 11 '(g0 fs1 e2 bb4 eb3 e3 fs3 a4 b3 d4 e4 fs4 g4 a5))
Create an account or sign in to comment