summaryrefslogtreecommitdiff
path: root/sfx/pop.sdx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx/pop.sdx')
-rw-r--r--sfx/pop.sdx37
1 files changed, 37 insertions, 0 deletions
diff --git a/sfx/pop.sdx b/sfx/pop.sdx
new file mode 100644
index 0000000..ecef7d1
--- /dev/null
+++ b/sfx/pop.sdx
@@ -0,0 +1,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);