Jump to content
Sign in to follow this  
EAIP

sorting chords

Recommended Posts

Is there built-in functionality to sort a chord-progression using the top note?

The following example uses the bottom note:

(sort-asc '(a2a3 a2a4 a2e4))

 

Share this post


Link to post
Share on other sites

What would be the result here:

'(a2a3 a2a4 a2e4 c3f4 f4cs4 d4e4)

 Please make a few examples with the input and the output you are looking for.

 

Share this post


Link to post
Share on other sites
2 hours ago, opmo said:

What would be the result here:


'(a2a3 a2a4 a2e4 c3f4 f4cs4 d4e4)

  Please make a few examples with the input and the output you are looking for.

 

 

The result when sorting ascending on top note would in the above case be:

'(a2a3 a2e4 d4e4 c3f4 f4cs4 a2a4)

When the top note is the same, the bottom note decides.

 

Another example:

; sorting on bottom note ;
'(g2g3 g2d4 g2g4 a2a3 a2e4 a2a4) 

; sorting on top note ;
'(g2g3 a2a3 g2d4 a2e4 g2g4 a2a4)

 

Share this post


Link to post
Share on other sites

Here it is:

(chord-progression '(g2g3 a2a4 a2a3 g2d4 g2g4 a2e4))
=> (g2g3 g2d4 g2g4 a2a3 a2e4 a2a4)

(chord-progression '(g2g3 a2a4 a2a3 g2d4 g2g4 a2e4) :sort 'high)
=> (g2g3 a2a3 g2d4 a2e4 g2g4 a2a4)

 

The CHORD-PROGRESSION function will be part of the next release.

Share this post


Link to post
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.

Sign in to follow this  

  • Similar Topics

    • By AM
      hi all
       
      i'm looking for different SORTING ALGORITHMS in LISP - no problem to find (different) in the WWW... but: i would like to have as OUTPUT-result ALL generations of the SORTING-process and not only the LAST one  - i'm interested in the PROCESS!!
       
      thanks for some help or any idea? (for once i do not want to code it myself :-))
      greetings
      andré
    • By PatrickMimran
      I try to map a  tonality on a very simple chord suite  1  4  5   from Major to natural minor in the folowing way 
       
      (Setq chordlist  (tonality-map '(natural-minor :root a4 )  '(c3c4e4g4c5   f3f4a4c5f5  G3G4b4d5g5) ))
       
      But it doesn't seems to work the way i want , i am just looking to transform degree 1 4 5 from c major to  1 4 5  a minor with no success 
       
      there is probably something i am missing or another easiest way 
       
      Thanks
       
      Patrick
       
       
       
       
       
×
×
  • Create New...