Bell: Concatenate

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
sydy
Posts: 156
Joined: Tue Mar 21, 2017 1:34 pm

Bell: Concatenate

Post by sydy » Thu Aug 04, 2022 2:50 pm

is there a way to concatenate a symbol with a number?

I tried like this but is doesn't work:
'voice'+$number

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

Re: Bell: Concatenate

Post by danieleghisi » Sun Aug 07, 2022 10:45 am

I don't think so, but +1 for me. I've also been craving for that for quite some time :-)
What would be needed is some sort of str() or format() function, I guess, but Andrea is the one to answer about bell ;)

sydy
Posts: 156
Joined: Tue Mar 21, 2017 1:34 pm

Re: Bell: Concatenate

Post by sydy » Mon Aug 08, 2022 9:59 am

:)
(Actually I think I remember now that I already asked this about two years ago...)

Yes, it's really needed. I often need strings and converting llll to txt and then writing symbols is bad because it fills up the max symbol table and when you have many thousands of them it can become a problem. Also it really diminishes the power of bach.eval as in many cases you'll need more than one patch.

Post Reply