Changing a paintoval to an image file

Jason Orri's icon

Hi, I was wondering if there was anyway to replace a paintoval into an image file in lcd? Each one's location creates new volume level output?

Christopher Dobrian's icon

Double-click on the "p images" subpatch of the lcd.help file.

You can read about the 'readpict' and 'drawpict' messages in the reference manual.
https://cycling74.com/docs/max5/refpages/max-ref/lcd.html

(Contrary to what the manual implies, 'readpict' works with other image file formats besides .pct, a fact that is demonstrated in the help file.)

Jason Orri's icon

I would like to replace the paintoval dots at the bottom of this patch with pictures - I can't figure out how I might do it though. The p panel > p ovals is where I would guess I could do this but I'm having no luck at all...

Any help would be greatly appreciated in this specific context.

Jason Orri's icon

Patch is attached

2650.smpfmsycopy.maxpat.zip
zip
Justin G's icon

read the reference linked above. then inside panel/ovals, do something like this:

2656.smpfmsycopy2.maxpat
Max Patch
Justin G's icon

.

2657.smpfmsycopy2.maxpat.zip
zip
Jason Orri's icon

Great, thanks guys. All making sense - the read part was something I was missing... thanks again.
J