Forums > MaxMSP

ubumenu values and pattrstorage

January 22, 2007 | 7:01 pm

hi-

it seems that the ubumenu randomly decides what to send as a value to pattrstorage (for xml file) when it is named…sometimes it sends its index and sometimes the evaluated menu item…any thoughts on how to choose one or the other?

best
brian


January 22, 2007 | 7:31 pm

On 22 janv. 07, at 20:01, Brian_Knoth wrote:

> it seems that the ubumenu randomly decides what to send as a value
> to pattrstorage (for xml file) when it is named…sometimes it
> sends its index and sometimes the evaluated menu item…any
> thoughts on how to choose one or the other?

The reference manual says:
The word pattrmode, followed by a 0 or 1, sets the method used by the
ubumenu object to report its internal state to the pattr object. When
the
argument is 0 (default), the ubumenu reports its internal state by
number
(e.g. item 3 of the list of items). When the argument is 1, the ubumenu
reports its internal state by symbol (e.g. item ‘carrots’ of the list
of items).

Cheers,
ej


January 22, 2007 | 7:51 pm

sorry, should have looked.

thanks much,

b


January 22, 2007 | 8:00 pm

On 22-janv.-07, at 20:31, Emmanuel Jourdan wrote:

> On 22 janv. 07, at 20:01, Brian_Knoth wrote:
>
>> it seems that the ubumenu randomly decides what to send as a value to
>> pattrstorage (for xml file) when it is named…sometimes it sends its
>> index and sometimes the evaluated menu item…any thoughts on how to
>> choose one or the other?
>
> The reference manual says:
> The word pattrmode, followed by a 0 or 1, sets the method used by the
> ubumenu object to report its internal state to the pattr object. When
> the
> argument is 0 (default), the ubumenu reports its internal state by
> number
> (e.g. item 3 of the list of items). When the argument is 1, the ubumenu
> reports its internal state by symbol (e.g. item ‘carrots’ of the list
> of items).

But without sending any "pattrmode" message, [ubumenu]‘s behavior is
indeed not consistent. I’d prefer a stable default value. Unfortunately
I couldn’t find a repeatable procedure to show this.

p



f.e
January 23, 2007 | 10:31 am

Emmanuel, is this new in 4.6 ? because i could not find it in 4.5.7…

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|

Emmanuel Jourdan wrote:
> On 22 janv. 07, at 20:01, Brian_Knoth wrote:
>
>> it seems that the ubumenu randomly decides what to send as a value to
>> pattrstorage (for xml file) when it is named…sometimes it sends its
>> index and sometimes the evaluated menu item…any thoughts on how to
>> choose one or the other?
>
> The reference manual says:
> The word pattrmode, followed by a 0 or 1, sets the method used by the
> ubumenu object to report its internal state to the pattr object. When the
> argument is 0 (default), the ubumenu reports its internal state by number
> (e.g. item 3 of the list of items). When the argument is 1, the ubumenu
> reports its internal state by symbol (e.g. item ‘carrots’ of the list
> of items).
>
> Cheers,
> ej
>



f.e
January 23, 2007 | 10:33 am

Forget it, sorry for the noise. Not in the help file but p365 of the manual.

f.e

f.e chanfrault | aka | personal computer music
> >>>>>> http://www.personal-computer-music.com
> >>>>>> |sublime music for a desperate people|

Patrick Delges wrote:
>
> On 22-janv.-07, at 20:31, Emmanuel Jourdan wrote:
>
>> On 22 janv. 07, at 20:01, Brian_Knoth wrote:
>>
>>> it seems that the ubumenu randomly decides what to send as a value
>>> to pattrstorage (for xml file) when it is named…sometimes it sends
>>> its index and sometimes the evaluated menu item…any thoughts on
>>> how to choose one or the other?
>>
>> The reference manual says:
>> The word pattrmode, followed by a 0 or 1, sets the method used by the
>> ubumenu object to report its internal state to the pattr object. When
>> the
>> argument is 0 (default), the ubumenu reports its internal state by
>> number
>> (e.g. item 3 of the list of items). When the argument is 1, the ubumenu
>> reports its internal state by symbol (e.g. item ‘carrots’ of the list
>> of items).
>
> But without sending any "pattrmode" message, [ubumenu]‘s behavior is
> indeed not consistent. I’d prefer a stable default value.
> Unfortunately I couldn’t find a repeatable procedure to show this.
>
> p
>
>


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