Jump to content

passing variables to the :rotate keyword in tonality-map


Recommended Posts

Hello,

 

So, this obviously works:
 

(setf pitch (integer-to-pitch '(20 19 18 15)))
(tonality-map '(minor-pentatonic :root c0 :map step :rotate 20) pitch)

but this—passing in a variable to the :rotate key—doesn't. (Assuming because it's inside a quoted list?)
 

(let ((offset 20))
  (tonality-map '(minor-pentatonic :root c0 :map step :rotate offset) pitch))

 

I'd like to do something like the latter because I'd like to dynamically pass in changing values for :rotate. Any tips or suggestions?

 

thanks for taking a look, Michael

 

 

 

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.

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