Jump to content

How to snap notes into a scale?


Recommended Posts

Hi there,

i'm a excited beginner with OM!

Just exploring and modifying the turotials.

 

One Question:

What would be a good approach to sort the notes which are generated from the snippet below to, say, a scale.

In other words: The outoot below is chromatic. How can i turn it into a scale, eg. d-phrygian)

Thank you!

 

(setf size 60)
(setf vector
      (gen-sine
       size 1 '(0.5 0.4 0.3 0.6)
       :modulation (gen-sine size 1 0.3 :phase 180)))
(setf pitchvec (vector-to-pitch '(g1 g6) vector))

 

Link to post
Share on other sites

you could do it like this, check the function TONALITY-MAP

(pitch-transpose 2 (tonality-map '(phrygian :map step) pitchvec))

but mapping on (other) tonalities could be musically a bit tricky - perhaps you have to "eliminate some pitch repetitions" (has to do with quantification), or sometimes you have some troubles with the ambitus (that's the reason why i added <pitch-transpose>)...

 

but perhaps there are some other solutions...?

 

greetings

andré

Link to post
Share on other sites

so far it works, thank you! but where can i define the root/base note of the phrygian-mode?

ah, i found it. thats is done by the pitch-transpose.
so whatever tonality-map does, its always based on "c" as the root? 

Link to post
Share on other sites

it could work like this... because of the RANGE of the "chromatic mapping of your gen-sin", you have to set :root  d3, otherwise you will get pitches like "a-1", which is not possible. so you have to shift your root to d3.

(tonality-map '(phrygian :root d3) pitchvec)

i never used <tonality-map> before, i just read the documentation of the function - so it's quiet simple 🙂

 

greetings

andré

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