view util/matlab_midi/midi2freq.m @ 221:c1efdd5d6250 luisf_dev

added ompbox_fast as sparse approximation solver, which calls the functions in ompbox using the fastest implementation
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Wed, 11 Apr 2012 16:13:08 +0100
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);