Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Clusters of notes

Featured Replies

Please could someone suggest ideas for creating random notes that are played in clusters over random time periods?

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)

SB.

  • Author

Thank you, that's a great starting point for me to experiment with.

Create an account or sign in to comment

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.