Working with Lisp lists

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
jmdbrady
Posts: 12
Joined: Sat May 06, 2017 4:52 pm

Working with Lisp lists

Post by jmdbrady » Sat May 06, 2017 5:19 pm

Hi,

I'm working with maxlispj from Brad Garton and I get very good results with single lists coming out of it. The compatibility is perfect with any bach objects.
The problem is now about double lists like this one: ((587.3295 1479.9777) (466.16376 1479.9777) (466.16376 932.3275))
This is a list of 3 chords expressed in Hz coming out of a short program in maxlispj.
None of the bach objects I tried recognize it as list of lists. When I check for its depth, 1 is return instead of 3.
Furthermore, when I send it to a Max message it is represented with quotes witch is not the case in the Max window.

How can I convert, if it is possible, this Lisp list to a IIII?

Thanks for any help.

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

Re: Working with Lisp lists

Post by danieleghisi » Sat May 06, 2017 8:38 pm

I'm not really familiar with the maxlispj package, but could you provide a patch snippet showing the issue?
My guess is that the package outputs a single long symbol, so you could maybe try to put a "fromsymbol" object before giving it to the first bach object?

Let me know if that helps.
d

jmdbrady
Posts: 12
Joined: Sat May 06, 2017 4:52 pm

Re: Working with Lisp lists

Post by jmdbrady » Sat May 06, 2017 9:08 pm

Thank you very much Daniele, you put me on the way, "from symbol" solved my issue.

And bravo for your great package which is what everyone expected on Max. It really fit my expectations at least.

All the best.

JMD

Post Reply