% Mario Theme Song
clear all clc
%% Define the pitches of the notes % Note_s = Note sharp % Note_b = Nobe flat
A = 440;
A_s = 1087 * A / 1026; B_b = A_s;
B = 4134 * A / 3683;
C = 2093 * A /1760;
C_s = 1110 * A / 881; D_b = C_s;
D = 295 * A / 221;
D_s = 2489 * A / 1760; E_b = D_s;
E = 3118 * A / 2081;
F = 3278 * A / 2065;
F_s = 3372 * A / 2005; G_b = F_s;
G = 1429 * A / 802;
G_s = 3868 * A / 2049; A_b = G_s;
Rest = 0;
%% Note Lengths
del = 0.0001; t = 0:del:1;
ThirtySec = t(1:floor(length(t)/32)); Sixteenth = t(1:floor(length(t)/16)); Eighth = t(1:floor(length(t)/8)); Quarter = t(1:floor(length(t)/4)); Half = t(1:floor(length(t)/2));
Space = t(1:5);
%% Page 1
% ----- % Measure 1 % ----- y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Space); sound(y,(3/4)/del); y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Space); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*G*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% ----- % Measure 2 % -----
y = sin(2*pi*C*(Eighth)); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(E/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Eighth); sound(y,(3/4)/del); y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Eighth); sound(y,(3/4)/del);
% ----- % Measure 3 % -----
y = sin(2*pi*(G/2)*(Sixteenth)); sound(y,(3/4)/del); y = sin(2*pi*E*(Sixteenth)); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*B*(Eighth)); sound(y,(3/4)/del);
% ----- % Measure 4 % -----
y = sin(2*pi*C*(Eighth)); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(E/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Eighth); sound(y,(3/4)/del); y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Eighth); sound(y,(3/4)/del);
% ----- % Measure 5 % -----
y = sin(2*pi*(G/2)*(Sixteenth * 1.5)); sound(y,(3/4)/del); y = sin(2*pi*E*(Sixteenth)); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*B*(Eighth)); sound(y,(3/4)/del);
% ----- % Measure 6 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del);
% ----- % Measure 7 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F_s*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(C*2)*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(C*2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(C*2)*Quarter); sound(y,(3/4)/del);
% ----- % Measure 8 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F_s*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del);
% ----- % Measure 9 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*D*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% -----
%% Page 2
% ----- % Measure 10 = Measure 6 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del);
% ----- % Measure 11 = Measure 7 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F_s*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(C*2)*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(C*2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(C*2)*Quarter); sound(y,(3/4)/del);
% ----- % Measure 12 = Measure 8 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F_s*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del);
% ----- % Measure 13 = Measure 9 % -----
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*D_s*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*D*(Eighth)); sound(y,(3/4)/del); y = sin(2*pi*C*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% ----- % Measure 14 % -----
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Half); sound(y,(3/4)/del);
% ----- % Measure 15 % -----
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G/2)*Quarter); sound(y,(3/4)/del);
% ----- % Measure 16 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*G*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% ----- % Measure 17 % -----
y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(E/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Eighth); sound(y,(3/4)/del); y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Eighth); sound(y,(3/4)/del);
% ----- % Measure 18 % -----
y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*B*Eighth); sound(y,(3/4)/del);
% ----- % Measure 19 = Measure 17 % -----
y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(E/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Eighth); sound(y,(3/4)/del); y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Eighth); sound(y,(3/4)/del);
% ----- % Measure 20 = Measure 18 % -----
y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*B*Eighth); sound(y,(3/4)/del);
% ----- % Measure 21 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Quarter); sound(y,(3/4)/del);
% ----- % Measure 22 % -----
y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G/2)*Quarter); sound(y,(3/4)/del);
% -----
%% Page 3
% ----- % Measure 23 = Measure 21 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Quarter); sound(y,(3/4)/del);
% ----- % Measure 24 % -----
y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% ----- % Measure 25 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Quarter); sound(y,(3/4)/del);
% ----- % Measure 26 = Measure 22 % -----
y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G/2)*Quarter); sound(y,(3/4)/del);
% ----- % Measure 27 = Measure 23 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Quarter); sound(y,(3/4)/del);
% ----- % Measure 28 = Measure 24 % -----
y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% ----- % Measure 29 % -----
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G/2)*Quarter); sound(y,(3/4)/del);
% ----- % Measure 30 = Measure 14 % -----
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Half); sound(y,(3/4)/del);
% ----- % Measure 31 % -----
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(G/2)*Quarter); sound(y,(3/4)/del);
% ----- % Measure 32 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*G*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% ----- % Measure 33 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Quarter); sound(y,(3/4)/del);
% ----- % Measure 34 % -----
y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*G*Quarter); sound(y,(3/4)/del);
% -----
%% Page 4
% ----- % Measure 35 % -----
y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(G_s/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*A*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Quarter); sound(y,(3/4)/del);
% ----- % Measure 36 % -----
y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*F*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*C*Quarter); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Quarter); sound(y,(3/4)/del);
% ----- % Measure 37 % -----
y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(E/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Eighth); sound(y,(3/4)/del); y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Eighth); sound(y,(3/4)/del);
% ----- % Measure 38 % -----
y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*E*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*(A*2)*Eighth); sound(y,(3/4)/del); y = sin(2*pi*F*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*G*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*E*Eighth); sound(y,(3/4)/del); y = sin(2*pi*C*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*D*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*B*Eighth); sound(y,(3/4)/del);
% ----- % Measure 38 % -----
y = sin(2*pi*C*Eighth); sound(y,(3/4)/del); y = sin(2*pi*(G/2)*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*(E/2)*Eighth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A*Eighth); sound(y,(3/4)/del); y = sin(2*pi*B*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*Rest*Sixteenth); sound(y,(3/4)/del);
y = sin(2*pi*A_s*Sixteenth); sound(y,(3/4)/del); y = sin(2*pi*A*Eighth); sound(y,(3/4)/del);