born Posted March 8, 2022 Share Posted March 8, 2022 Does anybody know how to merge lengths with same pitches? (e c4 c4 e. c4 q c4 s c4 e eb4 e. eb4 h eb4 e. eb4 q eb4) => (h. c4 wq eb4) Thanks for help, Achim Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted March 8, 2022 Share Posted March 8, 2022 (filter-tie '(e c4 c4 e. c4 q c4 s c4 e eb4 e. eb4 h eb4 e. eb4 q eb4)) => (h. c4 mf wq eb4) also this could be useful as well but Janusz probably can program it much better: (defun filter-change (omn-lst) (make-omn :pitch (omn :pitch omn-lst) :length (binary-map (gen-binary-change (omn :pitch omn-lst)) (omn :length omn-lst)) :velocity (omn :velocity omn-lst) :articulation (omn :articulation omn-lst) :swallow t )) (filter-change '(e c4 c4 e. c4 q c4 s c4 e eb4 e. eb4 h eb4 e. eb4 q eb4)) => (e c4 - -e. -q -s e eb4 -e. -h -e. -q) opmo 1 Quote Link to comment Share on other sites More sharing options...
born Posted March 10, 2022 Author Share Posted March 10, 2022 Thanks a lot Stephane, that helps. Achim Stephane Boussuge 1 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.