Next |
Prev |
Top
|
REALSIMPLE Top
Now that you understand the basics of the virtual flute model, you will have the
opportunity to ``play'' it in pd.
- Install the flute~ extern.
- If you are running Linux on an Intel-architecture processor, then
download the extern flute~.pd_linux. Place it in a directory with your other externs. For
instance, this might be ~/externs. Then make sure that this
directory is included in the path for pd. You can do this by adding -path [PATHNAME] to
the end of the pd command when you invoke it at the command line
interface. Alternatively, you may add -path [PATHNAME] to the file
~/.pdrc.
- If you are not running Linux on an Intel-architecture processor, then you
will need to recompile the flute~ extern. We have provided a
package
for doing this,
although you may also want to consult the general instructions in the
tutorial on embedding
STK instruments in Pure Data externals.
- Download the pd patch flute.pd, and open it in pd.
- Ensure that the patch is not in editing mode, check the ``compute audio''
box in the main pd window, and increase the ``Output volume'' slider until
the the volume level is comfortable.
- To adjust values stored in number boxes, you can either click on a box,
type in a new number, and press enter, or you can drag up and down from the
box with the mouse. Using one of these methods, increase the ``Frequency''
number box to 400. Now the spectrum should look similar to the one shown in
Figure 4.
- If the spectrum looks too small, it may help to also increase the
``Amplitude'' number box. The amplitude adjustment is responsible both for the average
pressure in the flute due to the flutist's breath as well as a scaling of the output
signal
.
- Consider the difference in behavior if you blow softly on a real flute, if you
blow normally on a real flute, or if you blow very hard. Carry out this experiment
on the virtual model with the ``Breath Pressure'' slider. First move the
slider all of the way to the right, which corresponds to blowing hard. How
does the model behave? Now investigate the behavior for intermediate and low
breath pressures. Is this what you expected?
- Now try toggling the ``Blowing On/Off'' switch on and off. When the
toggle is off, no breath pressure is applied. When the toggle is on, breath
pressure is applied according to the ``Breath Pressure'' slider. Listen
carefully to the sound of the model when the toggle is switched. This should
sound like a real flute. This is one of the advantages of physical models.
Because the computer is simulating physical behavior, changing model parameters
in real time results in especially realistic sounds.
- After adjusting parameters for a while, you may find that the pitch produced
by flute~ differs significantly from the number in the
``Frequency'' number box. When this happens, the pitch will generally differ
by an octave or two. This
means that the virtual flute player is overblowing the virtual flute. (You can
tell approximately what pitch is being produced by looking at the frequency of
the lowest harmonic shown on the spectrum. Disregard any apparent
``harmonics'' at 0Hz-these are inaudible.)
- In this scenario, vibrato refers to a sinusoidal variation in the
breath pressure. Flutists produce this effect by varying their breath pressure
at a rate on the order of 6Hz. Investigate the effect of changing the
``Vibrato Gain'' and ``Vibrato Frequency'' sliders. Which ranges of vibrato
gains and frequencies are physically reasonable, and which ranges would not normally be
played by flutists? At what maximum rate can you vary your own breathing?
- Adjust the sliders and number boxes so that they match the pd
patch shown in Figure 5. Now you will learn about subpatches,
which are Pd patches that are embedded within higher-level patches.
Double-click on the subpatch pd cc. Here you will find additional sliders
that control more unusual parameters of the model. Look at the spectrum as you
adjust the ``Noise Gain'' slider back and forth between minimum (left) and
maximum (right). If you look carefully, you should notice that the spectrum
looks chaotically grainy in between harmonics when the noise gain is adjusted to its
maximum value. You are actually observing the effects of the broadband noise.
You should hear that the output sounds more like static or
poor radio reception as you increase the noise gain.
Figure 5:
Sample settings for the main-level pd patch flute.pd
 |
Next |
Prev |
Top
|
REALSIMPLE Top
Download vir_flute.pdf