Wednesday, December 5, 2007

Progress: First P5_2_SC tests


Wednesday; December 5, 2007: 12:51 PM:
Received metagonSC0 project from Jean-Pierre.
To make this work, I need to install p5_sc libary for communication with SuperCollider.
Which is here:
        http://www.erase.net/projects/p5_sc/
In turn, the P52SC libary requires Andreas Schlegel’s oscP5, which is here:
        http://www.sojamo.de/libraries/oscP5/

The example drives a simple sine synthdef which is included as comment in the metagon file and needs to be run in SC before starting the metagon sketch in p5.

Comments on the draw method code outlining the basic principle of the work:

void draw() {
j+=1; // j counts number of frames
if (j==i-1) {
// j resets when i number of frames has been reached.
// at that point i is also incremented, so each time we get a longer side
j=1; i+=1; a=PI*(i-2)/i;
}
// drawing stops when the side has reached a maximum size imax
// a new side is drawn at each frame
if (i<=imax) { newside(); }
}

Question: What next?
        A different synthdef.
Next question:
        Which then are the relevant parameters for driving the synthdef?
Next question:
        Which then are the relevant parameters for drawing the metagon?
List of variables in the newside function that draws the metagon:

i        
j
a
aa
c
nx (new x)
ny (new y)
Supplementary: ox, oy (old x, old y)

Additional parameter computer from above for driving the synthdef:
bb

Idea:
        Attempt to make all parameters sound, each one of them separately, to get an intuitive practical feel of them.



No comments: