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

*/<br />

complex impedance(double f, Woodwind w, double entryratio);<br />

/*<br />

Calculates the input impedance <strong>of</strong> a Woodwind.<br />

Parameters:<br />

f: the frequency in Hz<br />

w: the Woodwind<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 />

Returns:<br />

the input impedance <strong>of</strong> the woodwind<br />

*/<br />

complex playedImpedance(double f, Woodwind w, int midi);<br />

/*<br />

Calculates the input impedance <strong>of</strong> a Woodwind in combination with the<br />

player's face impedance.<br />

Parameters:<br />

f: the frequency in Hz<br />

w: the Woodwind<br />

midi: the MIDI number <strong>of</strong> the played note<br />

Returns:<br />

the input impedance <strong>of</strong> the played woodwind<br />

*/<br />

double woodwindEntryRadius(Woodwind w);<br />

/*<br />

Calculates the radius <strong>of</strong> the woodwind at the entry.<br />

Parameters:<br />

w: the Woodwind<br />

Returns:<br />

the outside radius <strong>of</strong> the embouchure hole (if present)<br />

otherwise the input radius <strong>of</strong> the first BoreSegment<br />

*/<br />

complex woodwindLoadZ(double f, Woodwind w);<br />

/*<br />

Calculates the load impedance at the end <strong>of</strong> a Woodwind.<br />

Parameters:<br />

f: the frequency in Hz<br />

w: the Woodwind<br />

Returns:<br />

the load impedance <strong>of</strong> the woodwind<br />

*/<br />

complex woodwindDownstreamZ(double f, Woodwind w);<br />

/*<br />

Calculates the input impedance <strong>of</strong> the section <strong>of</strong> the Woodwind<br />

downstream <strong>of</strong> the embouchure hole.<br />

Parameters:<br />

f: the frequency in Hz<br />

w: the Woodwind<br />

Returns:<br />

the downstream impedance <strong>of</strong> the Woodwind<br />

*/<br />

TransferMatrix traverseHoleMatrix(double f, Hole h);

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

Saved successfully!

Ooh no, something went wrong!