Jump to content

Did gen-repeat change?

Recommended Posts

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!

Link to comment
Share on other sites

(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))


Link to comment
Share on other sites

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

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

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.

  • Create New...

Important Information

Terms of Use Privacy Policy