25
Jan
08

updated pure data patch……

I’ve been working hard this week trying to get my head around the program Pure Data, and the learning curve is steep!

But saying that the open source nature of this program is to be revered, and by scouring the forums for examples and advice I have got to the stage where I have a patch that is not pretty, but it works!

The more I use Pure Data the more it makes sense.  PD is primarily an audio based application but the objects that the audio part of the program uses more often that not transpose over into the video element of the program (the only difference is that audio objects use a ‘~’) 

I spent a lot of my teenage years playing around with musical hardware and problem solving by bypassing an input here to get an output there and so forth, so the idea of patching objects together is not foreign to me.

Also, as some the objects have audio titles such as threshold (which are used in audio compressors) they do make some sense to me, and I have found that my instinct on what an object may do has usually been correct.  This knowledge combined with a bit of mathematics (long time since I had to do that!) has led me to create the patch below.

pd123456.jpg  

larger picture – click here

The patch is a combination of 2 video mixers and an audio sampler (GEM, the environment that PD uses for video does not support audio, so you have to extract the audio separately and sync it up later in the process)

The videos are switched by a horizontal fader and the audio is switched by a vertical fader.  These are all connected to a ‘Bang’ (the object that make stuff happen in PD)

The Bang is connected to a threshold object, the threshold object emits a bang when a value is passed through it that is greater than the value you set (and with a bit of math) sends another bang signal when the number drops below the value you set.

It is my hope that when I get an ultrasonic sensor up and running this value that is sent to the threshold object will be the distance the sensor is reading.  So when an individual gets say within, 200cm of the sensor, I can set the threshold to emit a bang when the number drops below 200 to flip the video, and send another bang when the individual moves more than 200cm away that will flip the video back to its original state.

If this works I will have good control over whatever space I have to show my work, as the size of the room can be accounted for by increasing or reducing the threshold value.

Fingers crossed……….    

Advertisements

0 Responses to “updated pure data patch……”



  1. Leave a Comment

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: