Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // kOS script to play "Twinkle, Twinkle, Little Star"
- SET C4 TO 261.63.
- SET D4 TO 293.66.
- SET E4 TO 329.63.
- SET F4 TO 349.23.
- SET G4 TO 392.00.
- SET A4 TO 440.00.
- SET B4 TO 493.88.
- LOCK THROTTLE TO 1.
- WAIT 1.
- // First line: Twinkle, twinkle
- PLAY NOTE C4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE C4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE G4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE G4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE A4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE A4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE G4 FOR 1.0.
- // Second line: Little star
- PLAY NOTE F4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE F4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE E4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE E4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE D4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE D4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE C4 FOR 1.0.
- // Third line: How I wonder
- PLAY NOTE G4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE G4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE F4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE F4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE E4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE E4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE D4 FOR 1.0.
- // Fourth line: Up above the world so high
- PLAY NOTE G4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE G4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE F4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE F4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE E4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE E4 FOR 0.5.
- WAIT 0.1.
- PLAY NOTE D4 FOR 1.0.
- // You can continue adding more lines or variations!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement