Friday 1 August 2008

CC2_w33k 01_soft on/off for max/msp



I have created a rampdac~ object to soften the impact of turning the dac~ on/off, and a softvol~ object to smooth the effect of abrupt volume changes on an audio signal.

I settled on 12 ms as the default ramp time for both objects. I enjoyed the seeming softness it gave to the softvol~ and then gave it to the rampdac~. I assume that one could abuse any setting to give roughness to a signal, but I think 12ms gives a good all round basic setting.

The major drama (other than remembering how to make a custom argument), was trying to put the dac~ into the rampdac~ object. It took me a few minutes to realise it needed to be in the same window as the cycle~ object (the whole point of the startwindow command ).

The minor drama was creating a custom argument with a default setting. The way I have implemented it means the time for both objects can never = 0, which considering the whole exercise was to prevent this is OK with me.

Oh, and there's sort of a bug in rampdac~ in that if you press off, then on again before it turns off, it'll turn off when it should be on... behaves ok if you don't click madly or keep time at a low setting.

It seems on a basic intro to MSP that it treats audio in a similar manner to Plogue, and as such the work we did last year will stand us in good stead !!!! Hurrah !!!!

Zip of two objects plus help plus demonstration
http://www.box.net/shared/ijwefrxsso



references
Haines, Christian. 2008. 1. Introduction to MSP - CC2 - Music and Signal Processing.pdf

Cycling'74 2006, MSP Tutorials and Topics,
.

No comments: