Jump to content
Sign in to follow this  
terekita

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

 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×