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.

New diatonic chord progression function

Featured Replies

Hi
I've been trying to get this new function to work, based on the example given ... but cannot.
What have I missed here?
 

(setf intro '(:c I vi IV V))
(setf verse '(:c I V vi IV ii))
(setf chorus '(:am i iv VI III iv i V7))
(setf bridge '(:eb IV V7/V V7 I vi ii V7 I))
(setf outro '(:c vi IV I ii V7 I IV I))

(setf song-progression
      (append intro verse chorus bridge outro))

(setf attr (make-diatonic-chord-attribute song-progression))

(setf song-chords
      (diatonic-chord
       song-progression
       :inv '(0 -1 0 -1   ; Introduction inversions
              -2 0 -1 0 -1 0 -1 0 -1 -2   ; Verse inversions
              0 -1 -2 0 -1 -2 0   ; Chorus inversions
              0 0 -1 0 -1 -2 0 -1  ; Bridge inversions
              0 -1 -2 0 -1 -2 0  ; Outro inversions
              0 0 0 -1 0 -1 -1 -2)  ; Outro inversions
       :sort t
       :drop 1))

(setf omn-data
  (omn
    :pitch song-chords
    :length '(q q h q
              q h q q q q q q h q
              q q q q q q h
              q h q q q q h q q h
              q q q q q q q h
              h h h q q h h w)
    :articulation attr))

(def-score my-song
  (:key-signature 'chromatic
   :time-signature '(4 4)
   :tempo 120
   :layout (grand-layout 'piano))
 
  (piano
   :omn omn-data
   :channel 1
   :sound 'gm
   :program 'acoustic-grand-piano))

make-omn

 

(setf omn-data
  (make-omn
    :pitch song-chords
    :length '(q q h q
              q h q q q q q q h q
              q q q q q q h
              q h q q q q h q q h
              q q q q q q q h
              h h h q q h h w)
    :articulation attr))

 

and (grand-layout 'piano) is not correct it needs two voices. Change to one voice instrument.

All together:
 

(setf intro '(:c I vi IV V))
(setf verse '(:c I V vi IV ii))
(setf chorus '(:am i iv VI III iv i V7))
(setf bridge '(:eb IV V7/V V7 I vi ii V7 I))
(setf outro '(:c vi IV I ii V7 I IV I))
(setf song-progression (append intro verse chorus bridge outro))
(setf attr (make-diatonic-chord-attribute song-progression))

(setf song-chords
      (diatonic-chord
       song-progression
       :inv '(0 -1 0 -1   ; Introduction inversions
              -2 0 -1 0 -1 0 -1 0 -1 -2   ; Verse inversions
              0 -1 -2 0 -1 -2 0   ; Chorus inversions
              0 0 -1 0 -1 -2 0 -1  ; Bridge inversions
              0 -1 -2 0 -1 -2 0  ; Outro inversions
              0 0 0 -1 0 -1 -1 -2)  ; Outro inversions
       :sort t
       :drop 1))

(setf omn-data
      (make-omn
       :pitch song-chords
       :length '(q q h q
                 q h q q q q q q h q
                 q q q q q q h
                 q h q q q q h q q h
                 q q q q q q q h
                 h h h q q h h w)
       :articulation attr
       ))

(def-score my-song
    (:key-signature 'chromatic
     :time-signature '(4 4)
     :tempo 120
     :layout (treble-layout 'chords))
 
  (chords
   :omn omn-data
   :channel 1
   :sound 'gm
   :program 0))

 

  • opmo changed the title to New diatonic chord progression function

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.