brackets instead of parentheses

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
einbahnstrasse
Posts: 16
Joined: Wed Jul 17, 2013 5:42 pm

brackets instead of parentheses

Post by einbahnstrasse » Fri Jul 05, 2019 9:01 am

Hello team, bach community, fam...

As usual bach is working great. One problem came up recently, though. When writing a text file from a bach.roll (using the "writetxt" command) has anybody else gotten erroneous [brackets] instead of the usual syntax with parentheses ? Sometimes and for no apparent reason it will write a text file with all brackets instead of parentheses. Once this has been discovered it's a simple find/replace in a text editor, but it's nevertheless a few unnecessary steps and I can't seem to locate the cause of this behavior, or to reliably reproduce it.

To be sure, I'm running bach 0.8.0.1b (bleeding edge) in Max 8.0.3 on OSX Mojave 10.14.3.

Thanks in advance for any insights ! —
Louis

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: brackets instead of parentheses

Post by danieleghisi » Fri Jul 05, 2019 11:54 am

Hi Louis,

since bach 0.8 (and especially with the forthcoming 0.8.1), brackets are actually the default list delimiter.
Don't worry: parentheses are still very much supported, but they are no longer the default textual output (neither bach.print nor bach.write). However there's a simple way to save the llll with parens in your case: use [bach.write @parens 1]. Symmetrically, you have [bach.textout] with the same attribute.

We have very good reasons to transition to square brackets; to know more please go to
Extras > bach.overview > What's new > Lllls have square brackets!

Hope this helps,
Daniele

Post Reply