Mercurial > hg > smallbox
annotate util/matlab_midi/midi2freq.m @ 218:c38d965b5a1d luisf_dev
Moved CVX_add_const_Audio_declipping.m from solvers to the examples/AudioInpainting folder.
author | Aris Gretsistas <aris.gretsistas@eecs.qmul.ac.uk> |
---|---|
date | Thu, 22 Mar 2012 15:37:45 +0000 |
parents | a30e8bd6d948 |
children |
rev | line source |
---|---|
ivan@81 | 1 function f = midi2freq(m) |
ivan@81 | 2 % f = midi2freq(m) |
ivan@81 | 3 % |
ivan@81 | 4 % Convert MIDI note number (m=0-127) to |
ivan@81 | 5 % frequency, f, in Hz |
ivan@81 | 6 % (m can also be a vector or matrix) |
ivan@81 | 7 % |
ivan@81 | 8 |
ivan@81 | 9 % Copyright (c) 2009 Ken Schutte |
ivan@81 | 10 % more info at: http://www.kenschutte.com/midi |
ivan@81 | 11 |
ivan@81 | 12 f = (440/32)*2.^((m-9)/12); |