Jump to content

mapping <gen-sort> by <tonality-map>


Recommended Posts

like this (?)...

 

;;; mapping to MAJOR

(setf sort-seq (integer-to-pitch (flatten (gen-sort (rnd-order (gen-integer 24)) :type 'selection))))

(def-score example-score
           (:key-signature 'atonal
                           :time-signature '(4 4)
                           :tempo 90
                           :layout (treble-layout 'seq))
  
  (seq :omn (make-omn :pitch (setf n (tonality-map '(major :map step :root 'c4) sort-seq))
                      :length (gen-repeat (length (flatten n)) '(t)))))


;;; mapping to MESSIAEN-mode

(setf sort-seq (integer-to-pitch (flatten (gen-sort (rnd-order (gen-integer 24)) :type 'insertion))))

(def-score example-score
           (:key-signature 'atonal
                           :time-signature '(4 4)
                           :tempo 90
                           :layout (treble-layout 'seq))
  
  (seq :omn (make-omn :pitch (setf n (tonality-map '(messiaen-mode5 :map step :root 'c4) sort-seq))
                      :length (gen-repeat (length (flatten n)) '(t)))))


;;; mapping to a XENAKIS-SIEVE -> how can i do that with TONALITY-MAP? (but not necessary)

(setf sieve (gen-sieve '((c4 g7) (c1 g7)) '((2 1 12) (3 5)) :type :pitch))
(setf sort-seq (flatten (gen-sort (rnd-order (gen-integer (length sieve))) :type 'insertion :sort '?)))

(def-score example-score
           (:key-signature 'atonal
                           :time-signature '(4 4)
                           :tempo 90
                           :layout (treble-layout 'seq))
  
  (seq :omn (make-omn :pitch (setf n (loop 
                                       for i in sort-seq
                                       collect (nth i sieve)))
                      :length (gen-repeat (length (flatten n)) '(t)))))

 

Link to comment
Share on other sites

You can use the :span :pitch option if the master is the pitch:

 

Example:

 

(make-omn
 :pitch (tonality-map '(messiaen-mode5 :map step :root 'c4) sort-seq)
 :length '(t)
 :span :pitch)

(make-omn
 :pitch (loop for i in sort-seq collect (nth i sieve))
 :length '(t)
 :span :pitch)


 

 

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