function freq = midiPitch2Freq(midiPitch, tuningFreqInHz)
% freq = midiPitch2Freq(midiPitch, tuningFreqInHz)
% 
% converts midi pitch index to frequency given a tuning frequeny

freq = tuningFreqInHz * 2.^((midiPitch - 69)/12); % midi pitch 69 belongs to A4, the standard pitch, for which the tuning freq is given
