Jump to content

Expand Chord Form


Recommended Posts

Beginners question:

I specify a chord sequence using the very handy chord form notation.

(Please do not recommend changing this way of providing input.)

 

(setf simple-cadence '((c4 maj7) (f4 maj7) (f4 m7) (g4 7) (c4 maj7)))

 

Next I want to translate it into block chords:

 

(setf chords (make-omn 
              :pitch simple-cadence
              :length (gen-repeat 5 '(w))
              :articulation '(leg)))

 

Unfortunately this does not give chords:

 

Bildschirmfoto 2024-06-04 um 04.10.16.png

 

 

I have seen 

expand-chord

function, but I can't get it work with a list. 

 

How can I use chord-form list in the make-omn :pitch parameter ?

Link to comment
Share on other sites

  • Cliff changed the title to Expand Chord Form

Try this.

 

(setf simple-cadence (mapcar 'expand-chord '((c4 maj7) (f4 maj7) (f4 m7) (g4 7) (c4 maj7))))

;; mapping expand-chord to each sublist

 

or

(setf simple-cadence '((c4 maj7) (f4 maj7) (f4 m7) (g4 7) (c4 maj7)))
 
(setf chords (make-omn 
              :pitch (mapcar 'expand-chord simple-cadence)
              :length (gen-repeat 5 '(w))
              :articulation '(leg)))

 

Jesper

Link to comment
Share on other sites

With @opmos update:

 

setf chords (make-omn 
              :pitch (expand-chord simple-cadence)
              :length (gen-repeat 5 '(w))
              :articulation '(leg)))
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy