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 319<br />

*/<br />

complex holeInnerRadiationImpedance(double f, Hole hole);<br />

/*<br />

Calculates the inner radiation impedance <strong>of</strong> a hole.<br />

Parameters:<br />

f: the frequency.<br />

h: the hole.<br />

Returns:<br />

The inner radiation impedance impedance <strong>of</strong> the hole.<br />

*/<br />

complex holeSeriesImpedance(double f, Hole hole);<br />

/*<br />

Calculates the series impedance <strong>of</strong> a hole.<br />

Parameters:<br />

f: the frequency.<br />

h: the hole.<br />

Returns:<br />

The series impedance impedance <strong>of</strong> the hole.<br />

*/<br />

TransferMatrix embouchureMatrix(double f, EmbouchureHole h,<br />

double entryratio, complex branchZ);<br />

/*<br />

Calculates the TransferMatrix for an EmbouchureHole.<br />

Parameters:<br />

f: the frequency in Hz<br />

h: the EmbouchureHole<br />

entryratio: the ratio <strong>of</strong> the input side radius (impedance head or<br />

embouchure) to the outside radius <strong>of</strong> the embouchure hole<br />

branchZ: the impedance <strong>of</strong> the impedance branch (upstream or<br />

downstream section)<br />

Returns:<br />

the TransferMatrix relating the acoustic parameters on the input<br />

side <strong>of</strong> the embouchure hole to those at the output side (inside <strong>of</strong><br />

the instrument)<br />

*/<br />

double embouchureLengthCorrection(double a, double b);<br />

/*<br />

Returns the empirically-determined embouchure length correction.<br />

Parameters:<br />

a: the bore radius at the embouchure hole<br />

b: the inside radius <strong>of</strong> the embouchure hole<br />

Returns:<br />

the length correction<br />

*/<br />

complex embouchureSeriesResistance(double f, EmbouchureHole h,<br />

double entryratio);<br />

/*<br />

Returns the empirically-determined embouchure series resistance<br />

correction.<br />

Parameters:<br />

f: the frequency in Hz<br />

h: the EmbouchureHole<br />

entryratio: the ratio <strong>of</strong> the input side radius (impedance head or

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

Saved successfully!

Ooh no, something went wrong!