diff options
Diffstat (limited to 'sfx/explode.sdx')
-rw-r--r-- | sfx/explode.sdx | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sfx/explode.sdx b/sfx/explode.sdx new file mode 100644 index 0000000..5d898da --- /dev/null +++ b/sfx/explode.sdx @@ -0,0 +1,46 @@ +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.NOISE|SID.ControlFlag.GATE|SID.ControlFlag.SYNC); +SID.Control(1,SID.ControlFlag.NOISE|SID.ControlFlag.GATE|SID.ControlFlag.SYNC); +SID.Control(2,SID.ControlFlag.NOISE|SID.ControlFlag.GATE); + +for(uint l=0;l<2;l++) +{ +/* +for(uint f=0;f<3000;f+=100) +{ + SID.Frequency(0,f); + SID.Frequency(1,f); + SID.Frequency(1,f); + //SID.Volume((byte)(f&0x0fu)); + Thread.Sleep(1); +} +*/ +for(uint f=3000;f>0;f-=100) +{ + SID.Frequency(0,l*1500u+f); + SID.Frequency(1,1000u+f); + SID.Frequency(2,l*500u+f); + //SID.Volume((byte)(f&0x0fu)); + Thread.Sleep(1); +} + +} + +for(byte f=15;f>0;--f) +{ + SID.Volume(f); + Thread.Sleep(100); +} + +SID.Control(0,SID.ControlFlag.NONE); +SID.Control(1,SID.ControlFlag.NONE); +SID.Control(2,SID.ControlFlag.NONE); +Thread.Sleep(1000); + +SID.Volume(0); |