Jump to content

harmonic-progression with automatic :size

Recommended Posts

Perhaps it would be possible to make the harmonic progression function have the option of counting the size based on the interval inputted by the user?

Under certain circumstances, it's useful to specify the size, but under other circumstances, it's a bit cumbersome.


I've made my own simple version that does this (but doesn't include all the options of the original function). I called bass-progression. 

(defun bass-progression (progression steps scale)
  (harmonic-progression progression scale
   :size (loop for i in steps collect (+ (length i) 1))
   :step steps))



(bass-progression '(0 1 2 3 4) '((2) (2 3) (2 3 4) (2 3 4 5)) '(c major))
=> (c4e4 d4f4b4 e4g4d5g5 f4a4f5c6f6 g4b4)


Link to post
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.

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