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.

scale degree conversion?

Featured Replies

Hello!

 

 

 

Is there a way to do a simple conversion from integer (representing scale degree) to pitch (via a Tonality)?

 

map-to-tonality assumes that the integer input is a chromatic pitch class.

 

Thank you!

Elliot

 

 

also you may be interested by this example:

 

;; An example of diatonic transposition
;; ie. using tonality degree for tonality mapping.

;; degree selection 
(setf degr '(1 4 2 5 1 6 4 2 5))
;; remove 1 from each degree for use as transposition
;; inside tonality for diatonic transposition
(setf trsp (mapcar (lambda(x) (- x 1)) degr))

;;; some material

(setf arps1 (gen-repeat 
             (length degr) 
             '((s c4 e4 g4 c5 e5 g5 c6 g5 e5 c5 g4 e4))))

;; apply diatonic transposition (inside tonality) 

(setf arps.map (tonality-map 
                '(major :root d4)
                (pitch-transpose
                 trsp
                 arps1)))

SB.

 

  • 4 weeks later...
  • Author

Neither of these do quite the simple conversion I'm asking.  (integer-to-pitch) only speaks chromatic pitch-class, not diatonic scale degree.  I may not understand the second fully yet, but a more transparent test shows its limitation:

;; An example of diatonic transposition
;; ie. using tonality degree for tonality mapping.
;; degree selection 
(setf degr '(1 2 3 4 5))

;; remove 1 from each degree for use as transposition
;; inside tonality for diatonic transposition
(setf trsp (mapcar (lambda(x) (- x 1)) degr))

;;; some material
(setf arps1 (gen-repeat 
             (length degr) 
             '((s c4 d4 e4 f4 g4))))

;; apply diatonic transposition (inside tonality) 
(setf arps.map (tonality-map 
                '(major :root c4)
                (pitch-transpose
                 trsp
                 arps1)))

 

The result is

C D E F G

D F G G A  (when a true diatonic transposition would be D E F G A)

D D F G A (should be E F G A B)

etc.

 

I'm getting a handle on LISP and think I'll be able to write my own function, but I do suggest that this is basic musical task that many people would use if it were in the library.

 

Thanks for your help,

Elliot

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

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.