EAIP Posted May 15, 2019 Share Posted May 15, 2019 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)) Quote Link to comment Share on other sites More sharing options...
opmo Posted May 15, 2019 Share Posted May 15, 2019 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. Quote Link to comment Share on other sites More sharing options...
EAIP Posted May 15, 2019 Author Share Posted May 15, 2019 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) Quote Link to comment Share on other sites More sharing options...
opmo Posted May 15, 2019 Share Posted May 15, 2019 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. AM, EAIP, JulioHerrlein and 2 others 2 3 Quote Link to comment Share on other sites More sharing options...
opmo Posted May 16, 2019 Share Posted May 16, 2019 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.