Mercurial > hg > smallbox
view util/matlab_midi/midi2freq.m @ 124:436e6c044099 sup_158_IMG_Processing_toolbox_
Pierre_Villars_Example.m - removed IMP toolbox dependencies
author | Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 May 2011 15:20:04 +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);