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.

"gen-stacc" -> question

Featured Replies


don't know if somthing like that exists... generates "stacc"-rhythms = splitting lengths for example 7/32 to 1/32 -6/32 (works with single values or lists)
-> only "1 bug"... when i want to do this with 4/32 -> then lisp *reduces it" to 1/8, so it don't work for such rhythms...?!? any ideas?

thanx

a.

 

;;;FUNCTION
(defun gen-stacc (n)
  (if (numberp n) 
    (if (> (numerator n) 1)
      (list (/ 1 (denominator n)) (/ (* -1 (- (numerator n) 1)) (denominator n)))
      (list n))
    (loop for i in n
      append (if (> (numerator i) 1)
      (list (/ 1 (denominator i)) (/ (* -1 (- (numerator i) 1)) (denominator i)))
      (list i)))))

;;;EXAMPLES
(gen-stacc '(7/32 9/32 17/32))
(gen-stacc 4/32)

 

This is not a bug 4/32 = 1/8 :smile:

The stacc articulation shortens the note in the playback anyway.

And if the stacc is a sound-set then the program is triggered instead of the midi value for stacc.

  • Author

thanx!

 

i know that 4/32 = 1/8

-> but  i would like to calculate with 4/32 -> numinator/denominator and not with 1/8 :-)

there is no way to do that, 4/32 = 1/8

This is why ratios are difficult to rewrite especially to tuplets.

 

Example:

(7/20 7/20 3/10 3/10)

We must apply AI to make the rewrite :-)

Yes, I have also experienced this difficulty, for example, can't distinguish between 4/4 and 2/2 because both reduce to 1! As JP points out, this is a Lisp issue, nothing to do with OM. If we are adventurous, we could implement our own "data type", for example keeping numerator and denominator separately as a cons pair (numerator . denominator) or something similar. We can write a set of functions that operate on this, and then apply reduction when actually needed. More work, of course, but Lisp gives you control.

 

Regards,

Rangarajan

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.