comparison util/matlab_midi/midi2freq.m @ 81:a30e8bd6d948

matlab_midi scripts
author Ivan <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 28 Mar 2011 17:35:01 +0100
parents
children
comparison
equal deleted inserted replaced
80:16df822019f1 81:a30e8bd6d948
1 function f = midi2freq(m)
2 % f = midi2freq(m)
3 %
4 % Convert MIDI note number (m=0-127) to
5 % frequency, f, in Hz
6 % (m can also be a vector or matrix)
7 %
8
9 % Copyright (c) 2009 Ken Schutte
10 % more info at: http://www.kenschutte.com/midi
11
12 f = (440/32)*2.^((m-9)/12);