Tab object

Jul 19, 2008 at 1:14pm

Tab object

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!

#38943
Jul 19, 2008 at 1:22pm

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. –
#136310
Jul 19, 2008 at 9:14pm

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. –

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

#136311
Jul 19, 2008 at 9:24pm

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

#136312
Jul 19, 2008 at 9:45pm

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
>
>

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

#136313
Jul 19, 2008 at 10:00pm

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

#136314
Jul 19, 2008 at 10:07pm

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. –
#136315
Jul 19, 2008 at 10:26pm

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

#136316
Jul 19, 2008 at 10:43pm

oops

yes you are right, “zlclear”

merci l’ami ;-)

here it is now:

– Pasted Max Patch, click to expand. –
#136317

You must be logged in to reply to this topic.