Forums > MaxMSP

Conversion in Max/MSP

October 5, 2007 | 12:38 pm

Hello,

I must convert a PD file in a Max/MSP file…
There are objects where I don’t find correspondence under Max/MSP.

Somebody knows it which are the objects max which represents:

tabread4~
tabosc4~
tabwrite~
delread~
delwrite~
hip~
samphold~
wrap~
noisi~
graph

Thanks a lot !!!


October 5, 2007 | 12:49 pm

Hello,

I have a PD patch and I must do it in Max/MSP but any objects have not correspondence in Max/MSP.

Can you help me… In attachment I put the PD patch…

Thanks a lot !


October 5, 2007 | 7:18 pm

Some Pd —> Max/MSP conversions (maybe with errors)

tabread4~ —> play~, (also groove~, wave~ or similar things)
tabosc4~ —> wave~ (probably)
tabwrite~ —> record~
delread~ —> tapin~
delwrite~ —> tapout~
hip~ —> see the HP filter thread (also biquad~ and filtercoeff~, and many others)
samphold~ —> sah~ (works differently in Max, I prefer the Pd style)
wrap~ —> don’t remember
noisi~ —> does not exist in Pd
graph —> ?


October 9, 2007 | 3:28 pm

Ok thanks a lot!

Do you know the conversion Max/MSP of SOUNDFILER and an other possibility to convert in Max/MSP a tabwrite~, tabread~ and tabosc4 ?

Best regards…


October 9, 2007 | 5:04 pm

I think the soundfiler is Pd-specific. FIle operation in Max may be done with buffer~ (or maybe similar objects): see the help file of buffer~ and the manual (you can do more or less the same things as the Pd soundfiler).

tabXXX~ can (also) be replaced by index~ (warning, no interpolation at all so it’s not good for the tabread4~) but why not use play~, wave~ or groove~ ?


October 10, 2007 | 1:00 pm

Hello Julien,

I don’t can use these objects (play~ groove~ wave~) because in my PD patch tabread4~, tabwrite~ and tabosc4~ write or read in a array…
With play~, groove~ and wave~ we use a buffer…

Do you know how to do for using an array?

Thanks…


October 14, 2007 | 11:18 am

Cunha Claudio schrieb:
> Somebody knows it which are the objects max which represents:
>
> tabread4~

#P inlet 54 65 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 54 133 67 196617 sampstoms~;
#P outlet 54 188 15 0;
#P newex 54 161 121 196617 play~ $1;
#P message 54 112 41 196617 signal;
#P newex 54 88 78 196617 route signal;
#P connect 5 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 4 0;
#P fasten 0 1 2 0 127 154 59 154;
#P connect 4 0 2 0;
#P connect 2 0 3 0;
#P window clipboard copycount 6;

> tabosc4~

cycle~ (can be replaced directly…)

> tabwrite~

#P outlet 47 195 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 136 137 21 196617 t 0;
#P newex 102 137 21 196617 t 1;
#P newex 102 115 79 196617 route bang stop;
#P newex 47 171 100 196617 record~ $1 $2;
#P inlet 47 71 15 0;
#P message 47 115 41 196617 signal;
#P newex 47 91 65 196617 route signal;
#P connect 2 0 0 0;
#P connect 0 0 1 0;
#P connect 1 0 3 0;
#P fasten 6 0 3 0 141 164 52 164;
#P fasten 5 0 3 0 107 164 52 164;
#P fasten 4 2 3 0 175 164 52 164;
#P connect 3 0 7 0;
#P connect 0 1 4 0;
#P connect 4 0 5 0;
#P connect 4 1 6 0;
#P window clipboard copycount 8;

> delread~

#P inlet 49 85 15 0;
#P outlet 69 139 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 69 86 101 196617 r $1;
#P newex 69 109 101 196617 tapout~ $2;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 3 0 0 0;
#P window clipboard copycount 4;

> delwrite~

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 62 133 50 196617 s $1;
#P inlet 62 79 15 0;
#P newex 62 102 101 196617 tapin~ $2;
#P connect 0 0 2 0;
#P connect 1 0 0 0;
#P window clipboard copycount 3;

> hip~

#N comlet (signal) filter output;
#P outlet 41 134 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 41 110 24 196617 -~;
#P inlet 137 56 15 0;
#P inlet 41 52 15 0;
#P newex 55 79 92 196617 onepole~ $1;
#P connect 2 0 0 1;
#P connect 0 0 3 1;
#P connect 1 0 3 0;
#P connect 1 0 0 0;
#P connect 3 0 4 0;
#P window clipboard copycount 5;

> samphold~

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 12 141 32 196617 >~ -1;
#P newex 12 189 42 196617 gate~;
#P outlet 85 216 15 0;
#P inlet 44 88 15 0;
#P inlet 85 88 15 0;
#P newex 44 166 37 196617 sah~;
#P newex 85 166 55 196617 gate~;
#P newex 85 141 46 196617 ==~ -1;
#P newex 85 113 46 196617 change~;
#P connect 5 0 3 0;
#P fasten 5 0 2 1 49 108 135 108;
#P connect 2 0 6 0;
#P fasten 7 0 6 0 17 211 90 211;
#P connect 1 0 3 1;
#P connect 1 0 2 0;
#P fasten 0 0 8 0 90 135 17 135;
#P connect 0 0 1 0;
#P connect 4 0 0 0;
#P connect 3 0 7 1;
#P connect 8 0 7 0;
#P window clipboard copycount 9;

> wrap~

[%~ 1.]

> noisi~

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 69 93 50 196617 sig~ -0.5;
#P newex 176 114 66 196617 mstosamps~;
#P newex 138 65 71 196617 patcherargs;
#P message 232 136 50 196617 ramp $1;
#P newex 176 93 50 196617 !/ 1000.;
#P inlet 121 65 15 0;
#P outlet 58 188 15 0;
#P newex 58 162 73 196617 rampsmooth~;
#P newex 58 72 42 196617 noise~;
#P newex 58 138 73 196617 sah~;
#P newex 121 93 50 196617 phasor~;
#P connect 9 1 7 0;
#P connect 6 0 9 0;
#P fasten 5 0 6 0 126 88 181 88;
#P fasten 8 0 0 0 143 88 126 88;
#P fasten 8 0 6 0 143 88 181 88;
#P connect 0 0 1 1;
#P fasten 10 0 1 1 74 126 126 126;
#P connect 5 0 0 0;
#P connect 3 0 4 0;
#P fasten 7 0 3 0 237 158 63 158;
#P connect 1 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 11;

> graph

waveform~

> Thanks a lot !!!

Thanks for the suggestion to include them into my Pd abhaXions… ;-)


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


October 14, 2007 | 11:33 am

Cunha Claudio schrieb:
> I don’t can use these objects (play~ groove~ wave~) because in my PD
> patch tabread4~, tabwrite~ and tabosc4~ write or read in a array…
> With play~, groove~ and wave~ we use a buffer…
>
> Do you know how to do for using an array?

array is just another name for buffer~ (or the other way around for the
Pd perspective… ;-)

You won’t get far, if you don’t understand the underlying principles…

see my other post with examples…

Stefan


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


October 14, 2007 | 11:39 am

Quote: ccunha wrote on Wed, 10 October 2007 15:00
—————————————————-
> I don’t can use these objects (play~ groove~ wave~) because in my PD patch tabread4~, tabwrite~ and tabosc4~ write or read in a array…
> With play~, groove~ and wave~ we use a buffer…
>
> Do you know how to do for using an array?
>
>
> Thanks…
—————————————————-

In Pd, you use the same kind of data structure ("array" or "table") for storing both signals AND messages.

In Max, "buffer~" is one equivalent to the Pd "array" for signals and "table", "multislider" or such are equivalents for messages. That said, you can use "buffer~" like the Pd "array" thanks to the "peek~" and "poke~" objects ("index~" also)


October 17, 2007 | 12:32 pm

thanks to all for your help…

Hello Stephan Tiedje,

I use your patches for tabread4, tabwrite, etc and I have a problem. In the window max I have the messages :
– #N: bad arguments for the message "record~" -
– #N: bad arguments for the message "play~" –
– #N: bad arguments for the message "r" –
– #N: bad arguments for the message "s".

Is this an error ? And how to do for remove this error?

Could you help me please…

Thanks a lot and best regards.


October 17, 2007 | 1:29 pm

Hello Stephan,

I have seen that the problem comes because I use subpatches in subpatches but I don’t know how to do to resolve this problem…

Could you help me please….?


October 17, 2007 | 3:43 pm

That is ok…

I’ve resolved the problem.



Jan
January 14, 2012 | 2:15 pm

here are some pd-filters ported to Max by barry threw:

http://www.barrythrew.com/2008/03/28/maxmsp-raw-filter-pack/

(despite to the text on the site: the .zip contains Mac AND windows-compiled externals!)


April 22, 2013 | 12:37 pm

Hi. It will be very nice if somebody could help me with analog to PD’s wrap~


April 22, 2013 | 12:49 pm

see Stefan Tiedje’s post :

> wrap~

[%~ 1.]

also, if you dosomething with gen~, there’s a [wrap] operator.


April 22, 2013 | 1:03 pm

Oh thanks )) Becoming a little bit blind with time ))



ak
April 22, 2013 | 6:01 pm

> [%~ 1.]

keep in mind it works different for negative numbers

the closest to the pd’s [warp~] is [pong~ 1 0 1]


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