I have never heard that the term “pad” is used here, but it sounds like a synthesizer sound, playing main chords.
, , sin (, 440 , A Major), (880, 1760, 3520) () . (# E), .
, .
: " () ", , .
F = 440;
tone[t] = A * sin(t/F) + B * sin(t/(2*F)) + C * sin(t/(3*F));
, ,
A = 1.0;
B = 1.0/2.0;
C = 1.0/3.0;
- .
ADSR (, ) , 0 1 , , "" , (, 0,7), 0, "" .
/ , .
D = 4410;
tone[t] += 0.5 * tone[t-D];