Audio/Video Granulizer
ok guys, i tweaked this up for you this morning, i've been neglecting Pd lately and I need to get back into it so here's a cool patch i came up with a while ago, that i made a quasi-tutorial for, and some masssssssive description (hey, i can't help it, i like being thorough). if you have any questions about the specifics don't hesitate to ask - i gave a general overview of how everything works but if you want to know specifics about the guts of the patching (especially since i'm not exactly the most aesthetically pleasing patcher out there) i can go into more detail.
included are the three main patches, sampgran.pd, vid01.pd, and seq16step.pd, with a few small abstractions they need. also included are a .mov and .avi included with gem so you can test it if you don't have any video clips handy, a small beatloop .wav to load into the granulizer, and a small sequence file named sequencing.sequence
the gist is it's a simple looping sampler using a phasor~ as a sawtooth lookup - a great technique for looping samplers that i thought one day, "why don't i just scale the phasor~'s output to a video the same way i scale it to an array with a soundclip?" and guess what - it worked, pretty damn good at that. i also had a (still) work-in-progress granulizer based on that sampler, and after rearranging some amens and watching homer dance around in time, i decided to try adding the same patching to the granulizer, with some pretty cool results.
it does need some work - with a short trigger time when you adjust the initial playback speed control, essentially just pitch shifting the loop without changing the speed, there's no real visible effect on the video. i need to figure out some additional effect i can do with it, maybe a blur or something... considering a short soundclip is at least 100k samples long, and the clips i was using with were less than 100 frames long for the most part, you can see why there'd be a bit more room to work with in the soundfile than the video - but even so, there's some obvious sync there when you tweak it out, and it was a shitload easier to get working than i thought it would.
anyways, open the long titled RUN ME FIRST .pd file and it'll load everything up for it. there's a quick start guide on bottom of the main window where it tells you how to load files in - i decided not to set it up automatically so that way if you wanted to use them on their own you'd know how to use them. LET ME KNOW if you have any problems - someone's tested it for me but i might've missed something.
there you have it, sampgran.pd combined with vid01.pd. LONGEST POSTS EVARRR
http://www.pdpatchrepo.info/hurleur/slvmchn-video-granulizer.rar
Arduino / Comport
trying to get arduino to work with my linux distro...
Checked /var/log/messages and it says:
kernel: usb 1-2: new full speed USB device using ohci_hcd and address 4
kernel: usb 1-2: configuration #1 chosen from 1 choice
kernel: usbcore: registered new driver usbserial
kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
kernel: usbcore: registered new driver usbserial_generic
kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
kernel: ftdi_sio 1-2:1.0: FTDI USB Serial Device converter detected
kernel: drivers/usb/serial/ftdi_sio.c: Detected FT232BM
kernel: usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0
kernel: usbcore: registered new driver ftdi_sio
kernel: drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
All looks fine....
The problem seems to be that I can't select the serial port number using "Comport" inside the "Arduino" abstraction, tried giving it a file path using the devicename message /dev/usb/ttyUSB0 but no luck.
Any ideas?
...seriously (serialously?) this is doing my head in...
Externals under ubuntu
They are packaged in Debian Etch - might or might not work on Ubuntu Edgy, but should be worth a try :
http://packages.debian.org/testing/graphics/gem
http://packages.debian.org/testing/graphics/pd-pdp
http://packages.debian.org/testing/sound/pd-zexy
PiDiP pdp on Demudi 1.2.1
I finally succeed installing my demudi for working with pdp/PidiP,
here my config
1. install the demudi
2. edit the /etc/apt/sources.list ,make it looks like that:
deb http://demudi.agnula.org/packages/demudi/ demudi main/updates
deb http://ftp2.fr.debian.org/debian/ testing main contrib non-free
deb-src http://ftp2.fr.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb http://www.os-works.com/debian/ testing main
deb http://sindominio.net/~caedes/debian/ unstable main
deb http://ftp2.fr.debian.org/debian/ unstable main contrib non-free
deb http://apt.cerkinfo.be/ unstable main contrib
3. run synaptic
4. search for pdp, then install 
It works pretty nice, i am into search of the better compromise between quality, low cost of process codecs. For now, i have good results with AVI in in IYUV codec and the undocumented [pdp_xine] object:
1st inlet:
[open namefile.ext< open a file
[bang< print a frame
[loop 0/1< loop mode
[n< go to frame n and play
[speed n< n x the speed of the original file
2nd inlet:
? it get floats, it seems to make the video jump to the next KeyFrame... not sure.
PD midiindev what number?
Hello!
I connected my USB MAudio Midisport 2x2 and installed the proper driver. It is soundcard 3.
/proc/asound/cards:
0 [I82801DBICH4 ]: ICH - Intel 82801DB-ICH4
Intel 82801DB-ICH4 at 0xf4fff800, irq 7
1 [VirMIDI ]: VirMIDI - VirMIDI
Virtual MIDI Card 1
2 [Modem ]: ICH - Intel 82801DB-ICH4 Modem
Intel 82801DB-ICH4 Modem at 0xb400, irq 7
3 [M2x2 ]: USB-Audio - MidiSport 2x2
M-Audio MidiSport 2x2 at usb-0000:00:1d.0-1, full speed
The Ouptup of: aconnect -io:
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
client 72: 'Virtual Raw MIDI 1-0' [type=kernel]
0 'VirMIDI 1-0 '
client 73: 'Virtual Raw MIDI 1-1' [type=kernel]
0 'VirMIDI 1-1 '
client 74: 'Virtual Raw MIDI 1-2' [type=kernel]
0 'VirMIDI 1-2 '
client 75: 'Virtual Raw MIDI 1-3' [type=kernel]
0 'VirMIDI 1-3 '
client 88: 'MidiSport 2x2 - Rawmidi 3' [type=kernel]
0 'MidiSport 2x2 MIDI 1'
1 'MidiSport 2x2 MIDI 2'
How can I find out what midiindev I have to use?
Thank you a lot.
