Conversion in Max/MSP

ccunha's icon

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

ccunha's icon

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 !

julien breval's icon

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

ccunha's icon

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

julien breval's icon

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

ccunha's icon

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

Stefan Tiedje's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

> tabosc4~

cycle~ (can be replaced directly...)

> tabwrite~

Max Patch
Copy patch and select New From Clipboard in Max.

> delread~

Max Patch
Copy patch and select New From Clipboard in Max.

> delwrite~

Max Patch
Copy patch and select New From Clipboard in Max.

> hip~

Max Patch
Copy patch and select New From Clipboard in Max.

> samphold~

Max Patch
Copy patch and select New From Clipboard in Max.

> wrap~

[%~ 1.]

> noisi~

Max Patch
Copy patch and select New From Clipboard in Max.

> graph

waveform~

> Thanks a lot !!!

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

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

Stefan Tiedje's icon

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

julien breval's icon

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)

ccunha's icon

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.

ccunha's icon

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

ccunha's icon

That is ok...

I've resolved the problem.

Jan M's icon

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

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

IvnOs's icon

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

vichug's icon

see Stefan Tiedje's post :

> wrap~

[%~ 1.]

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

IvnOs's icon

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

ak's icon

> [%~ 1.]

keep in mind it works different for negative numbers

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

Rob MacNeacail's icon

Hi, just resurrecting this thread with the question - is there an equivalent for Pd's [vcf~]? Thanks in advance!

nouserid's icon

third outlet of [svf~]

volker böhm's icon

@Rob MacNeacail
haven't used it in a while, but this should be fairly accurate

pd.vcf~.gendsp
gendsp 16.09 KB

Max Patch
Copy patch and select New From Clipboard in Max.

joseph larralde's icon

Thanks !
I was about to learn gen~ exactly to do this.
I have a self made Pd slideflute~ abstraction based on old Perry Cook diagrams using vcf~, sounding almost similar with a reson~ filter in Max, now it sounds exactly the same with your patch !
Guess I'll once again postpone learning gen~ and taking a deep dive into filter theory ...