Jump 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.

Featured Replies

Dear Friends,

 

I'm struggling to find a modulo 12 function

Something like this:

(mod12 '(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 24 48))

returns >> (0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 0 0)

 

Any Hint ?

Best,

Julio

Dear Julio,

Yes, it's modus. I like work with integer and the Set Theory. 

Best.

Didier

(pcs-analysis (integer-to-pitch (modus (pitch-to-integer '(fs5g6c8 fs4g4c4)))))

  • Author

Thanks, Didier !

I'm looking forward for the new Opusmodus version. It willl be better for dealing with sets.

Best !

Happy New Year !

Julio

  • 3 weeks later...

You can roll such a function easily yourself. The modulus function is part of Common Lisp.

 

;; modulus 12 of 60

(mod 60 12)

; => 0

 

(defun mod12 (xs)
  (loop for x in xs
    collect (mod x 12)))

 

(mod12 '(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 24 48))
; => (0 1 2 3 4 5 6 7 8 9 10 11 0 1 2 3 4 5 6 7 0 0)

 

To empower yourself, once you know how to program a simple function, you simply need to google for the modulus function

 

  http://lmgtfy.com/?q=common lisp modulo

 

:)

 

Best,

Torsten

  • Author

Great idea, Torsten 

Very pedagogic example too. 

Thanks a lot. 

Im studying a lot of diatonic set Theory now, so  I'm interested  on mod 12 and mod 7 operations. The problem with the diatonic stuff is that is,  in the lingo of Robert Morris, a pitch space with a irregular but periodic division. 

Best 

Julio 

Create an account or sign in to comment


Copyright © 2014-2025 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

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.