Reading jpg files from a folder….
I need to read a bunch of jpegs into a patch. Other than using the jit.qt.window, does anyone know what object to use? I cant seem to find it in the Max tutorials or help options.
Any suggestions to how i can implement this? I just want to read jpeg files, that are initially triggered by an FFT. Every time a sound is triggered by the built-in mic a jpeg should change to the next jpeg.
Help is much appreciated!
[jit.matrixset] is the common way, since it loads the matrix in ram, you can acess quickly.
Another option is to make your jpegs into a movie (for instance using Quicktime Pro). Then, you just load the movie into [jit.qt.movie].
Another option is to read each jpeg only when you need it, for instance using a umenu & autopopulate, and triggering the next jpeg by telling umenu the new number.
But Kyred’s option is surely the one to go first. You could use a umenu-based system to read the jpegs, dimension the jit.matrixset, and fill the set with the different images.
Send a patch of what you have (the jpeg reading system).
Thank you for all of your suggestions, i really appreciate it.
I have been toying around with it for quite some time now, and i simply can not come to a fruitful solution. I can easily read the jpegs using the jit.qt.movie into a jit.matrixset, but then i have to read every time i want to view a photo. I dont know what more i can do, or how i can make the umenu to work, as i have tried to connect it to several of the objects, but without any luck.
I simply want to loop through the photos in the umenu without having to read (use the read message) for each jpeg. Meaning opening every jpeg individually… also i am not quite sure of how the autopopulate variable works.
Check out the patch i have uploaded – Help is much appreciated!
you can try this :
----------begin_max5_patcher---------- 2060.3oc2as0aaaCE9YmeEDF6skEHRpatusVrDjArg.j.rGJJBjsjSYqsjqk bV1J5+8QxCkrTrtPISq41GrUHMkz47cteHyWuXxz4IuDkNE8Fz6QSl70KlLQ NkXhIpwSltN3kEqBRkKaZxtrUQYSuD9o3cqgIj+n09YYw4ShUStIHawGYwO8 31nEYvazw9JqKQTBVbg3j+M5CpagEBux4e5W7xeiKRVuNJV9.lNUL02t3BwW WpI8OeWVVRb8zeNoBSk8Oah.5b57f3mlVPV5xd9R9B6PkLlU920wdtCgUhi9 a98lyJYQu.nRFxBsHYWbgPZYRbVbvZIyL8W2xBVUO6SZh8YhmEZJ7PKHewiM k8uxEgIW0aguTdiwRbwwqMzwYPnyt0yi1ZZLnplvQBATKP0vUpn3zpFhsA0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+H3TnOxUGkepXgHUxQlnFqN4j+G7e zYxRiqeVrV996alwNxctj5.+Kqohk53e7oFqSrdr83WMuVRUberYj4qigtcJ 9GOHejI7D1E0hGWOgTshX3e90+P6wMJlrMUXcrUs6gllO3HlacJJRvsvx0wD Tqo8rXhxUOynIIN0YVkiLNoieVBc7id1ou+iwKAev2t3+.3fjkQH -----------end_max5_patcher-----------
Im not sure how to implement that – SORRY!
I tried copy/pasting it into a patch, but it does not allowed me. Any suggestions?
i don’t really uunderstad your problem.
just copy and do "new from clipboard" (cmd-alt-N).
That was weird, it worked fine when i did copy from clipboard. Anyways thank you very much, let me have a look at it.
Thank you very much for the help! I managed to redo the patch a little so it works as looping pictures and viewing them into a window. There is one problem though… my intention was to make a jpeg/photo viewer that is supposed work with an FFT / adc… meaning the input audio signal has to change a photo… at a certain peak, the next photo from the umenu has to be displayed.
I got really stuck in constructing this, as i have no idea to what i should connect the ezadc object.
Help is extremely appreciated!!
Check out the attached patch.
Study Jitter Tutorial 28. You could implement the "peak volume" detection it in your patch.
Then, if you want / need FFT, you should first make a separate patch dealing just with you FFT analysis / spectral peak detection.
Connecting this to your photo engine will be easy. You will need to study the MSP fft tutorials. I would use [pfft~], not only [fft~], might be easier to use, especially if you are beginning with FFT.
I know this thread is old, but i would just like to say that FP’s patch provided the solution i was looking for. I’m still having one problem though. Large pictures (like photo size) get scrambled when i try to display them with jit.pwindow. I’ve created another post for this as it’s likely an entirely different issue: http://cycling74.com/forums/topic/images-with-variable-dimensions-scrambled-jit-pwindows/