summaryrefslogtreecommitdiff
path: root/sfx/powerstop.sdx
blob: b123e031b0674e61059719f5c4e5b1bb41de3249 (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
SID.Volume(15);

Thread.Sleep(1000);

SID.ADSR(0,0,0,15,0);
SID.ADSR(1,0,0,15,0);
SID.ADSR(2,0,0,15,0);
SID.Control(0,SID.ControlFlag.SAW|SID.ControlFlag.GATE|SID.ControlFlag.SYNC);
SID.Control(1,SID.ControlFlag.TRIANGLE|SID.ControlFlag.GATE|SID.ControlFlag.SYNC);
SID.Control(2,SID.ControlFlag.SAW|SID.ControlFlag.GATE);

for(uint f=3000;f>0;f-=100)
//for(uint f=0;f<=3000;f+=100)
{
	SID.Frequency(0,1500u+f);
	SID.Frequency(1,6000u+f);
	Thread.Sleep(1);
	SID.Frequency(0,6000u+f);
	SID.Frequency(1,1500u+f);
	Thread.Sleep(1);
}

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

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

SID.Volume(0);