Skip to content
View in the app

A better way to browse. Learn more.

Learn more

# user defined function

  1. JMat ·
    Hello, Below is a method I use a lot in generating rhythms in my compositions. It generates a list of pulses of n units, where the pulses are assigned to prime indexes only. I hope you find it useful. All the best, Jawher Matmati ;;; ==================================================== (defun gen-prime-pulses (nb &key (unit 's)) "Return a list of Nb OMN lengths: index i is UNIT if i is prime, otherwise the corresponding rest (-UNIT). Example: (gen-prime-pulses 10 :unit 's)
    • 1 comment
    • 443 views
  2. JMat ·
    Hello Opusmodus users, I have made a small function that generates a list of natural harmonics (at sounding pitch) : Builds a Markov walk over strings I–IV that never skips a string (I <-> II, II <-> I or II <-> III, III <-> IV, III <-> II, IV <-> III) At each step, picks a pitch from the selected instrument’s natural-harmonics list for that string. :repeat nil forbids immediate pitch repeats; :repeat t allows them. • Key words :instrument lets you choose
    • 1 comment
    • 630 views
  3. DanielJean ·
    Given: user defined function: test-foo-lib in Opusmodus/User Source/Libraries/Def-Unfold-Sets Opusmodus version: Version 3.0.28766 (3.0.28766)     (defun test-foo-lib (offset pattern) (setf pattern-flat (flatten pattern)) (format t "test-foo-lib: ~% offset: ~A ~% pattern: ~A ~% pattern-flat ~A ~%" offset pattern pattern-flat)  (setf pat-length (omn :length pattern)) ;just for debugging reason (setf result (pitch-transpose offset pattern-flat))) 
    • 11 comments
    • 1,862 views

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.