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.

APPENDIX B. PROGRAM LISTINGS 307<br />

Key key);<br />

/*<br />

Creates a new Hole.<br />

Parameters:<br />

radius: hole radius in m<br />

length: segment length in m<br />

boreRadius: the radius <strong>of</strong> the instrument bore at the position <strong>of</strong><br />

the hole<br />

Returns:<br />

a new Hole with the given parameters<br />

*/<br />

Key createKey(double radius, double holeRadius, double height,<br />

double thickness, double wallThickness, double chimneyHeight);<br />

/*<br />

Creates a new Key.<br />

Parameters:<br />

radius: the radius <strong>of</strong> the key in m<br />

holeradius: the radius <strong>of</strong> the hole in the key (for perforated<br />

keys)<br />

height: the regulation height <strong>of</strong> the open key<br />

thickness: the thickness <strong>of</strong> the key<br />

wallThickness: the thickness <strong>of</strong> the hole chimney<br />

chimneyHeight: the height <strong>of</strong> the chimney above the bore<br />

Returns:<br />

a new Key with the given parameters<br />

*/<br />

EmbouchureHole createEmbouchureHole(double radiusin, double radiusout,<br />

double length, double boreRadius);<br />

/*<br />

Creates a new EmbouchureHole.<br />

Parameters:<br />

radiusin: the radius at the bore<br />

radiusout: the radius at the outside<br />

length: the embouchure hole length<br />

boreRadius: the radius <strong>of</strong> the instrument bore at the position <strong>of</strong><br />

the hole<br />

Returns:<br />

a new EmbouchureHole with the given parameters<br />

*/<br />

Head createHead(EmbouchureHole embouchureHole, Vector upstreamBore,<br />

double upstreamFlange, Vector downstreamBore);<br />

/*<br />

Creates a new Head.<br />

Parameters:<br />

embouchureHole: the embouchure hole<br />

upstreamBore: bore section between the embouchure hole <strong>and</strong> the<br />

cork<br />

upstream flange: the termination condition at the cork (default<br />

-1)<br />

downstreamBore: bore section between the embouchure hole <strong>and</strong> the<br />

first tone hole<br />

Returns:<br />

a new Head with the given parameters<br />

*/

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

Saved successfully!

Ooh no, something went wrong!