< Back to IRCAM Forum

Error when appending random number of chord-seq

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

append-error.tiff (525 KB)

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

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