Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/7_sounds.py
diff options
context:
space:
mode:
Diffstat (limited to 'pynxc/tutorial_samples/7_sounds.py')
-rw-r--r--pynxc/tutorial_samples/7_sounds.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/7_sounds.py b/pynxc/tutorial_samples/7_sounds.py
new file mode 100644
index 0000000..90de9fb
--- /dev/null
+++ b/pynxc/tutorial_samples/7_sounds.py
@@ -0,0 +1,22 @@
+DEFINE TIME=300
+DEFINE MAXVOL=7
+DEFINE MINVOL=1
+DEFINE MIDVOL=3
+
+DEFINE pause_4th=Wait(TIME)
+DEFINE pause_8th=Wait(TIME/2)
+DEFINE note_4th=PlayFileEx("! Click.rso",MIDVOL,FALSE); pause_4th
+DEFINE note_8th=PlayFileEx("! Click.rso",MAXVOL,FALSE); pause_8th
+
+def main():
+ PlayFileEx("! Startup.rso",MINVOL,False)
+ Wait(2000)
+ note_4th
+ note_8th
+ note_8th
+ note_4th
+ note_4th
+ pause_4th
+ note_4th
+ note_4th
+ Wait(100)