torstenanders Posted April 6, 2017 Share Posted April 6, 2017 What is the opposite of chordize? Sorry for asking that, but I cannot find it. (function-I-am-looking-for 'c4e4g4) => '(c4 e4 g4) BTW, the following could be useful as well (currently nil is returned) (pitch-to-midi 'c4e4g4) => '(60 64 67) Thanks! Best, Torsten Quote Link to comment Share on other sites More sharing options...
Avner Dorman Posted April 7, 2017 Share Posted April 7, 2017 Hi Torsten, Would these work? (pitch-melodize '(c4e4g4)) => (c4 e4 g4) And (pitch-to-midi '(c4e4g4)) =>((60 64 67)) or (flatten (pitch-to-midi '(c4e4g4))) => (60 64 67) All the best, Avner torstenanders 1 Quote Link to comment Share on other sites More sharing options...
opmo Posted April 7, 2017 Share Posted April 7, 2017 (melodize 'c4d4e4) => (c4 d4 e4) Quote Link to comment Share on other sites More sharing options...
torstenanders Posted April 7, 2017 Author Share Posted April 7, 2017 Great, thanks to you both! Torsten Quote Link to comment Share on other sites More sharing options...
david Posted April 22, 2023 Share Posted April 22, 2023 Hi, how do we do the opposite? (c4 d4 e4) to (c4d4e4) ??? Quote Link to comment Share on other sites More sharing options...
opmo Posted April 22, 2023 Share Posted April 22, 2023 (chordize '(c4 d4 e4)) => (c4d4e4) Quote Link to comment Share on other sites More sharing options...
david Posted April 22, 2023 Share Posted April 22, 2023 I know how to do;-) I would like to do for example (setf ry1 '((e))) (setf c7 (make-scale 'c4 24 :alt '(9 2 -9 9 1 -8 8 2 -9 9 2 -9 9 1 -8 8 2 -8 8 2 -9 9 2))) (setf rc7 (gen-retrograde c7)) (setf ass3 (assemble-seq c7 rc7)) (setf omn3 (pitch-transpose '(0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 -2 -2 -1 -1 11 11) (gen-repeat 12 ass3))) (setf six+deux (omn-to-measure (make-omn :pitch omn3 :length ry1 :span :pitch) '(3/8))) (chordize six+deux) > Error: OMN Parse Error: fail > While executing: omn-to-ast, in process Listener-1(7). > Type cmd-. to abort, cmd-\ for a list of available restarts. > Type :? for other options. Quote Link to comment Share on other sites More sharing options...
opmo Posted April 22, 2023 Share Posted April 22, 2023 This is not about 'Opposite of chordize'. Please create a new post. Please check the chordize document. The chordize input are pitches and not omn list form. 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.