AM Posted May 9, 2016 Share Posted May 9, 2016 i woud like to replace a pitch by a new omn-sequence. so i have to match/eliminate the length too... is there a function anywhere? for example -> the "h gs5" '(e fs4 c5 -w h gs5 -w e. d5 h cs5) replace this values with another omn-seq, but how? i could do something like this (in ord. lisp), but then i get in trouble with the lengths (loop for i in '(e fs4 c5 -w h gs5 -w e. d5 h cs5) when (equal i 'gs5) collect '(e. gs5 ppp g5 e_t f5 d5) else collect i) -> '(e fs4 c5 -w h (e. gs5 ppp g5 e_t f5 d5) -w e. d5 h cs5) ...so the last length-val before the insert has to be eliminated too (here: h (e. gs5 ...)) ... otherwise is gonna be wrong. thanx for help a. Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted May 9, 2016 Share Posted May 9, 2016 may be this: (setf phrase '(e fs4 c5 -w h gs5 -w e. d5 h cs5)) (motif-map '(((h gs5) (q fs4 gs5))) phrase) SB. Quote Link to comment Share on other sites More sharing options...
AM Posted May 9, 2016 Author Share Posted May 9, 2016 thanx, stephane! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.