convert bach llll to list

Ko Sv's icon

what is the proper way of converting bach list type to a common list?

andrea agostini's icon

Use [bach.portal @out t] to get the llll as it is, which may or may not be useful in Max as you potentially have pairs of parens everywhere marking the sublists. The parens don't bother Max, but mean nothing to him, so they might bother you ;)

You have plenty of options for retrieving the sublists themselves and pass them to Max objects as individual lists or elements, which is probably what you want if you're working with bach.partition, but you should look at the bach documentation for this. There are several tutorials coming with the bach package, and you probably want to look at "Hello world" and "Iterations".

Hope this helps,
aa

Ko Sv's icon

many thanks! again! :)
cheers!

Roman Thilenius's icon

you could use atoi / itoa conversion to replace "(" with "0" and ")" with "space".

Roman Thilenius's icon


or not even that...

bachkiller bach2human bach2earth

Roman Thilenius's icon

oh, damned ^^...

Roman Thilenius's icon


so back to version 1 with atoi - which i already deleted before checking version 2.

first-test-then-post partitions bach

Ko Sv's icon

@ROMAN many thanks! it looks so tricky :)

andrea agostini's icon

I'd do it this way...

Max Patch
Copy patch and select New From Clipboard in Max.

... but I still prefer this:

Max Patch
Copy patch and select New From Clipboard in Max.

;)

Ko Sv's icon

@ANDREA this is nice and simple! actually the () are really handy in many situations! and it is a good design you've choosen for the bach lib! thanks for that! :)