11.07.2014 Views

Flute acoustics: measurement, modelling and design - School of ...

Flute acoustics: measurement, modelling and design - School of ...

Flute acoustics: measurement, modelling and design - School of ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 8. SOFTWARE IMPLEMENTATION 114<br />

<strong>and</strong> the output line for a single note contains the information<br />

<br />

[numHarm] [meanHarmZ]<br />

Typical output is<br />

60 3.0 3.9 261.8 1 98.4 12 104.0<br />

61 3.0 3.9 276.8 -2 98.3 12 104.3<br />

62 3.0 3.8 293.4 -2 98.2 11 104.5<br />

...<br />

A playability value <strong>of</strong> 3.0 indicates that the note is easily playable, while 1.0 is difficult to<br />

play. Likewise, a note with a strength <strong>of</strong> 4.0 is strong <strong>and</strong> bright while 1.0 is weak <strong>and</strong> dark.<br />

8.1.6 ‘Waves’<br />

The process ‘Waves’ calculates <strong>and</strong> outputs the relative magnitudes <strong>of</strong> pressure <strong>and</strong> flow along<br />

the bore <strong>of</strong> an instrument. The usage is as follows:<br />

Usage: Waves [OPTIONS] <br />

Options:<br />

-s <br />

-r (default 2.0)<br />

:<br />

- Optional if no holes are defined in XML file.<br />

- Must be a sequence <strong>of</strong> 'O' (open hole) <strong>and</strong> 'X' (closed hole)<br />

characters.<br />

- Length must be equal to the number <strong>of</strong> defined holes.<br />

- e.g. "XXOOOOOOXOOOOXOOO"<br />

The required argument midi is the MIDI number for the played note <strong>and</strong> frequency is the<br />

frequency <strong>of</strong> interest (usually a resonant frequency, as obtained from ‘AnalyseNotes’). ‘Waves’ is<br />

implemented in the C program file Waves.c (Listing B.29) <strong>and</strong> relies on functions in Woodwind.<br />

h <strong>and</strong> Woodwind.c.<br />

‘Waves’ calculates the pressure p in <strong>and</strong> volume flow U in at the input to the played instrument<br />

in relative units such that |p in | 2 + |Z 0 U in | 2 = 1 Pa 2 , where Z 0 is the characteristic impedance<br />

at the input to the instrument. The pressure p(x) <strong>and</strong> volume flow U (x) are calculated at<br />

points along the instrument bore xres mm apart. The output <strong>of</strong> the program is a list <strong>of</strong> tabdelimited<br />

x, |p(x)| <strong>and</strong> Z 0 |U (x)| triplets, such as<br />

-16.0 0.111 0.002<br />

-14.0 0.111 0.004<br />

-12.0 0.111 0.006<br />

-10.0 0.111 0.009<br />

-8.0 0.112 0.011<br />

-6.0 0.112 0.013<br />

-4.0 0.112 0.016<br />

-2.0 0.112 0.018<br />

0.0 0.110 1.619

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!