Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus Community

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.

integer-to-pitch bug?

Featured Replies

I just discovered that (from the doc for integer-to-pitch)

(integer-to-pitch '((-2 -1) 0 (1 2)))
=> (bb3b3 c4 cs4d4)

but

(integer-to-pitch '((-2 -1) (0 2) (1 2)))
=> ((bb3 b3) (c4 d4) (cs4 d4))

 

Unless at least one element is not a sublist, it fails to make chords. This seems inconsistent, and probably a bug.

This is in Opusmodus Version 1.3.24962

No bug, there is a way to get the result you are looking for. If your list are lists only and you expect to get chords only then place the lists in additional list:

(integer-to-pitch '(((-2 -1) (0 2) (1 2))))
=> ((bb3b3 c4d4 cs4d4))

 

  • Author

That's good to know, and is simpler than my current workaround (add a 0 to the front of the list, then drop the leading c4 from the result).

 

Do you consider the inconsistency of the integer-to-pitch results a bug?

> Do you consider the inconsistency of the integer-to-pitch results a bug?

 
I cannot speak for Janusz, but for me the format of the result makes sense. If there are individual values in the integer pitch list it is assume that the overall result is considered flat and hence sublists are chords. If everything is nested, then sublists are considered bars and the nesting is preserved.
 
Best,
Torsten
 
  • Author

Torsten, that makes sense. Thanks for the clarification!

Create an account or sign in to comment


© 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

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.