summaryrefslogtreecommitdiff
path: root/sfx/pop.sdx
blob: ecef7d11bda2909547a64b0c7917840b61d866fc (plain)
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
32
33
34
35
36
37
SID.Volume(15);

Thread.Sleep(1000);

SID.ADSR(0,0,0,15,0);
SID.Control(0,SID.ControlFlag.PULSE|SID.ControlFlag.GATE|SID.ControlFlag.SYNC);
//SID.PulseWidth(0,1500);

uint m=20000;
uint s=2000;

for(uint f=0;f<=m;f+=s)
{
	SID.PulseWidth(0,f);
	SID.Frequency(0,1500u+f);
	Thread.Sleep(1);
}

for(uint f=m;f>0;f-=s)
{
	SID.PulseWidth(0,f);
	SID.Frequency(0,1500u+f);
	Thread.Sleep(1);
}

for(byte f=15;f>0;--f)
{
	SID.Volume(f);
	Thread.Sleep(1);
}

SID.Control(0,SID.ControlFlag.NONE);
SID.Control(1,SID.ControlFlag.NONE);
SID.Control(2,SID.ControlFlag.NONE);
Thread.Sleep(1000);

SID.Volume(0);