HELP: "shot" & translate pixels
I'd like to build something that works as the follower example...
Let's take a gemwin 9*9 pixels. So, 9 columns of pixels. In this gemwin we see the webcam or a video. Every column of pixels changes frame by frame (because video or webcam go on).
At frame_0, our gemwin is <000000000>, at frame_1 <111111111>, etc.
This is our gemwin frame by frame:
frame 0 <000000000>
frame 1 <111111111>
frame 2 <222222222>
...
But!..let's start again:
frame 0 <000000000>
I want to take a "snapshot" only of the central axis ("0"). When frame_1 arrives, I want to translate my shot of "0" towards left by one pixel...
frame 1 <111011111>
Now I want to repeat this action: I take a snapshot of the central axis (now "1"). And when frame_2 arrives, I want to translate both shot of "0" and shot of "1" towards left by one pixel...
frame 2 <220122222>
So, this is our gemwin frame by frame after this "shot&translate" process:
frame 0 <000000000>
frame 1 <111011111>
frame 2 <220122222>
frame 3 <301233333>
frame 4 <012344444>
frame 5 <123455555>
frame 6 <234566666>
frame 7 <345677777>
frame 8 <456788888>
frame 9 <567899999>
etc.
Ok...how can I do something like that? Which objects could I use?
Thanks
Tilde on mac in PD?
Hi,
I have Czech keyboard on my MacBook Pro and finally i found how to make it!!!
(no problem on Czech keyboard but i prefer U.S. for faster object insertion)
Try "Shift" and "\" (Left Shift + that key next to it on U.S. keyboard mode)
I hope this should work on your mac, i have my mac only short time and i've found the Keyboard Viewer as very usefull...
Cheers
MIDI weird issues with arduino + PD (not pduino)
i'm not shure this is your case because it seems you're using a midi software synth and a sensor but i know that "if you hear double notes when playing your MIDI keyboard, (slapback echo or flanging, the chances are that MIDI Thru in your sequencer and Local Control on your keyboard are not set up correctly. This causes the keyboard to sound two notes - the one you play on the keyboard and another being echoed from the computer...
On your keyboard you need to switch Local Control to Off. This disconnects the keys from the sound circuitry so sounds can only be played via messages arriving at its MIDI In" (http://www.practicalpc.co.uk/computing/sound/miditop5.htm)
but i'm not so shure this helps... what midi module are you using? is it hadware or software stuff? you can try to monitor icoming midi messages with midiox to check that everything is going right
Simulate MIDI keyboard functionality
Hello all,
This seems like a simple problem, but I'm having a hell of a time figuring it out. I want to be able to use my computer keyboard as a MIDI keyboard. What I essentially want to happen is while the "c" key is pressed, do this:
|60 100(
|
[noteout 1]
(but don't continually bang it!)
and when it is released, do this:
|60 0(
|
[noteout 1]
I can envision a simple logical test - 1=note on, 0=note off - but all of my attempts lead to the note on continually banged (I notice this in the key-help.pd file).
This all relates to a larger issue I'm having: how do you fire off one bang when continuous data is being received?
Any help is greatly appreciated.
hdez
Only big gemwin in black
i am using duo monitors for my work and the resolution is pretty high, so i set my gemwin to over 2000 x 1500, but every time i click create, there pops up a big black blank gemwin which does n't show anything. i suspected that my items were somewhere hidden in the gemwin, but i can't see them.
wondered if i missed anything in the gemwin?
Quit fullscreen
i am trying to make a gemwin in fullscreen without any bar or GEM bar showing at the top
of hte gemwin. but whenever i make it fullscreen, i can't quit fullscreen in case i need to see other windows again.
i have heard that there is some message i can put on top of toggle of fullscreen, using some keyboard setting , say, pressing "esc" on keyboard while seeing fullscreen gemwin i can always get back to see all other windows.
does anyone know the details on how to do it? appreciate it if anyone can help!
\[key\] stops working when PD is not the active window
Thanks ... it is indeed. What does it do? The help file just has a patch which lists devices without explaining what it does ... How can it help me route keystrokes to PD when its not the active window ?
if it helps this is what I get when I run the patch
hidin: ** found 9 devices on your system
DEVICES: -1 None
DEVICES: 1
DEVICES: 2
DEVICES: 3
DEVICES: 4
hidin: -- could not get device #5: Access is denied.
hidin: -- can not read from mouse and keyboard
DEVICES: 5 Unsupported Device
hidin: -- could not get device #6: Access is denied.
hidin: -- can not read from mouse and keyboard
DEVICES: 6 Unsupported Device
hidin: -- could not get device #7: Access is denied.
hidin: -- can not read from mouse and keyboard
DEVICES: 7 Unsupported Device
hidin: -- could not get device #8: Access is denied.
hidin: -- can not read from mouse and keyboard
DEVICES: 8 Unsupported Device
hidin: -- could not get device #9: Access is denied.
hidin: -- can not read from mouse and keyboard
DEVICES: 9 Unsupported Device
Thanks again.
W
Key polyphony
I'm working on a setup where the pitches of a PD patch are controlled by the computer keyboard using the bottom row keys (Z - , ) and a few of the second row keys (S, D, G, H etc.) set up like a piano keyboard.
The keyboard control patch is basically a [key] connected to a bunch of
[sel #] <---# is obviously the key
|
[#( <---# is the pitch in HZ
This feeds the pitch into the synth patch.
How would I have to alter this to be able to press more than one key at a time in order to play multiple pitches?
I can set up the synth patch to play multiple pitches, but using the keyboard, I only register one key at a time
I hope that was clear enough..
Thanks
Gemwin Flickering
which graphics hardware?
what graphics driver?
what kind of monitor?
what frame rate is the gemwin and monitor?
you can set the frame rate with [gemwin 20] for 20fps, [gemwin 60] for 60fps etc
you can set the window size with "dimen 640 480" or "dimen 1024 768" etc messages to the [gemwin] before you "create" it.
How do you make the border of PD disappear for full screen GEM?
..there's a more easy and efficient method :
-send a "border 0" message to "gemwin" (i think you guessed it up...)
-then a "offset -800 0" message to "gemwin" that puts the gem window 800 pixels left to the original position, if you set the second desktop at the left of the Main Desktop;for osx or windows, no problem; for linux search for Xinerama....
-the last, but not the least: "dimen 800 600" message to gemwin to set the dimensions of gemWin....
Sorry for the poor english of a poor italian...

