Forums > Javascript

pattr client internal data structuring

September 5, 2006 | 9:29 am

I’m exposing the internal data of a js built sequencer to pattr. It consists
of multiple note an cc patterns. Right now I combine all data into one big
pile, making it unreadable when viewing the pattr xml file. I like to
somehow expose the data to pattr in a way that it’s stored in different xml
nodes. Each sequence its own node for example. I suspect it isn’t possible
because you’ll need to separate the data into different pattr clients to
structure the xml file. Any suggestions? Maybe a nice feature for a future
release? I will eventually port the thing to C, so if something like this is
possible using the sdk that would be helpful too.

-thijs


September 5, 2006 | 11:54 am

At this time, there’s no method for creating structured data for
pattr from a single object. I agree that this would be a nice
feature, though.

jb

Am 05.09.2006 um 11:29 schrieb Thijs Koerselman:

> I’m exposing the internal data of a js built sequencer to pattr. It
> consists
> of multiple note an cc patterns. Right now I combine all data into
> one big
> pile, making it unreadable when viewing the pattr xml file. I like to
> somehow expose the data to pattr in a way that it’s stored in
> different xml
> nodes. Each sequence its own node for example. I suspect it isn’t
> possible
> because you’ll need to separate the data into different pattr
> clients to
> structure the xml file. Any suggestions? Maybe a nice feature for a
> future
> release? I will eventually port the thing to C, so if something
> like this is
> possible using the sdk that would be helpful too.
>
> -thijs


September 5, 2006 | 12:03 pm

Or you could define attributes in your JS object, and use an
autopattr in greedy mode to suck them all out.

jb

Am 05.09.2006 um 13:54 schrieb Jeremy Bernstein:

> At this time, there’s no method for creating structured data for
> pattr from a single object. I agree that this would be a nice
> feature, though.
>
> jb
>
> Am 05.09.2006 um 11:29 schrieb Thijs Koerselman:
>
>> I’m exposing the internal data of a js built sequencer to pattr.
>> It consists
>> of multiple note an cc patterns. Right now I combine all data into
>> one big
>> pile, making it unreadable when viewing the pattr xml file. I like to
>> somehow expose the data to pattr in a way that it’s stored in
>> different xml
>> nodes. Each sequence its own node for example. I suspect it isn’t
>> possible
>> because you’ll need to separate the data into different pattr
>> clients to
>> structure the xml file. Any suggestions? Maybe a nice feature for
>> a future
>> release? I will eventually port the thing to C, so if something
>> like this is
>> possible using the sdk that would be helpful too.
>>
>> -thijs
>


September 5, 2006 | 1:33 pm

Thanks Jeremy, I’ll look into using attributes for this.

best, -thijs

On 9/5/06, Jeremy Bernstein wrote:
>
> Or you could define attributes in your JS object, and use an
> autopattr in greedy mode to suck them all out.
>
> jb
>
> Am 05.09.2006 um 13:54 schrieb Jeremy Bernstein:
>
> > At this time, there’s no method for creating structured data for
> > pattr from a single object. I agree that this would be a nice
> > feature, though.
> >
> > jb
> >
>
>


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