Jump to content

Clusters of notes

Recommended Posts

One possible way among the infinity of possibility :



;;; Creating random notes that are played 
;;; in clusters over random time periods

;; Create random notes
(setf notes (rnd-sample 512 (make-scale 'c2 48)))

;; Create chords
(setf chords (gen-chord 24 4 8 -6 6 notes))

;; Create binary time periods
(setf bin (gen-binary-rnd 24 16 1 8))

;; Create rhythm from binary
(setf ry (binary-map bin 's))

;; Create random dynamics
(setf dyn (rnd-sample (length chords) '(pp p mp mf f ff)))
;; Full OMN Assembly
(setf rnd-chords (make-omn
                  :pitch chords
                  :length ry
                  :velocity dyn
                  ;:span :pitch

(ps 'gm
    :pg (list rnd-chords)
    :tempo 64)


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.

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