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

else {<br />

if(mcomp->R_min_dZ L_max_df L_max_dZ numharm f)) mcomp->f = m->f; else mcomp->f = 1209.0;<br />

if(isValidNum(m->Z)) mcomp->Z = m->Z; else mcomp->Z = 108.0;<br />

if(isValidNum(m->B)) mcomp->B = m->B; else mcomp->B = 28.9;<br />

if(isValidNum(m->numharm)) mcomp->numharm = m->numharm;<br />

else mcomp->numharm = 2.6;<br />

if(isValidNum(m->meanharmZ)) mcomp->meanharmZ = m->meanharmZ;<br />

else mcomp->meanharmZ = 122.4;<br />

if(isValidNum(m->L_min_df)) mcomp->L_min_df = m->L_min_df;<br />

else mcomp->L_min_df = 329.0;<br />

if(isValidNum(m->L_min_dZ)) mcomp->L_min_dZ = m->L_min_dZ;<br />

else mcomp->L_min_dZ = -0.1;<br />

if(isValidNum(m->R_min_df)) mcomp->R_min_df = m->R_min_df;<br />

else mcomp->R_min_df = 357.2;<br />

if(isValidNum(m->R_min_dZ)) mcomp->R_min_dZ = m->R_min_dZ;<br />

else mcomp->R_min_dZ = 7.1;<br />

if(isValidNum(m->L_max_df)) mcomp->L_max_df = m->L_max_df;<br />

else mcomp->L_max_df = 129.7;<br />

if(isValidNum(m->L_max_dZ)) mcomp->L_max_dZ = m->L_max_dZ;<br />

else mcomp->L_max_dZ = 36.2;<br />

if(isValidNum(m->R_max_df)) mcomp->R_max_df = m->R_max_df;<br />

else mcomp->R_max_df = 259.8;<br />

if(isValidNum(m->R_max_dZ)) mcomp->R_max_dZ = m->R_max_dZ;<br />

else mcomp->R_max_dZ = 31.9;<br />

return mcomp;<br />

}<br />

/* legacy code - not used currently */<br />

void pitchCorrection(Minimum m) {<br />

double f;<br />

double fcalc = m->f;

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

Saved successfully!

Ooh no, something went wrong!