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.

Sort Pitches with lengths

Featured Replies

Good morning.

 

I'm interested in score analysis and I've encountered an issue. Is it possibile in Opusmodus, after I've create a score in OMN form (for example : (h c6 mp) (w. f5 pp) (d a4 mp) ) sort these sublist in PITCH ascending order linking the corresponding value of LENGTH? example:

convert this: (h c6 mp) (w. f5 pp) (d a4 mp)
in this: (d a4 mp) (w. f5 pp) (h c6 mp)

 

where every sublist remains the same but the order is changed on a pitch base (in this case ascending).

 

I've tried SORT-ASC and similar, but probably there's something to try and I'm new to the program.

 

Thank you a lot!

Pietro

Hi,

 

this could be a solution:

 

(setf orig '((h c6 mp) (w. f5 pp) (d a4 mp)))

(defun prepa (lst)
  (car (pitch-to-integer (omn :pitch lst))))

; test of prepa:
(prepa '(h c6 mp))

(setf ordered (sort (copy-seq orig) #'< :key #'prepa))

SB.

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.