Write the song "Greensleeves" as a GWBASIC PLAY statement.
- User
Write the song "Greensleeves" as a GWBASIC
PLAYstatement. Assistant
Here's "Greensleeves" as a GWBASIC PLAY statement:
PLAY "T120 O4 A2 C5 D4 E2 F4 E4 D2 B4 G4 A2 F4 D4 B-2 A6 A2 C5 D4 E2 F4 E4 D2 B4 G4 A2 F4 D4 B-2 A6 A2 G5 G4 F2 E4 D4 C2 A4 A4 B-2 C5 D4 B-2 A6"This represents the main melody of the traditional English ballad "Greensleeves." The PLAY statement uses:
T120for tempo (120 beats per minute)O4to set the octave- Numbers after notes indicate duration (2=half note, 4=quarter note, 5=dotted quarter, 6=dotted half)
B-represents B-flat
Since "Greensleeves" is a traditional folk song from the 16th century, it's in the public domain. You can run this in GWBASIC or QBASIC to hear the melody played through your computer's speaker.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.