PatrickMimran Posted January 7, 2015 Share Posted January 7, 2015 Hello i try to tranlate pattest into list of pitches from library how may i achieve this , could you help thanks (setq pattest (library 'modes 'minor nil :random 3 )) (setq pattestpitches (mapcar 'integer-to-pitch pattest )) Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted January 7, 2015 Share Posted January 7, 2015 Possible solution: (setq pattest (library 'modes 'minor nil :random 3)) (setq pattestpitches (integer-to-pitch (apply-eval pattest))) SB. Quote Link to comment Share on other sites More sharing options...
PatrickMimran Posted January 7, 2015 Author Share Posted January 7, 2015 Merci Quote Link to comment Share on other sites More sharing options...
opmo Posted January 8, 2015 Share Posted January 8, 2015 Opusmodus 1.015710 allows you do direct conversion: (expand-chord-name (library 'modes 'acoustic nil :random 2) :type :pitch) => ((c4 d4 e4 fs4 g4 a4 bb4) (c4 d4 e4 fs4 gs4 a4 bb4)) (expand-chord-name (library 'modes 'minor nil :random 3) :type :pitch) => ((c4 d4 eb4 f4 g4 bb4) (c4 d4 eb4 f4 g4 gs4 a4 bb4 b4) (c4 d4 eb4 f4 g4 bb4)) The EXPAND-CHORD-NAME function works on chords and tonalities. 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.