Stoney Posted July 1, 2020 Share Posted July 1, 2020 In the video "Opusmodus Parametric Composition" by Jorvd, from 2019-12, at 11:10, he demonstrates using harmonic-path to combine a melody and chords. I entered this code to match the video, and it didn't work for me. Here's what he showed: (setf chords '(c3g3c4ds4 gs2f3c4d4 c3g3c4ds4 gs2f3c4d4 c3g3c4ds4 d3g3b3f4 c3g3c4g4 d3f3c4gs4 ds3g3c4g4 cs3g3as3f4 ds3a3c4fs4 fs3a3c4ds4 c3g3c4ds4 g2g3b3d4 gs2f3c4d4 b2d3f4 c3g3c4ds4 f3gs3c4d4 g2g3b3d4 c3ds3g3ds4 as2e3g3g4 f2f3c4gs4 g2g3b3d4 cs3g3as3f4 b2g3d4g4 c3g3c4ds4 f3gs3c4f4 g2g3b3d4 gs2ds3c4gs4 gs2ds3c4gs4 as2as3d4f4 ds3as3ds4g4 d3f3b3f4 c3g3c4e4 f3gs3c4f4 g2g3c4ds4 g2g3b3d4 c3ds3g3c4 c3ds3g3c4)) (setf instrument1 (gen-repeat (length chords) '(s g4c4 c4 g4e4 g4 d4 c4 g4f4 g4))) (setf instrument1.map1 (harmonic-path chords instrument1 :type '> :octave 'path)) It seems that instrument1 needs to have the melody nested one level in order to make the result work, like this: (setf instrument1 (gen-repeat (length chords) '((s g4c4 c4 g4e4 g4 d4 c4 g4f4 g4)))) It looks like something changes in gen-repeat, or possibly harmonic-path since December, or am I missing something? Thanks for any insights! Quote Link to comment Share on other sites More sharing options...
opmo Posted July 1, 2020 Share Posted July 1, 2020 (setf instrument1 (gen-repeat (length chords) '((s g4c4 c4 g4e4 g4 d4 c4 g4f4 g4)))) Nothing change, it needs to be a list with sublists. (gen-repeat 3 '((c4 g4) (c4 a4))) => ((c4 g4) (c4 a4) (c4 g4) (c4 a4) (c4 g4) (c4 a4)) If number is a list then each list is repeat individually. (gen-repeat '(3) '((c4 g4) (c4 a4))) => ((c4 g4 c4 g4 c4 g4) (c4 a4 c4 a4 c4 a4)) hujairi 1 Quote Link to comment Share on other sites More sharing options...
Stoney Posted July 1, 2020 Author Share Posted July 1, 2020 Then why did Jorvd get a correct output in the video without the sublists? Quote Link to comment Share on other sites More sharing options...
Stephane Boussuge Posted July 3, 2020 Share Posted July 3, 2020 Hi, you can ask Jor S. Quote Link to comment Share on other sites More sharing options...
Jorvd Posted July 6, 2020 Share Posted July 6, 2020 Hi Stoney, It took some time to look into the issue this morning, but I can't find a clear answer for you as well. It might be the result from an earlier evaluation although I really doubt that since the video was recorded in one take, either way, sublists are the way to go! - Jor Quote Link to comment Share on other sites More sharing options...
Stoney Posted July 6, 2020 Author Share Posted July 6, 2020 Thanks for the response. I have been tripped up by nesting several times, so I'm paying closer attention to it now. I will leave this as a mystery! 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.