Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

function for lengths variation

Featured Replies

Lets say I have 2 measures of music.

I want to make random variations of the rhythms (not the pitches)

The result should fit in the initial 2 measures.

What is the function called for this.

I cannot remember ...

Thanks for help,

Achim

  • Author

Is there one working with OMN?

Several possibilities depend what kind of variations you want.

The simplest one is random order applied only to lengths.

 

(setf mat '((e d4 e4 fs4 gs4 q a4)(s b4 c5 b4 gs4 q a4 e fs4 e4)))
(rnd-order mat :type :length)

Another way I appreciate particularly is length divide:

(length-divide '((3 4)(1 2)) mat :set 'max)

but this last one add some intervals so it may be not what you're searching for...

S.

  • Author

Thanks a lot. I found another one as well:

quantum

 

length-invert

 

produces great results as well:
 

(length-invert '(1/8 1/8 -1/8 1/4 1/4 -1/8))
=> (-1/8 -1/8 1/8 -1/4 -1/4 1/8)

(length-invert '(1/8 1/8 -1/8 1/4 1/4 -1/8) :swap t)
=> (1/8 1/8 1/4 -1/8 -1/8 1/4)

 

and works with omn sequence.

Create an account or sign in to comment


Copyright © 2014-2026 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Important Information

Terms of Use Privacy Policy

Account

Navigation

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.