Group Admins

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Public Group active 13 hours, 9 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

error when appending random number of chord-seq

Author 3 Subscribed Users |
Profile photo of andrewdkaiser
andrewdkaiser

Hello:

I’ve attached a screen shot of a patch and the error message that I’m receiving. I want this patch eventually to allow for random series of chord-seq objects to be appended into one final object. If I append just the two objects, then my result works ok. But if I then try to add another repeat, that’s when I get the error message “arguments should be of type real”.

Thanks for any help,
Andrew

Attachments:
  1. append-error

    append-error.tiff

November 9, 2013 at 19:21 #6822
Profile photo of
Anonymous

Hi

You have two x-append that only use one input: that causes them to attach the randomly chosen chord seqs to a default 1 value that come with x-append. That causes the list to be badly formed. Just attach both repeat-n outputs to the same x-append. That’ll work…

Michele

November 9, 2013 at 21:05 #6824
Profile photo of Didier DEBRIL
Didier DEBRIL

Hello,
Michele wrote : That causes the list to be badly formed.
Yes, that’s right.
Andrew, I tried the patch, and the output of the first x-append you get this : OM => ((7904 7904 6886 8402 8402 8402 4100 8086 7202 8668 7468 6002 6500) (6968 7902 6000 6702 8168 3600 7200 4800 7752)) OM => ((3600 8168 7902 3600 8288 8168 8168)) : —-> with 2 parenthesis

But in the output the last x-append the list is incorrect : OM => (((7904 7904 6886 8402 8402 8402 4100 8086 7202 8668 7468 6002 6500) (7752 7200 4800 3600 8040 8288 8040 4800 8168 6968 5502 8168 7752)) ((8602 7900 8452 9100 8104 8988 6202 7086 6700 8452)))OM => (((5502 3600 8040 8288 7902 6386 4800 4800 5502 8040 7404 7752) (8040 8168 7752 4800 7902 7404)) ((8040 8168 7752 4800 7902 7404))) —-> including the beginning and end, three parenthesis joined.

Didier

November 9, 2013 at 22:08 #6828
Profile photo of andrewdkaiser
andrewdkaiser

Thanks for the reply, which does help clarify for me what was happening. I see that the extra parenthesis does create an error.

What I’m trying to do is to create a chord-seq that is made up of the random elements from the original chords….but then I want to repeat that process. For now I’m just experimenting with the tutorial files, but eventually I want to have segment made up of repeated structural elements. Similar to what happens in Tutorial 17, except that in tutorial 17, the ‘FLat’ process creates just a list of pitches.

is there anyway for me to just remove the extra parenthesis? Or, more gneral, how can I add chord-seq objects? For example, if I use the create-list, I get

(#<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757> #<chord-seq 24829757>)

But this will generate a chord-seq object itself.

Thanks,
andrew

November 10, 2013 at 20:56 #6835

You must be logged in to reply to this topic.

Log in now