... | ... |
@@ -9,7 +9,7 @@ |
9 | 9 |
) |
10 | 10 |
|
11 | 11 |
@timer $1 |
12 |
-@song [ ¬e $1 ] |
|
12 |
+@progress $1 |
|
13 | 13 |
|
14 | 14 |
( devices ) |
15 | 15 |
|
... | ... |
@@ -38,7 +38,7 @@ BRK |
38 | 38 |
( skip ) .timer PEK #10 NEQ ;silence JNZ2 |
39 | 39 |
|
40 | 40 |
( get note ) |
41 |
- ;melody #00 .song/note PEK ADD2 GET ( -- note ) |
|
41 |
+ ;melody #00 .progress PEK ADD2 GET ( -- note ) |
|
42 | 42 |
|
43 | 43 |
( play note ) |
44 | 44 |
DUP #80 ORA .Audio/pitch DEO ( -- note ) ( OR note with #80 and set the audio pitch to it. ) |
... | ... |
@@ -49,11 +49,11 @@ BRK |
49 | 49 |
|
50 | 50 |
( draw note ) |
51 | 51 |
#00 SWP #0004 MUL2 #0100 SUB2 .Screen/y DEO2 ( calculate the y position of a dot. TODO make this not upside down ) |
52 |
- #00 .song/note PEK #0008 MUL2 .Screen/x DEO2 ( calculate the x position of a dot ) |
|
52 |
+ #00 .progress PEK #0008 MUL2 .Screen/x DEO2 ( calculate the x position of a dot ) |
|
53 | 53 |
;dot .Screen/addr DEO2 ( set the sprite for a dot ) |
54 | 54 |
#21 .Screen/color DEO ( draw a dot ) |
55 | 55 |
|
56 |
- ( incr ) .song/note PEK #01 ADD #20 MOD .song/note POK |
|
56 |
+ ( incr ) .progress PEK #01 ADD #20 MOD .progress POK |
|
57 | 57 |
|
58 | 58 |
#00 .timer POK |
59 | 59 |
|
... | ... |
@@ -86,7 +86,7 @@ BRK |
86 | 86 |
|
87 | 87 |
BRK |
88 | 88 |
|
89 |
-( song data. note ff is used for a rest. ) |
|
89 |
+( song data, #ff is used for a rest ) |
|
90 | 90 |
|
91 | 91 |
@melody [ |
92 | 92 |
54 52 54 4f 4b 4f 48 ff |
... | ... |
@@ -95,6 +95,6 @@ BRK |
95 | 95 |
56 52 54 52 54 50 54 ff |
96 | 96 |
] |
97 | 97 |
|
98 |
-( dot sprite for on-screen ) |
|
98 |
+( dot sprite ) |
|
99 | 99 |
|
100 | 100 |
@dot [ 003c 7eff 7e3c 0000 ] |