Okay, here is the most recognizable part of the "Greensleeves" melody represented as a GWBASIC PLAY statement. GWBASIC's PLAY statement uses a specific string-based notation.
This version assumes:
- Tempo: Moderately fast (T120 beats per minute)
- Default Note Length: Quarter Note (
L4)
- Key/Octave: Starting in A minor / C major context, beginning on E4 (
O4). Notes C5, D5 are handled using the octave-up notation (.).
10 REM GWBASIC PLAY statement for Greensleeves (First Part)
20 CLS
30 REM Set Tempo (T), Default Note Length (L), and Octave (O)
40 REM T120 = 120 Beats Per Minute
50 REM L4 = Default note length is a Quarter Note
60 REM O4 = Default octave is 4 (Middle C is C4)
70 REM Note Durations: Number after note indicates duration relative to L4
71 REM 4 = Quarter Note (default), 2 = Half Note, 1 = Whole Note etc.
72 REM '.' after note raises octave by 1 (e.g., C. is C5)
73 REM ',' before note lowers octave by 1 (e.g., ,C is C3)
80 PRINT "Playing Greensleeves..."
90 PLAY "T120 L4 O4 E D C D E E E2 D D E2 D E G2 G E D C D E F G2 E A A G F G E D C D E2 C C2 C. C. C. B C. D. D.2 C. B2 A G G G F G A G2 E C2"
100 PRINT "Done."
110 END
Explanation of the PLAY String:
T120: Sets the tempo to 120 beats per minute.
L4: Sets the default note length to a quarter note. Any note letter without a following number will be a quarter note.
O4: Sets the starting octave to 4. Middle C is C4.
E D C D E E E2: Plays E, D, C, D, E, E (as quarter notes), followed by E (as a half note, E2).
D D E2: Plays D, D (quarter notes), E (half note).
D E G2 G: Plays D, E (quarter notes), G (half note), G (quarter note).
E D C D E F G2 E: Plays E, D, C, D, E, F (quarter notes), G (half note), E (quarter note).
A A G F G E: Plays A, A, G, F, G, E (all quarter notes).
D C D E2 C: Plays D, C, D (quarter notes), E (half note), C (quarter note).
C C2: Plays C (quarter note), C (half note). This marks the end of the first phrase.
C. C. C.: Plays C5, C5, C5 (quarter notes - note the . raises the octave).
B C. D.: Plays B4, C5, D5 (quarter notes).
D.2 C.: Plays D5 (half note), C5 (quarter note).
B2 A: Plays B4 (half note), A4 (quarter note).
G G G: Plays G4, G4, G4 (quarter notes).
F G A: Plays F4, G4, A4 (quarter notes).
G2 E: Plays G4 (half note), E4 (quarter note).
C2: Plays C4 (half note), ending the second phrase.
This string represents the first, most famous section of the Greensleeves melody. You could potentially add the same string again after the first PLAY command if you wanted it to repeat.