Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/7_sounds.py
blob: 90de9fb3772e202b496a15c2c85587207c069c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)