‹ BackHN Continuity

Thread

Digital Audio on the ZX Spectrum's 1-Bit Beeper

63 points · 22 comments · ibobev

Loading the complete thread in the background. This saved snapshot is available now. Refresh

  1. urbandw311er · · focus · HN ↗
    I have a memory of a Spectrum game playing some sort of synthesised speech through the speaker that seemed incredibly ahead of its time. I believe the game was called iBall. And the sample said something like “Fight iBall!” Have I misremembered that? Was this a fever dream?
    1. _usefulcat · · focus · HN ↗
      You might be right! I had a copy of 'Slightly Magic' which had some speech synthesis. Great game. Never completed it though
    2. KnightLore · · focus · HN ↗
      You remembered correctly!

      <a href="https:&#x2F;&#x2F;zxart.ee&#x2F;prod&#x2F;101558" rel="nofollow">https:&#x2F;&#x2F;zxart.ee&#x2F;prod&#x2F;101558

    3. flohofwoe · · focus · HN ↗
      Another Speccy game with digitized speech is Chase HQ:

      <a href="https:&#x2F;&#x2F;youtu.be&#x2F;yjrbcLm78I8?si=GMIqDdL31hq4ik72&amp;t=87" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;yjrbcLm78I8?si=GMIqDdL31hq4ik72&amp;t=87

      Although tbf apparently that&#x27;s done via the AY sound chip of the 128k, which is a lot easier than through the on&#x2F;off beeper of the 48k since the AY can do digitized audio via CPU-driven volume modulation.

      1. UncleSlacky · · focus · HN ↗
        There was also &quot;Meteor Storm&quot;:

        <a href="https:&#x2F;&#x2F;spectrumgamesuk.com&#x2F;index.php?game=Meteor-Storm" rel="nofollow">https:&#x2F;&#x2F;spectrumgamesuk.com&#x2F;index.php?game=Meteor-Storm

        I think it said &quot;Meteor Alert!&quot; or something similar, though the quality was terrible.

    4. McDyver · · focus · HN ↗
      I remember the Codemasters Jet Bike Simulator
    5. jesuslop · · focus · HN ↗
      I remember &quot;Rocman&quot;, how hearing a human voice coming from a 1-bit beeper sounded like sorcery: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;iuT0hxjLCzc?t=95" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;iuT0hxjLCzc?t=95
    6. darrenf · · focus · HN ↗
      The 128k version of Nodes of Yesod had some speech, albeit I think it was just the name of the game. My older brother told me a kid in his class got paid big bucks - like, I dunno, £50 or something? - for coding it. Almost certainly bollocks.

      For high quality speech, you could get the Currah μSpeech! <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Currah#Currah_%CE%BCSpeech_for_the_ZX_Spectrum" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Currah#Currah_%CE%BCSpeech_for...

      I swear there was one symbol it pronounced &quot;flea bleep&quot;.

      1. dcminter · · focus · HN ↗
        [delayed]
    7. stevekemp · · focus · HN ↗
      Robocop was another game with sampled speach, not yet mentioned:

      <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Dy8kZcGz98U" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Dy8kZcGz98U

      There were a few games (in later years) with speach&#x2F;audio. But Robocop was one that stands in my memory for the good music.

    8. dronacharya · · focus · HN ↗
      Jonah Barrington&#x27;s Squash used synthesised speech for scores
  2. corbinvachal · · focus · HN ↗

    [dead]

  3. stackedinserter · · focus · HN ↗
    ZX&#x27;s audio and video systems are two things that I never missed.
  4. 2a0c40 · · focus · HN ↗
    And who could possibly forget Chronos&#x27; title music, by Tim Follin?

    <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=u-D24A_N4d4" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=u-D24A_N4d4

    1. alcomatt · · focus · HN ↗
      and AgentX by the same composer.
  5. musha68k · · focus · HN ↗
    [delayed]
  6. socializer · · focus · HN ↗
    Doing stuff like this in the 8-bit era was never particularly hard. The difficulty was doing this and then anything else, because you basically need the entire CPU just for audio synthesis. For games, there was a very real trade-off between calculating video, game state, and sound, and sound often took the back seat.

    It&#x27;s also why everything looked and sounded better on 8-bit computers that had hardware support for graphic sprites or sound generation, even if they had a less powerful CPU. And it&#x27;s the untold story behind why 16-bit graphics looked so much better: it wasn&#x27;t about the CPU as much as it was about having a dedicated video card &#x2F; chipset with gobs of memory, a sound card that handled polyphonic sound, etc.

    1. LocalH · · focus · HN ↗
      [delayed]
  7. regularfry · · focus · HN ↗
    There was a music editor I remember getting on a late Your Sinclair edition cover tape which displayed proper music staves and gave you 4-note chord output. Blew my mind a bit at the time.
  8. ValdikSS · · focus · HN ↗
    This reminded me of a recent very detailed video on polyphony implementation on 8052

    <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49895486">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49895486

    There&#x27;s also a phone with YM2149

  9. retrac · · focus · HN ↗
    Got an op amp?

    As a hobby I have been designing a retro-style digital telephone exchange because laying out PDIP chips is like Sudoku for me.

    That led me down the rabbit hole of simple digital audio techniques. Which led me to continuous variable slope delta modulation. [0]

    CVSD is much simpler than PCM. Every clock you give the decoder 1 bit. This bit determines whether a non-linear circuit ramps up or ramps down the voltage during that clock cycle.

    And that&#x27;s it. It&#x27;s like a half-analog way to do digital. You can get fancier, by adding a small memory for the previous bit state, so it changes its slew rate, from step to step.

    A couple flip-flops and a couple RC networks and an op-amp. [1]

    CVSD has all sorts of fun properties. It&#x27;s an effective speech compander and is understandable even at like 12 kHz (which is 12 kbps at 1 bit per sample). It is inherently bit-error and framing error resistant as a raw bit stream. Noise averages to a low rumbling and silence is just half the clock rate (110011001100...).

    It was the standard in military digital voice systems from the 1970s until quite recently. And a variant was also used in early Bluetooth.

    [0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Continuously_variable_slope_delta_modulation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Continuously_variable_slope_de...

    [1] <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;PzGDNFs.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;PzGDNFs.png

  10. qingcharles · · focus · HN ↗
    Does the Speccy have enough outputs on the edge connector to make a simple DAC like the parallel port ones we used to make with a bunch of resistors for the PC?
    1. bzzzt · · focus · HN ↗
      Nice idea, it has 8 data lines, so 8 bits audio should be possible.
    2. rausr · · focus · HN ↗
      I did have a digital sampler that connected to the back of my Spectrum. I even laboured through writing a digital-delay program in assembler for it.
  11. amiga386 · · focus · HN ↗
    See also what the C64 could achieve, via the demo &quot;Cubase64&quot;

    <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=PTGkf21UpJ8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=PTGkf21UpJ8

    How it works: <a href="https:&#x2F;&#x2F;livet.se&#x2F;mahoney&#x2F;c64-files&#x2F;Cubase64_White_Paper_by_Pex_Mahoney_Tufvesson.pdf" rel="nofollow">https:&#x2F;&#x2F;livet.se&#x2F;mahoney&#x2F;c64-files&#x2F;Cubase64_White_Paper_by_P...

  12. lproven · · focus · HN ↗
    I wrote a Reg article based on this:

    <a href="https:&#x2F;&#x2F;www.theregister.com&#x2F;offbeat&#x2F;2026&#x2F;09&#x2F;13&#x2F;the-improbable-music-of-the-zx-spectrums-one-bit-speaker&#x2F;5295862" rel="nofollow">https:&#x2F;&#x2F;www.theregister.com&#x2F;offbeat&#x2F;2026&#x2F;09&#x2F;13&#x2F;the-improbabl...

    I got some valuable links to tunes from a previous HN thread:

    <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49611230">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49611230

    It was just 3 weeks ago...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.