Forums > MaxMSP

Tab object

July 19, 2008 | 1:14 pm

Hi all,

Can anyone help with a problem I’m having with the tab object.

I want to use the [folder] object to list the contents of a folder in the [tab] object. I know that using the ‘tabs’ attribute allows me to write in directly via the patcher window but I need this to be a list and when I use [zl group] it puts ‘append’ after each entry and I need to specify the list length which I will not know until the [folder] object tells me via the right outlet. I have used [zl filter] to get read of the append messages from [zl group] but I am still having trouble.

I am basically going around in circles now so if anyone has any ideas I would be grateful.

Cheers,

Danny

p.s. I know this has not many real advantages over using the [umenu] object instead but I’ve spent a while doing this and I want to get it to work!


July 19, 2008 | 1:22 pm

On 19 juil. 08, at 15:14, Danny wrote:

> Hi all,
>
> Can anyone help with a problem I’m having with the tab object.
>
> I want to use the [folder] object to list the contents of a folder
> in the [tab] object. I know that using the ‘tabs’ attribute allows
> me to write in directly via the patcher window but I need this to be
> a list and when I use [zl group] it puts ‘append’ after each entry
> and I need to specify the list length which I will not know until
> the [folder] object tells me via the right outlet. I have used [zl
> filter] to get read of the append messages from [zl group] but I am
> still having trouble.

Instead of filtering afterward, you might want to filter before
grouping.

ej

– Pasted Max Patch, click to expand. –

July 19, 2008 | 9:14 pm

hi Emmanuel,

smart patch !
but something bugs me:

how [zl group] does its job if you don’t give it the list size?
The reference manual says:
"group:takes an additional number argument wish specifies the size"

what am I missing?

Thanks a lot

Olivier

Quote: Emmanuel Jourdan wrote on Sat, 19 July 2008 15:22
—————————————————-
> On 19 juil. 08, at 15:14, Danny wrote:
>
> > Hi all,
> >
> > Can anyone help with a problem I’m having with the tab object.
> >
> > I want to use the [folder] object to list the contents of a folder
> > in the [tab] object. I know that using the ‘tabs’ attribute allows
> > me to write in directly via the patcher window but I need this to be
> > a list and when I use [zl group] it puts ‘append’ after each entry
> > and I need to specify the list length which I will not know until
> > the [folder] object tells me via the right outlet. I have used [zl
> > filter] to get read of the append messages from [zl group] but I am
> > still having trouble.
>
>
> Instead of filtering afterward, you might want to filter before
> grouping.
>
> ej
>
>

– Pasted Max Patch, click to expand. –

>
>
—————————————————-


July 19, 2008 | 9:24 pm

On 19 juil. 08, at 23:14, Olivier Sebillotte wrote:

> hi Emmanuel,
>
> smart patch !
> but something bugs me:
>
> how [zl group] does its job if you don’t give it the list size?
> The reference manual says:
> "group:takes an additional number argument wish specifies the size"

By default zl group wait for 256 items, when the bang arrives, it
outputs a list which have the size of the number of items received by
the objet since the last output. Does that make sense?

ej


July 19, 2008 | 9:45 pm

sure it makes sense now !

this is very helpful because til now I’d use [thresh] to make a list from a data flow ( [sxformat ] output ).
But it is risky because [thresh] uses a time based trigger, who knows what could happend in a patcher…
But sending a bang to [zl group], I know how to make this happen exactly when I want.

thanks again Emmanuel,

Quote: Emmanuel Jourdan wrote on Sat, 19 July 2008 23:24
—————————————————-

> By default zl group wait for 256 items, when the bang arrives, it
> outputs a list which have the size of the number of items received by
> the objet since the last output. Does that make sense?
>
> ej
>
>

—————————————————-


July 19, 2008 | 10:00 pm

On 19 juil. 08, at 23:45, Olivier Sebillotte wrote:

> sure it makes sense now !
>
> this is very helpful because til now I’d use [thresh] to make a list
> from a data flow ( [sxformat ] output ).
> But it is risky because [thresh] uses a time based trigger, who know
> what could happend in a patcher…
> But sending a bang to [zl group], I know how to make this happen
> exactly when I want.

Oh yeah, thresh is bad (for non time based operation). There’s a
couple of examples in thresh’s help file.

ej


July 19, 2008 | 10:07 pm

Thanks for the tip.

BTW, here is my little tool to fill a coll with sysex

Tell me if somthing bugs you or could be enhanced:

– Pasted Max Patch, click to expand. –

July 19, 2008 | 10:26 pm

On 20 juil. 08, at 00:07, Olivier Sebillotte wrote:

> Thanks for the tip.
>
> BTW, here is my little tool to fill a coll with sysex
>
> Tell me if somthing bugs you or could be enhanced:

zlclear message instead of clear, non?

ej


July 19, 2008 | 10:43 pm

oops

yes you are right, "zlclear"

merci l’ami ;-)

here it is now:

– Pasted Max Patch, click to expand. –

Viewing 9 posts - 1 through 9 (of 9 total)