Manual conversion of a PD patch in Max/MSP

ccunha's icon

Hello,

I must to convert a PD patch in Max/MSP but I have a problem...

In Max/MSP, if an object's outlet is connected to several destinations, corresponding messages are always sent in right-to-left screen order. But in Pd, the messages are sent in the order you made the connections in.

How then I do to know the order in which objects were placed?

Thanks a lot!!!

Claudio Cunha

Online

sfogar's icon

Hi,

I think you could look at the pd file, opening it as a text file.

Ask on the pd mailing list ... ;-)

All the best

--
Alessandro Fogar

2007/9/24, Cunha Claudio :
>
> Hello,
>
> I must to convert a PD patch in Max/MSP but I have a problem...
>
> In Max/MSP, if an object's outlet is connected to several destinations, corresponding messages are always sent in right-to-left screen order. But in Pd, the messages are sent in the order you made the connections in.
>
> How then I do to know the order in which objects were placed?
>
> Thanks a lot!!!
>
>
> Claudio Cunha
>
> Online
>
> --
> C.Cunha
>

ccunha's icon

But, I have opened the file in text and I don't see where is the order of the objects.

Can you give me more precise details?

Thanks for have to reply me...

Claudio Cunha

sfogar's icon

Claudio,

no, sorry, I don't know, I think you should ask this question on the
pd mailing list.

All the best

--
Alessandro Fogar

2007/9/24, Cunha Claudio :
>
> But, I have opened the file in text and I don't see where is the order of the objects.
>
> Can you give me more precise details?
>
> Thanks for have to reply me...
>
>
> Claudio Cunha
> --
> C.Cunha
>

Wetterberg's icon

Cunha Claudio skrev:
> In Max/MSP, if an object's outlet is connected to several destinations, corresponding messages are always sent in right-to-left screen order. But in Pd, the messages are sent in the order you made the connections in.
>
> How then I do to know the order in which objects were placed?
Gulp,
that's a mighty interesting question there!

I'd love to know the answer too.

Andreas.

ccunha's icon

ok, thanks a lot...

Anyone have an other idea?

julien breval's icon

In a serious patch, if an outlet is directly connected to several things, then the execution order is not supposed to be important.

If the order is important, there should be something like [trigger] or [unpack] for making the connection.

Stefan Tiedje's icon

Cunha Claudio schrieb:
> Hello,
>
> I must to convert a PD patch in Max/MSP but I have a problem...
>
> In Max/MSP, if an object's outlet is connected to several
> destinations, corresponding messages are always sent in right-to-left
> screen order. But in Pd, the messages are sent in the order you made
> the connections in.
>
> How then I do to know the order in which objects were placed?

You should just understand what the order should be... ;-)
Officially there is no order in Pd, if you want an order in Pd you have
to place a trigger object. Just assume the order isn't important if
there is no trigger.
It's a good advice also for Max programmers to always place a trigger
object if the order matters... For Pd programmers it's a must...

So you don't have a problem, you would have a (easy solvable) problem,
if you'd need to convert the other way around...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

Stefan Tiedje's icon

Andreas Wetterberg schrieb:
> Cunha Claudio skrev:
>> How then I do to know the order in which objects were placed?
> Gulp,
> that's a mighty interesting question there!
>
> I'd love to know the answer too.

The text format of Max and Pd is pretty similar. In Max the objects
placed last, appear first. I think in Pd it's the same...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

jaime.oliver2's icon

also, if it gets really big/ugly and don't know what is happening
first you can use the trace function in max.

it has also happened to me that the right to left order gets buggy and
the trace object helps see the order to correct it.

I agree trigger is the best way.

j

On 9/28/07, Stefan Tiedje wrote:
> Andreas Wetterberg schrieb:
> > Cunha Claudio skrev:
> >> How then I do to know the order in which objects were placed?
> > Gulp,
> > that's a mighty interesting question there!
> >
> > I'd love to know the answer too.
>
> The text format of Max and Pd is pretty similar. In Max the objects
> placed last, appear first. I think in Pd it's the same...
>
> Stefan
>
> --
> Stefan Tiedje------------x-------
> --_____-----------|--------------
> --(_|_ ----|-----|-----()-------
> -- _|_)----|-----()--------------
> ----------()--------www.ccmix.com
>
>
>

--
Jaime E Oliver LR

joliverl@ucsd.edu
www.realidadvisual.org/jaimeoliver
www-crca.ucsd.edu/
www.realidadvisual.org

9168 Regents Rd. Apt. G
La Jolla, CA 92037
USA