Add commas to a long list
Hi,
I'd like to add a comma after every third number through a long list I have stored in the text object. Here's a section of the list
4.000 60 57 241.000 60 37 466.000 67 67 691.000 60 40 917.000 72 83 1143.000 60 37 1368.000 60 38 1591.000 60 37 1820.000 60 42 2059.000 55 55 2285.000 60 38 2509.000 60 37 2735.000 99 56 2962.000 60 37 3186.000 44 55 3410.000
So have a float followed by 2 ints...
I'm hoping to save the list with commas as a midi file to play back in seq....
Any help would be great...
thanks...
hi,
regexp may provide a better solution, but here is a basic one with some [zl] :
Thanks Ch!
Much appreciated, works great...
Hi, I can't seem to get this to work with the following patch
any ideas?
@Barry
.
output length was the problem ? , ZL has limit of how much it can process , but you can increase it , take a look . If it wasnt your problem then im sorry i misunderstood .
change the [zl group] to [zl 2048 group]
the 2049 is arbitrary, but larger than the size of items expected.
Unless you _need_ to store the items in a message box, I would just sent the individual groups.
thanks for the replies, it needs to go to a message box so your solutions are perfect. :)