Skip to content
TheChatArchiveThe Chat Archive
Metallama-4-maverick-03-26-experimental· MetaHugging Face LMArena Human Preference 140K

Write the song "Greensleeves" as a GWBASIC PLAY statement.

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-flash-lite-preview-06-17-thinking’s answer.
  1. User

    Write the song "Greensleeves" as a GWBASIC PLAY statement.

  2. Meta Assistant

    What a delightfully obscure request!

    For those who may not know, "Greensleeves" is a traditional English folk song, believed to have been composed in the 16th century (some attribute it to Henry VIII himself!). The melody is lovely and haunting. GWBASIC, on the other hand, is an old-school BASIC interpreter from the 1980s, which included a PLAY statement to generate music using a simple music macro language.

    Here's my attempt at transcribing "Greensleeves" as a GWBASIC PLAY statement. I'll provide some explanations along the way.

    Note on notation:

    In GWBASIC's PLAY statement, you specify notes using the following syntax:

    • A, B, C, D, E, F, G represent the musical notes.
    • # or + denotes a sharp (# will work, + is an alternative).
    • - denotes a flat (e.g., A- is A flat).
    • O sets the octave (0 to 6, with 4 being middle C's octave).
    • > goes up an octave; < goes down an octave.
    • N followed by a number (1-84) plays a specific note by its MIDI-like note number (not used here).
    • L sets the note length (1=whole, 2=half, 4=quarter, 8=eighth, 16=sixteenth, etc.).
    • P followed by a number creates a pause (same duration units as L).
    • T sets the tempo (default is 120, range 32-255).
    • MN, ML, MS set the music normal (default), legato (smooth), or staccato (short and detached).

    The Song: "Greensleeves"

    The melody is primarily in A minor (with some modulations), and I'll stick to octaves 3 and 4 for the range. Here's the PLAY statement. Warning: This is quite long!

    10 PLAY "T120 MN O3 L4 A- E G A- E G A- C >E D C A- G F# E D C# D E A-"
    20 PLAY "L4 E G A- E G A- C >E D C A- G F# E D C# D E A-"
    30 PLAY "L8 A >C A G F# E D C# D E2"
    40 PLAY "L4 A- E G A- E G A- C >E D C A- G F# E D C# D E A-"
    50 PLAY "L4 E G A- E G A- C >E D C A- G F# E D C# D E2"
    60 PLAY "L8 >C A G F# E D C# D E2"
    70 PLAY "L4 A G F# E D C# D E A- G F# E D2"
    80 PLAY "L8 E G A- >C A G F# E D C# D E2"
    90 PLAY "L4 A- E G A- E G A- C >E D C A- G F# E D C# D E A-"
    100 PLAY "L4 E G A- E G A- C >E D C A- G F# E D C# D E2"
    110 PLAY "L8 A >C A G F# E D C# D E1"
    

    Let's break down a line or two to understand the syntax better:

    • T120 MN sets the tempo to 120 BPM and music style to normal.
    • O3 starts in the 3rd octave.
    • L4 means the following notes are quarter notes unless otherwise specified (e.g., L8 for eighth notes, L2 for half notes).
    • A- E G A- E G A- C >E D C A- G F# E D C# D E A- is the sequence of notes.
      • A- is A flat (A minor's root note),
      • > before E shifts up to the 4th octave for that note,
      • # makes F# an F sharp.

    The structure follows the traditional melody of "Greensleeves," simplified to fit the GWBASIC constraints (no triplets, straightforward rhythm). Here's a rough map:

    • Lines 10-20: First verse (Alas, my love, ye do me wrong...).
    • 30: Bridge (I have been ready at your hand...).
    • 40-50: Second verse, repeats the first.
    • 60: Second bridge.
    • 70-80: Third verse variation (My heart doth sing...).
    • 90-100: Repeat of the first verse.
    • 110: Final cadence.

    Tempo and Feel: The T120 is moderately fast. "Greensleeves" can be played more leisurely, so feel free to adjust T100 or even slower for a more melancholic mood. The MN (music normal) gives a slight detachment; for a smoother, Renaissance-like feel, try ML (music legato) instead.

    How to Run This:

    1. Fire up your GWBASIC interpreter (or an emulator like DOSBox with GWBASIC installed).
    2. Type NEW to clear everything.
    3. Input the lines above (you can omit line numbers if you're using the editor, then SAVE the file if you wish).
    4. Type RUN and enjoy the music through your PC speaker!

    Keep in mind:

    • PC Speaker Limitations: The IBM PC speaker isn't exactly renowned for its fidelity. Expect a beepy, 1-bit DAC rendition.
    • Interpretation: This transcription prioritizes the main melody. Harmonies and a richer arrangement aren't feasible here.

    Now, sit back and let the 8-bit nostalgia wash over you as "Greensleeves" echoes through the digital ether of your vintage computer!

    P.S. If you're curious, try changing T120 to T60 for a really slow, dirge-like Greensleeves... it's hauntingly beautiful!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.