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.

APPENDIX B. PROGRAM LISTINGS 309<br />

*/<br />

0 otherwise<br />

TransferMatrix boreSegmentMatrix(double f, BoreSegment s, double x);<br />

/*<br />

Calculates the TransferMatrix for a BoreSegment.<br />

Parameters:<br />

f: the frequency in Hz<br />

s: the BoreSegment<br />

x: distance along the BoreSegment to calculate<br />

Returns:<br />

the TransferMatrix for the BoreSegment<br />

*/<br />

TransferMatrix boreMatrix(double f, Vector bore, double x);<br />

/*<br />

Calculates the TransferMatrix for a bore.<br />

Parameters:<br />

f: the frequency in Hz<br />

bore: the bore<br />

x: distance along the bore to calculate<br />

Returns:<br />

the TransferMatrix for the bore<br />

*/<br />

TransferMatrix headMatrix(double f, Head h, double entryratio,<br />

double x);<br />

/*<br />

Calculates the TransferMatrix for a Head.<br />

Parameters:<br />

f: the frequency in Hz<br />

h: the Head<br />

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

embouchure) to the entry radius <strong>of</strong> the instrument<br />

x: distance along the Head to calculate<br />

Returns:<br />

the TransferMatrix for the Head<br />

*/<br />

complex faceZ(double f, Head head, int midi);<br />

/*<br />

Calculates the radiation impeance <strong>of</strong> the player's face.<br />

Parameters:<br />

f: the frequency in Hz<br />

head: the Head<br />

midi: the MIDI number for the played note<br />

Returns:<br />

the radiation impedance<br />

*/<br />

TransferMatrix unitCellMatrix(double f, UnitCell c, double x);<br />

/*<br />

Calculates the TransferMatrix for a UnitCell.<br />

Parameters:<br />

f: the frequency in Hz<br />

c: the UnitCell<br />

x: distance along the UnitCell to calculate<br />

Returns:

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

Saved successfully!

Ooh no, something went wrong!