quotes for addslot message

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
michelez
Posts: 44
Joined: Mon Feb 16, 2015 7:45 pm

quotes for addslot message

Post by michelez » Fri Nov 03, 2017 9:09 pm

I am formatting addslot messages dynamically, the problem is that my slots are named rather than just using indexes ("band fm" for instance) and I can't seem to find a way to format the message addlsot( "band fm" (0. 0. 0.) (0.2 50 0.) etc.)). I used [tosymbol @separator " "]which works fine in max messages but when I do the wrapping and bach.append 'ing it all goes back to quoteless.

I looked at this thread but still could not figure it out.

forum/viewtopic.php?f=2&t=508&p=1880&hi ... otes#p1880

michelez
Posts: 44
Joined: Mon Feb 16, 2015 7:45 pm

Re: quotes for addslot message

Post by michelez » Fri Nov 03, 2017 11:14 pm

I fixed the quote issue by having the @out t on so that I can retain the quotes. Still curious if there is a better way to do this...

andreaagostini
Posts: 209
Joined: Fri Dec 03, 2010 1:51 pm

Re: quotes for addslot message

Post by andreaagostini » Sat Nov 04, 2017 10:49 am

Hi,
thanks for your report. We're actually in the process of rethinking the whole backtick mechanism for bach 0.8, and real-life cases such as yours are precious for figuring out what is needed.
So stay tuned...
andrea

michelez
Posts: 44
Joined: Mon Feb 16, 2015 7:45 pm

Re: quotes for addslot message

Post by michelez » Sat Nov 04, 2017 4:14 pm

Ok, I understand. It seems that the whole issue of string formatting in max is confusing with so many objects doing similar things in different ways (combine, sprintf, regexp,etc). Thank you for your good work

Post Reply