[L2Ork-dev] list cat

Ivica Ico Bukvic ico at vt.edu
Sun May 12 22:34:06 EDT 2019


On 5/10/2019 5:16 PM, Jonathan Wilkes wrote:
> On Fri, May 10, 2019 at 1:38 PM Ivica Bukvic <ico at vt.edu> wrote:
>> My understanding is if something has only one argument, at least in pd-l2ork, it should be reformatted as a single argument rather than a list. Otherwise handling outputted arguments becomes inconsistent and problematic. Also, remember when you start adding arguments into an empty list cat, the first argument added will be just an argument until another one is added at which point it becomes a list.
> I'm not sure I understand. Do you have an example?

Thinking here off top my head. Have list cat and add into it a single 
arg (e.g. "blah"). It should output "blah" on bang or whatever triggers 
output, as opposed to "list blah".

Best,

Ico


>
> -Jonathan
>
>> Best,
>>
>> Ico
>>
>> --
>> Ivica Ico Bukvic, D.M.A.
>> Director, Creativity + Innovation
>> Institute for Creativity, Arts, and Technology
>>
>> Virginia Tech
>> Creative Technologies in Music
>> School of Performing Arts – 0141
>> Blacksburg, VA 24061
>> (540) 231-6139
>> ico at vt.edu
>>
>> www.icat.vt.edu
>> www.performingarts.vt.edu
>> l2ork.icat.vt.edu
>> ico.bukvic.net
>>
>> On Fri, May 10, 2019, 13:31 Jonathan Wilkes <jon.w.wilkes at gmail.com> wrote:
>>> Oh, I was under the impression that [list cat] was supposed to always
>>> output a list. Is that incorrect?
>>>
>>> -Jonathan
>>>
>>> On Fri, May 10, 2019 at 8:43 AM Ivica Ico Bukvic <ico at vt.edu> wrote:
>>>> Thank you, Jonathan.
>>>>
>>>> I am not recalling exactly why other than perhaps if you go with
>>>> alist_list with a single argument, you may end-up being stuck with a
>>>> "list something" output which is not as useful as simply "something".
>>>> That said, I may be misremembering how the alist_list works.
>>>>
>>>> Thanks for catching double-free error.
>>>>
>>>> Best,
>>>>
>>>> Ico
>>>>
>>>> On 5/9/2019 11:33 PM, Jonathan Wilkes wrote:
>>>>> Hi Ico,
>>>>>
>>>>> I've got a fix for a double-free error in [list cat] when you send
>>>>> multiple "clear" messages to the right inlet:
>>>>>
>>>>> https://git.purrdata.net/jwilkes/purr-data/pipelines/1540
>>>>>
>>>>> Also-- why did you have that conditional for alist_anything in here:
>>>>>
>>>>> https://git.purrdata.net/jwilkes/purr-data/commit/28c38c1fe76be3a6592c5a5b10124fba0419752b
>>>>>
>>>>> It causes an off-by-one error if you send two anythings in a row as input.
>>>>>
>>>>> Best,
>>>>> Jonathan
>>>>> _______________________________________________
>>>>> L2Ork-dev mailing list
>>>>> L2Ork-dev at disis.music.vt.edu
>>>>> https://disis.music.vt.edu/listinfo/l2ork-dev
>>>> --
>>>> Ivica Ico Bukvic, D.M.A.
>>>> Director, Creativity + Innovation
>>>> Institute for Creativity, Arts, and Technology
>>>>
>>>> Virginia Tech
>>>> Creative Technologies in Music
>>>> School of Performing Arts – 0141
>>>> Blacksburg, VA 24061
>>>> (540) 231-6139
>>>> ico at vt.edu
>>>>
>>>> www.icat.vt.edu
>>>> www.performingarts.vt.edu
>>>> l2ork.icat.vt.edu
>>>> ico.bukvic.net
>>>>
>>>> _______________________________________________
>>>> L2Ork-dev mailing list
>>>> L2Ork-dev at disis.music.vt.edu
>>>> https://disis.music.vt.edu/listinfo/l2ork-dev
>>> _______________________________________________
>>> L2Ork-dev mailing list
>>> L2Ork-dev at disis.music.vt.edu
>>> https://disis.music.vt.edu/listinfo/l2ork-dev
>> _______________________________________________
>> L2Ork-dev mailing list
>> L2Ork-dev at disis.music.vt.edu
>> https://disis.music.vt.edu/listinfo/l2ork-dev
> _______________________________________________
> L2Ork-dev mailing list
> L2Ork-dev at disis.music.vt.edu
> https://disis.music.vt.edu/listinfo/l2ork-dev

-- 
Ivica Ico Bukvic, D.M.A.
Director, Creativity + Innovation
Institute for Creativity, Arts, and Technology

Virginia Tech
Creative Technologies in Music
School of Performing Arts – 0141
Blacksburg, VA 24061
(540) 231-6139
ico at vt.edu

www.icat.vt.edu
www.performingarts.vt.edu
l2ork.icat.vt.edu
ico.bukvic.net



More information about the L2Ork-dev mailing list