function [chromaticHz, majHz, minHz] = precalculateNotes(octaves, key)

A2 = 110;

% CHROMATIC
chromaticHz = zeros(12*octaves, 1);

chromaticHz(1,1) = A2;

for j=2:(12*octaves)
   chromaticHz(j,1) = chromaticHz(j-1,1) * 2^(1/12);
end

% MAJOR
majHz = zeros(7*octaves,1);

majHz(1,1) = noteunwrap(key);

for j = 2:7*octaves
    if mod(j,7)==1 || mod(j,7)==4
        majHz(j,1) = majHz(j-1,1) * 2^(1/12);
    else
        majHz(j,1) = majHz(j-1,1) * 2^(1/6);
    end
end

% MINOR

minHz = zeros(7*octaves,1);

minHz(1,1) = noteunwrap(key);

for j = 2:7*octaves
    if mod(j,7)==3 || mod(j,7)==6
        minHz(j,1) = minHz(j-1,1) * 2^(1/12);
    else
        minHz(j,1) = minHz(j-1,1) * 2^(1/6);
    end
end

    