Saturday, November 15, 2008

iPhone + Pure Data = RjDj

RjDj is a free iPhone application that uses sensory input to generate reactive music. You can either download compositions ("scenes") or create them using Pure Data.



More info here..

Friday, November 14, 2008

getting started

Here's a basic PD tutorial I wrote for complete n00bs. It only shows how to print stuff to the console, just to get familiar with the environment.

When you open Pure Data, depending on which platform you are, you would see something like this:



This is our main PD window. Some important information is displayed here, as well as errors or information about the patch you are working on. It also has a checkbox called "compute audio" which you can use to turn on and off audio processing. More info here.

Now we're going to start creating our first patch. The first thing to do is selecting File-->New in the menu or press Command+N in the keyboard. The blank white window that pops up is our canvas. Now we can start filling it up. We will use the "Put" menu to create boxes that we will interconnect later. Although we can see a lot of options in the "Put" menu, there are actually three main categories and pretty much everything is derived from these:

When we are in "run mode" (explained below), this type of boxes become clickable so that they can send messages through their outlets. The message is either written inside of them or received through their inlet(s).

Inside of these we're writing what will happen with the received message. It can perform several operations (e.g. print a message somewhere, play it as a sound, display image, use it to direct the flow of other messages, add it to a number, read a file or hundreds of other things) depending on what kind of an object it is. Here is a list of basic PD objects. In this example we will use an object called "print".

This basically stores a number inside. Whenever the value of the number changes, it is sent via its outlet as a message (to an inlet of another object, number or message). There is also another type of box called a symbol box and they are commonly named as an "atom", but for now I am just calling these number boxes. I'll probably show an example of this in the next post. For now I've only used one message box and one object to keeps things as minimal as possible.

To create a message box, either select Put-->Object in the menu or press Command+2 on the keyboard. 

For the object box, select Put-->Message in the menu or press Command+1.

Now connect the outlet of the message box to the inlet of the object by dragging the mouse. 

Type in the contents of the message and object boxes as below:



Now we have to make it run. In Pure data there are two modes: "Edit mode" and "Run mode". When you open PD, it's on edit mode by default, so that you can modify objects, populate your canvas, add/remove connections,  etc. When you click on a message box in edit mode, you type in the default value for the message to be sent. When you are in run mode and click a message box, it acts like a button that sends the message you typed in edit mode. You can switch between them using Command+E or by selecting Edit-->Edit mode in the menu.

Now switch to run mode and click on the message box. You should see something like this in the main window. Make sure the checkbox "console" is activated. 



That's it for now, as simple as it can get...

Friday, September 19, 2008

interactive clothes!

using the Lilypad!

http://www.talk2myshirt.com/blog/

Saturday, September 6, 2008

day one!

http://puredata.info/
http://puredata.info/docs/manuals/pd/
http://www.youtube.com/watch?v=FkmMzqohsDo&feature=related

http://www.arduino.cc/
http://www.sparkfun.com/commerce/tutorials.php

Hi peoples... just some links to get started.