o_e Posted March 5, 2015 Share Posted March 5, 2015 Hi,This seems to be a rather simple problem but I can't find a solution myself:I have a list of 16th notes and 16th rests and I want to make sublists every nth 16th (note or rest),like so:(setf list '(1/16 1/16 -1/16 1/16 1/16 1/16 -1/16 1/16 1/16 -1/16 1/16 1/16 1/16 -1/16 1/16 1/16 1/16 -1/16 1/16 1/16 1/16 1/16 1/16 -1/16)) (make-sublists '4 list) -> ((1/16 1/16 -1/16 1/16) (1/16 1/16 -1/16 1/16) (1/16 -1/16 1/16 1/16) (1/16 -1/16 1/16 1/16) (1/16 -1/16 1/16 1/16) (1/16 1/16 1/16 -1/16))thanks for hints,bestole Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted March 5, 2015 Share Posted March 5, 2015 (gen-divide 4 ........S. Quote Link to comment Share on other sites More sharing options...
o_e Posted March 6, 2015 Author Share Posted March 6, 2015 Thanks! I knew it was easy and I had used it before.. 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.