Page 386 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 386
scale[16]=rest; note[16]=R4;
scale[17]=A_L; note[17]=N4;
scale[18]=C; note[18]=N2;
scale[19]=rest; note[19]=R4;
scale[20]=E; note[20]=N4;
scale[21]=D; note[21]=N2;
scale[22]=G_L; note[22]=N8;
scale[23]=rest; note[23]=R48;
scale[24]=G_L; note[24]=N8;
scale[25]=C; note[25]=N8;
scale[26]=D; note[26]=N8;
scale[27]=E; note[27]=N4;
scale[28]=C; note[28]=N4;
scale[29]=A_L; note[29]=N8;
scale[30]=rest; note[30]=R48;
scale[31]=A_L; note[31]=N8;
scale[32]=C; note[32]=N8;
scale[33]=rest; note[33]=R48;
scale[34]=C; note[34]=N8;
scale[35]=G_L; note[35]=N4;
scale[36]=rest; note[36]=R4;
scale[37]=A_L; note[37]=N4;
scale[38]=C; note[38]=N4;
scale[39]=B_L; note[39]=N4;
scale[40]=D; note[40]=N4;
scale[41]=C; note[41]=N4;
scale[42]=rest; note[42]=R4;
end
// 음계 발생
always @ (posedge clk,negedge reset)
begin
if(!reset)
begin
sound_cnt<=0;
spk<=0;
end
else
begin
if(sw)
begin
- 379 -