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.

Suggestion: harmonic-progression function

Featured Replies

it is common to represent chord degrees starting from 1, not 0. For instance, a valid chord progression degree sequence is '(1 2 5 6 3 5 6 1). In such cases, in order to get the corresponding chords, the function harmonic-progression is quite useful. However, this function assumes the chord degrees to be zero-based, so we have to write like this:

 

(harmonic-progression (integer-transpose -1 '(1 2 5 6 3 5 6 1)) '(c4 major))

 

For example, see SB's reply in: 

I have also been using it like this in some of my code. Nothing wrong with this, but since this is likely to be a frequently occurring pattern, I feel it might be better to include an optional keyword argument to the function to mention the base to use:

 

(harmonic-progression '(1 2 5 6 3 5 6 1) '(c4 major) :base 1)

 

Or, of course, we can change the current behaviour to be 1-based instead of 0-based (if it doesn't affect existing code).

 

Regards,

Rangarajan

  • 6 months later...

Opusmodus 1.2.21003

 

(harmonic-progression '(0 3 4 4) '(c major))

=> (c4e4g4 f4a4c5 g4b4d5 g4b4d5)

 

(harmonic-progression '(1 4 5 5) '(c major) :base 1)

=> (c4e4g4 f4a4c5 g4b4d5 g4b4d5)

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.