1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
type
Instrument=record
Sound :word;
iLevel :word;
ATDC :word;
STRL :word;
Wave :word;
Feedback:Byte;
end;
Melodic: array[0..10] of byte=($21,$21,$8f,$0c,$f2,$f2,$45,$76,$00,$00,$08); { Acoustic Grand Piano }
procedure SetInstrument;
var
Instr:^Instrument;
begin
Instr:=@Melodic;
With Instr^ do begin
WriteR($20,Lo(Sound));
WriteR($60,Lo(ATDC));
WriteR($80,Lo(STRL));
WriteR($E0,Lo(Wave));
WriteR($23,Hi(Sound));
WriteR($63,Hi(ATDC));
WriteR($83,Hi(STRL));
WriteR($E3,Hi(Wave));
WriteR($C0,FeedBack);
end;
end; |
Partager