view util/matlab_midi/midi2freq.m @ 247:ecce33192fcc tip

Added tag ver_2.1 for changeset cef4500b936f
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 31 Oct 2012 12:24:44 +0000
parents a30e8bd6d948
children
line wrap: on
line source
function f = midi2freq(m)
% f = midi2freq(m)
%     
% Convert MIDI note number (m=0-127) to 
% frequency, f,  in Hz
% (m can also be a vector or matrix)
%

% Copyright (c) 2009 Ken Schutte
% more info at: http://www.kenschutte.com/midi

f = (440/32)*2.^((m-9)/12);