-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
116fedc
commit 90f347a
Showing
3 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
// Lets you use your calculator to compose scores of utmost beauty. | ||
|
||
// Lets you use your calculator to compose scores of utmost elegance. | ||
export def key { | ||
GETKEY | ||
GETKEY1 | ||
STO 00 | ||
if { } >= { 10 } { | ||
|
||
// Exit if key 33 is pressed (EXIT) | ||
if { DUP } == { 33 } { | ||
DROP | ||
STOP | ||
} | ||
|
||
// Play tone 0 if key 10 is pressed (SIN) | ||
if { DUP } == { 10 } { | ||
DROP | ||
TONE 0 | ||
GTO key | ||
} | ||
|
||
// Do nothing if other keys are pressed | ||
if { } > { 10 } { | ||
GTO key | ||
} | ||
|
||
TONE IND 00 | ||
GTO key | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters