hi,
for the midi-input you use [notein]. the first outlet of this object gives the value for the key. it is triggered when you hit the key and again when you release it. with [spigot] you can easily filter all noteup events, (the note up is always keynumber in connection with volume 0...) with [select 64 65 66] (or whatever number) you can send a bang whenever that certain key is hit...
the display of the pictures needs some memory... and maybe a fast graphic card. anyway. i think you will need GEM to show the pictures and then use pix_multiimage in connection with pix_draw. load all three series into one pix_multiimage object and build a kind of counter for whatever picture should be shown.
the timing should come from the [metro 333]....
hope thatŽs enough information.
Marius.
----- Original Message ----- From: "Mario Wienerroither" digitalofen@gmx.at To: pd-list@iem.at Sent: Monday, February 02, 2004 10:18 PM Subject: [PD] A newbie needs first aid!
I have a big problem with pd (what else; I'm a PD-greenhorn)
A friend of mine and me need to finish a project -programmed in PD- till tomorrow and don't know how to learn this program in only one day. If there's anybody out there who can help us... please do so!
We have several gif-sequences (each 32 pics). The first problem we have is: The sequence should start by pressing a (doesn't matter wich one) midi-key. After that the pix-video should start by showing one frame by another with a time delay of 0.3 seconds in between until the 32th picture was shown 0.3 seconds. If no other key (for starting an other gif-sequence) was pressed, the video should be looped. If an other key was pressed, the other sequence should start after the 32th picture from the 1st video. The whole thing should stop after the 320th shown picture and start again, when you press a key on the keyboard.
Please help us! We really need to get that thing finished. Thank you and bye.
Mario Wienerroither