Jump to content

permute by rule


Recommended Posts

(defun permute-by-rule (n rule row)
  (append (list row)
          (loop repeat n
            collect (setf row (position-filter rule row)))))

;; row => a row (or a list)
;; n => number of generations
;; rule => new position/order in every generation - keep attention it's 0-based!!! => for 12 pitches use 0 to 11

(permute-by-rule 20 '(2 0 1 5 11 3 8 6 4 9 10 7) (make-scale 'c4 12))

 

Bildschirmfoto 2022-05-18 um 21.00.47.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy