home *** CD-ROM | disk | FTP | other *** search
- include avatar.inc
-
- AVTbegin ;; Begin an Avatar program
-
- ; Music for the heart
-
- play A, 0, 14 ;; The '0' means middle octave
- pause 2
- play A, 0, 1
- pause 1
- play A, 0, 1
- pause 1
- play C, 1, 12 ;; The '1' is one octave above middle
- pause 2
- play C, 1, 1
- pause 1
- play C, 1, 1
- pause 1
- play E, 1, 8
- pause 1
- play C, 1, 8
- pause 1
- play A, 0, 16
- pause 1
-
- moveup ;; move cursor one line up
- cleol ;; clear the rest of line
-
- moveup ;; move cursor one line up
- cleol ;; clear the rest of line
-
- ;; We create a true window and switch to it
-
- newwindow 'A', 15, 7, 15, 18, 65
- locate 1, 1 ;; move in the upper left corner
-
- ;; Frame the window by writing in clockwise direction
-
- clockwise '╔══╡AVATAR window╞'
- repeatchar 205, 32
- write 187
- repeatchar 186, 10
- write 188
- repeatchar 205, 49
- write 200
- repeatchar 186, 10
-
- ;; Now we shrink current window by one at each end, so the frame
- ;; will not be written over. We also clear the window.
-
- setwindow 'A', 15, 8, 16, 17, 64
- cls
-
- ;; Let's also play some tune after we exit this program
-
- play A, 0, 1
- pause 1
- play E, 1, 12
- pause 1
- play A, 0, 1
- pause 2
- play A, 0, 1
- pause 1
- play E, 1, 12
- pause 1
- play A, 0, 1
- pause 2
- ;play A, 0, 1
- ;pause 1
- play A, 0, 16
- pause 1
- play A, 0, 2
-
- AVTend ;; End the Avatar program
-
-