Cody

Solution 82391

Submitted on 25 Apr 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% [c,s]=chromatic_tuner(440); assert(c==0 && strcmp(s,'A4'));

Error: Undefined function or variable 'semiToneRatio'.

2   Fail
%% [c,s]=chromatic_tuner(154); assert(c==-17 && strcmp(s,'D#3'));

Error: Undefined function or variable 'semiToneRatio'.

3   Fail
%% [c,s]=chromatic_tuner(478); assert(c==43 && strcmp(s,'A#4'));

Error: Undefined function or variable 'semiToneRatio'.

4   Fail
%% [c,s]=chromatic_tuner(795); assert(c==24 && strcmp(s,'G5'));

Error: Undefined function or variable 'semiToneRatio'.

5   Fail
%% [c,s]=chromatic_tuner(8651); assert(c==-43 && strcmp(s,'C#9'));

Error: Undefined function or variable 'semiToneRatio'.

6   Fail
%% [c,s]=chromatic_tuner(200); assert(c==35 && strcmp(s,'G3'));

Error: Undefined function or variable 'semiToneRatio'.

7   Fail
%% [c,s]=chromatic_tuner(11534); assert(c==-45 && strcmp(s,'F#9'));

Error: Undefined function or variable 'semiToneRatio'.

8   Fail
%% [c,s]=chromatic_tuner(163); assert(c==-19 && strcmp(s,'E3'));

Error: Undefined function or variable 'semiToneRatio'.

9   Fail
%% [c,s]=chromatic_tuner(7226); assert(c==45 && strcmp(s,'A8'));

Error: Undefined function or variable 'semiToneRatio'.

10   Fail
%% [c,s]=chromatic_tuner(2391); assert(c==30 && strcmp(s,'D7'));

Error: Undefined function or variable 'semiToneRatio'.

11   Fail
%% [c,s]=chromatic_tuner(17221); assert(c==49 && strcmp(s,'C10'));

Error: Undefined function or variable 'semiToneRatio'.

12   Fail
%% [c,s]=chromatic_tuner(11050); assert(c==-20 && strcmp(s,'F9'));

Error: Undefined function or variable 'semiToneRatio'.

13   Fail
%% [c,s]=chromatic_tuner(40865); assert(c==45 && strcmp(s,'D#11'));

Error: Undefined function or variable 'semiToneRatio'.

14   Fail
%% [c,s]=chromatic_tuner(37396); assert(c==-9 && strcmp(s,'D11'));

Error: Undefined function or variable 'semiToneRatio'.

15   Fail
%% [c,s]=chromatic_tuner(789); assert(c==11 && strcmp(s,'G5'));

Error: Undefined function or variable 'semiToneRatio'.

16   Fail
%% [c,s]=chromatic_tuner(9870); assert(c==-15 && strcmp(s,'D#9'));

Error: Undefined function or variable 'semiToneRatio'.

17   Fail
%% [c,s]=chromatic_tuner(306); assert(c==-29 && strcmp(s,'D#4'));

Error: Undefined function or variable 'semiToneRatio'.

18   Fail
%% [c,s]=chromatic_tuner(96); assert(c==-36 && strcmp(s,'G2'));

Error: Undefined function or variable 'semiToneRatio'.

19   Fail
%% [c,s]=chromatic_tuner(13513); assert(c==29 && strcmp(s,'G#9'));

Error: Undefined function or variable 'semiToneRatio'.

20   Fail
%% [c,s]=chromatic_tuner(2489); assert(c==0 && strcmp(s,'D#7'));

Error: Undefined function or variable 'semiToneRatio'.

21   Fail
%% [c,s]=chromatic_tuner(2166); assert(c==-41 && strcmp(s,'C#7'));

Error: Undefined function or variable 'semiToneRatio'.