Next  |  Prev  |  Top  |  REALSIMPLE Top

Controlling The Plucked String Model

Now you will gain some intuition into adjusting the PID control parameters $P_P,$ $P_I,$ and $P_D.$ Try to avoid adjusting the PID parameters in a manner that causes the system to become unstable. If instability occurs, the output from the pd patch will become louder and louder until the pd patch shuts itself off and sends the message UNSTABLE to the pd message window. If you ever see this message, close the patch and open it again. One way to avoid instability is to adjust the parameters slowly-backing off if ever the sound from the model starts becoming louder and louder. The blue button ``Reset parameters for no control'' will set $P_P=0$, $P_I=0$, and $P_D=0$ and may also be triggered by pressing the space bar.

The sliders for adjusting $P_I$, $P_D$ and $P_P$ are set up to make as much of the useful parameter space as available as possible. For example, the default position for the $P_I$ slider, which corresponds to $P_I=0$, leaves little room for making $P_I$ negative by moving the slider to the left. This is because even slightly negative values will cause the energy in the string to grow quite fast. Note that the actual values for each PID control parameter is shown in a box underneath the corresponding slider.

Figure 3: Example spectra for frequency shifting via PID control (top: flat (decreased pitch), middle: no control, and bottom: sharp (increased pitch))


Next  |  Prev  |  Top  |  REALSIMPLE Top

Download pidcontrol.pdf

``PID Control of a Plucked String'', by Edgar Berdahl, and Julius O. Smith III,
REALSIMPLE Project — work supported by the Wallenberg Global Learning Network .
Released 2007-04-09 under the Creative Commons License (Attribution 2.5), by Edgar Berdahl, and Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA