Sunday, 2 February 2014

Previous Sub Patch and sub patch explanation

Below, is a screen shot of a previous sub patch which was altered to make it simpler as the extra coding ended up being complicated for no extra benefit - making it more straight forward makes less room for error but gives the same desired affect as the later, altered version.
Figure 7 shows the coding for one of the samples and the other than the data parameters (greater and less than values) is identical for every patch. 

 (Figure 7.)


The section on the left hand side, highlighted in green, is the data that is extracted from the webcam's X or Y axis. This data then controls the volume level of the playing sample based a greater than and less than parameters.

The red highlighted, central section in this part of the sub patch takes the data from the webcam, in exactly the same way to the volume section of the sub patch, and was meant to control a high pass and low pass filter based on the same greater than and less than parameters that were set in the volume part of the patch. The data would be received from the webcam and selected 1 or 0 based on wether the data fell within the set data range; this, in turn, would open or close the filter. However, this did not happen as planned and was simplified at a later date to simplify it for the same effect.

The yellow shaded section of this patch is simply the sample loading coding. The coding loads the sample into Pure Data, defines the sample rate, the number of samples and then outputs it to the outlet.

The outlets are shaded in blue in Figure 7. These link the sub patch to the main part of the patch. The way that the outlets are arranged on the screen dictates which side of the sub patch object the outlet appears - this is used for ease of patching in the main patch to prevent confusion of connections.





No comments:

Post a Comment