MIDI note number to frequency

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Convert MIDI note numbers to musical note frequencies.

Note: Frequency is related to note number by F = 6.875 * 2 ^ (n / 12)

--smkt

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

33
34
35
36
37
38
39
40
41
42
43
44
55
52
49
47
60
54
56
50
51
59
61
45
53
57
62
48
46
58
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117

Sample output:

55.00
58.27
61.74
65.41
69.30
73.42
77.78
82.41
87.31
92.50
98.00
103.83
196.00
164.81
138.59
123.47
261.63
185.00
207.65
146.83
155.56
246.94
277.18
110.00
174.61
220.00
293.66
130.81
116.54
233.08
311.13
329.63
349.23
369.99
392.00
415.30
440.00
466.16
493.88
523.25
554.37
587.33
622.25
659.26
698.46
739.99
783.99
830.61
880.00
932.33
987.77
1046.50
1108.73
1174.66
1244.51
1318.51
1396.91
1479.98
1567.98
1661.22
1760.00
1864.66
1975.53
2093.00
2217.46
2349.32
2489.02
2637.02
2793.83
2959.96
3135.96
3322.44
3520.00
3729.31
3951.07
4186.01
4434.92
4698.64
4978.03
5274.04
5587.65
5919.91
6271.93
6644.88
7040.00

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1xsot440.01902016/05/24 14:21:290B / 23B / 19B
2Histocrat440.01142016/05/25 01:07:160B / 18B / 23B
3teebee440.01152016/05/25 04:31:050B / 22B / 20B
4mitchs440.01172016/05/25 23:41:350B / 22B / 20B
5ludo440.02612016/05/26 22:04:150B / 19B / 22B
6llhuii440.01322016/05/27 00:48:380B / 19B / 22B
7purintai570.01172016/05/25 12:46:000B / ?B / ?B

Ruby2 _

RankUserSizeTimeDateStatistics
1xsot440.08162016/05/24 14:24:010B / 23B / 19B
2teebee440.06472016/05/25 04:32:480B / 22B / 20B
3mitchs440.18442016/05/25 23:43:250B / 23B / 21B
4ludo440.14252016/05/26 22:04:250B / 22B / 20B
5llhuii440.06172016/05/27 00:50:070B / 19B / 22B
6kimiyuki450.23952016/05/24 23:08:570B / 21B / 24B

Perl _

RankUserSizeTimeDateStatistics
1tails360.01102016/05/24 17:24:450B / 19B / 16B
2%20360.01182016/05/24 20:04:570B / 19B / 16B
3mitchs360.01102016/05/24 22:31:090B / 19B / 16B
4teebee360.01252016/05/25 04:30:290B / 19B / 16B
5Hem360.01122016/05/25 12:59:480B / 19B / 16B
6Hendrik360.02612016/05/26 07:01:230B / 19B / 16B
7llhuii360.01112016/05/26 18:02:400B / ?B / ?B
8ludo360.01992016/05/26 22:04:440B / 19B / 16B
9kimiyuki370.01452016/05/24 22:58:260B / 18B / 18B
10yuki370.01512016/05/25 17:05:020B / 18B / 18B
11rsFalse400.01712016/10/09 06:45:310B / 20B / 20B

Python _

RankUserSizeTimeDateStatistics
1xsot440.05012016/05/24 13:47:570B / 27B / 16B
2mitchs440.02822016/05/24 21:55:470B / 27B / 16B
3rolf440.03092016/05/25 03:11:100B / 27B / 16B
4teebee440.03112016/05/25 04:42:110B / 27B / 16B
5ludo440.03802016/05/26 22:05:140B / 27B / 16B
6llhuii440.04542016/05/27 00:29:420B / 27B / 16B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs500.06892016/05/24 21:58:220B / 30B / 19B
2xsot500.08642016/05/24 22:49:010B / 30B / 19B
3teebee500.06682016/05/25 09:01:540B / 30B / 19B
4ludo500.07662016/05/26 22:05:250B / 30B / 19B
5llhuii500.06192016/05/27 00:31:530B / 30B / 19B
6kimiyuki520.06862016/05/24 23:04:200B / 28B / 23B

PHP _

RankUserSizeTimeDateStatistics
1teebee560.28592016/05/25 15:08:485B / 30B / 21B

Pike _

RankUserSizeTimeDateStatistics
1teebee830.09192016/05/25 15:20:410B / 48B / 34B

Common LISP _

RankUserSizeTimeDateStatistics
1rolf510.03642016/05/25 06:08:460B / 28B / 21B
2teebee510.03832016/05/25 14:01:040B / 29B / 19B
3teebee(rolf)490.07942016/05/30 03:24:250B / 27B / 19B

Clojure _

RankUserSizeTimeDateStatistics
1teebee560.82442016/05/25 15:13:130B / 33B / 20B

Io _

RankUserSizeTimeDateStatistics
1teebee800.14052016/05/25 15:51:550B / 61B / 17B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee610.01562016/05/25 09:03:520B / 42B / 19B
2FizzyTea610.02172016/05/26 07:17:110B / 42B / 19B

Lua _

RankUserSizeTimeDateStatistics
1teebee600.01212016/05/25 06:09:200B / 37B / 22B
2Hendrik600.01632016/05/25 16:32:580B / 37B / 22B

Tcl _

RankUserSizeTimeDateStatistics
1teebee640.02252016/05/25 07:52:270B / 39B / 18B
2toomas640.01932016/05/25 20:36:120B / 39B / 18B

Xtal _

RankUserSizeTimeDateStatistics
1teebee710.01932016/05/25 08:23:380B / 40B / 30B

REXX _

RankUserSizeTimeDateStatistics
1teebee530.00432016/05/25 08:26:390B / 38B / 13B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee440.12292016/05/25 15:24:060B / 27B / 17B
2mitchs440.04302016/05/25 23:52:140B / 27B / 17B
3Hendrik440.01662016/05/26 07:01:130B / 27B / 17B
4tails440.03812016/05/26 09:17:240B / 27B / 17B

Prolog _

RankUserSizeTimeDateStatistics
1teebee480.19882016/05/25 15:25:100B / 26B / 21B

Perl6 _

RankUserSizeTimeDateStatistics
1teebee400.60482016/05/25 08:18:440B / 23B / 14B
2ludo401.04652016/05/26 22:05:000B / 23B / 14B

J _

RankUserSizeTimeDateStatistics
1pooq400.03612016/05/25 23:23:480B / 19B / 20B

K _

RankUserSizeTimeDateStatistics
1teebee380.00462016/05/25 08:09:300B / 15B / 22B

C _

RankUserSizeTimeDateStatistics
1mitchs650.01062016/05/26 09:44:590B / 39B / 26B
2llhuii650.01072016/05/27 00:43:380B / 37B / 28B
3teebee650.01402016/05/27 06:00:150B / 37B / 28B
4xsot650.01312016/05/27 08:14:070B / 39B / 26B
5tails650.01262016/05/27 09:45:480B / 37B / 28B
6lpha660.01072016/05/26 07:26:410B / 37B / 29B
7kimiyuki690.01082016/05/24 23:21:530B / 36B / 33B
8chocobi690.01072016/05/25 08:21:410B / 36B / 33B
9rolf700.01072016/05/25 04:33:370B / 40B / 30B
10smkt710.01092016/05/24 11:22:580B / 38B / 33B
11%20730.01112016/05/24 20:07:330B / 41B / 31B

Haskell _

RankUserSizeTimeDateStatistics
1henkma800.01522016/05/27 06:16:150B / 55B / 22B
2yuki810.01672016/05/26 15:55:430B / 54B / 24B
3nagibator2005840.01502016/05/27 06:59:130B / ?B / ?B

ObjC _

RankUserSizeTimeDateStatistics
1mitchs650.01072016/05/27 00:24:010B / 39B / 26B
2llhuii650.01082016/05/27 00:43:440B / 37B / 28B
3teebee650.01072016/05/27 06:06:090B / 37B / 28B

Java _

RankUserSizeTimeDateStatistics
1dc1360.10362016/05/24 19:32:110B / 89B / 42B
2Klemmbrett1360.10852016/05/24 19:58:090B / ?B / ?B
3teebee1360.10332016/05/24 21:55:160B / 89B / 42B

Pascal _

RankUserSizeTimeDateStatistics
1teebee740.00542016/05/25 15:27:070B / 52B / 18B

C# _

RankUserSizeTimeDateStatistics
1olf1420.06572016/05/26 00:52:550B / 101B / 37B
2ludo1280.06792016/05/27 12:02:120B / 89B / 35B

Maxima _

RankUserSizeTimeDateStatistics
1teebee521.77632016/05/25 08:43:580B / 29B / 19B

Octave _

RankUserSizeTimeDateStatistics
1teebee430.20792016/05/25 08:42:360B / 23B / 20B
2ludo430.67082016/05/27 10:17:240B / 23B / 20B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee540.09292016/05/25 08:45:350B / 32B / 19B

AWK _

RankUserSizeTimeDateStatistics
1olf310.02562016/05/24 20:41:080B / 16B / 15B
2mitchs310.01062016/05/24 22:28:250B / 16B / 15B
3teebee310.01162016/05/25 04:32:080B / 16B / 15B
4Hendrik310.01222016/05/26 07:01:020B / 15B / 16B
5ludo310.01592016/05/26 22:05:470B / 16B / 15B
6llhuii310.01072016/05/27 00:25:100B / 16B / 15B

jq _

RankUserSizeTimeDateStatistics
1teebee660.01282016/05/25 08:51:250B / 33B / 32B

Bash _

RankUserSizeTimeDateStatistics
1tails340.04662016/05/24 22:26:140B / 25B / 8B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails780.09082016/05/24 23:52:590B / 41B / 29B

bc _

RankUserSizeTimeDateStatistics
1teebee581.82662016/05/25 07:38:180B / 33B / 24B

dc _

RankUserSizeTimeDateStatistics
1tails370.05802016/05/24 21:21:490B / 26B / 11B
2%20450.05632016/05/24 21:13:450B / 33B / 12B

xgawk _

RankUserSizeTimeDateStatistics
1mitchs330.01092016/05/26 23:27:540B / 18B / 15B
2llhuii330.01092016/05/27 00:25:290B / 19B / 14B
3ludo330.01742016/05/27 10:17:580B / 18B / 15B

R _

RankUserSizeTimeDateStatistics
1teebee520.14132016/05/25 08:57:160B / 32B / 20B
2ludo520.30032016/05/27 10:18:200B / 32B / 20B

GolfScript _

RankUserSizeTimeDateStatistics
1tails350.03352016/05/27 00:06:260B / 16B / 19B

goruby _

RankUserSizeTimeDateStatistics
1mitchs330.04392016/05/25 23:45:260B / 18B / 15B
2olf350.09252016/05/25 22:43:570B / 17B / 18B

Groovy _

RankUserSizeTimeDateStatistics
1teebee610.97202016/05/25 07:58:090B / 41B / 20B

Scala _

RankUserSizeTimeDateStatistics
1teebee572.54182016/05/25 08:02:090B / 38B / 19B
2Hendrik574.17822016/05/26 07:01:380B / 38B / 19B

Logo _

RankUserSizeTimeDateStatistics
1teebee570.18422016/05/25 15:30:060B / 42B / 6B

Language Ranking_

RankLangUserSizeScore
1AWKolf3110000
2gorubymitchs339393
3xgawkmitchs339393
4Bashtails349117
5GolfScripttails358857
6Perltails368611
7dctails378378
8Kteebee388157
9Perl6teebee407750
10Jpooq407750
11Octaveteebee437209
12Pythonxsot447045
13Rubyxsot447045
14Ruby2xsot447045
15PARI/GPteebee447045
16Prologteebee486458
17Common LISPteebee(rolf)496326
18Python3mitchs506200
19Maximateebee525961
20Rteebee525961
21REXXteebee535849
22Asymptoteteebee545740
23PHPteebee565535
24Clojureteebee565535
25Scalateebee575438
26Logoteebee575438
27bcteebee585344
28Luateebee605166
29Groovyteebee615081
30JavaScriptteebee615081
31Tclteebee644843
32Cmitchs654769
33ObjCmitchs654769
34jqteebee664696
35Xtalteebee714366
36Pascalteebee744189
37Bash (builtins)tails783974
38Ioteebee803875
39Haskellhenkma803875
40Piketeebee833734
41C#ludo1282421
42Javadc1362279

return top