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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 8. SOFTWARE IMPLEMENTATION 111<br />

The string fingering may be set either "OPEN" or "CLOSED". The member boreRadius in<br />

both the EmbouchureHole structure <strong>and</strong> the Hole structure is the radius <strong>of</strong> the bore at the position<br />

<strong>of</strong> the hole. The Hole structure may contain a Key member, which contains the relevant<br />

parameters describing the extent <strong>of</strong> shading <strong>of</strong> a hole by an open key:<br />

typedef struct key_str {<br />

double radius;<br />

double holeRadius;<br />

double height;<br />

double thickness;<br />

double wallThickness;<br />

double chimneyHeight;<br />

} *Key;<br />

(For a tone hole without a key, Key = NULL.)<br />

Functions implemented in Woodwind.c calculate transfer matrices <strong>of</strong> the various structures<br />

<strong>and</strong> the input impedance <strong>of</strong> the entire instrument. The Woodwind structure is used by the<br />

processes ‘Impedance’, ‘PlayedImpedance’ <strong>and</strong> ‘Waves’.<br />

8.1.3 ‘Impedance’<br />

The process ‘Impedance’ calculates the input impedance <strong>of</strong> a woodwind defined by an XML<br />

file <strong>and</strong> is implemented in the C program Impedance.c (Listing B.10). The program has the<br />

following usage:<br />

Usage: Impedance [OPTIONS] <br />

Options:<br />

-s <br />

-t (default 25.0 degC)<br />

-u (default 0.5)<br />

-l (default 100.0)<br />

-h (default 4000.0)<br />

-r (default 2.0)<br />

-e (default 1.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 m<strong>and</strong>atory argument XML file is the path to the file describing the instrument. This<br />

file is validated against the DTD file Woodwind.dtd which must be in the same directory as the<br />

XML file. Options are provided for setting the temperature (in °C), the relative humidity <strong>and</strong> the<br />

frequency range (Hz). The parameter entryratio allows calculation <strong>of</strong> the input impedance<br />

as seen through a radius smaller than the entry radius <strong>of</strong> the instrument. Thus entryratio

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

Saved successfully!

Ooh no, something went wrong!