Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    This MacBook Pro has a Touch Bar and is only $410 while stock lasts

    Intel’s tough decision boosted AMD to record highs

    Bundle deal! Ring Battery Doorbell and Outdoor Cam Plus (44% off)

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026
    • Business

      The HDD brand that brought you the 1.8-inch, 2.5-inch, and 3.5-inch hard drives is now back with a $19 pocket-sized personal cloud for your smartphones

      February 12, 2026

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025
    • Crypto

      How Polymarket Is Turning Bitcoin Volatility Into a Five-Minute Betting Market

      February 13, 2026

      Israel Indicts Two Over Secret Bets on Military Operations via Polymarket

      February 13, 2026

      Binance’s October 10 Defense at Consensus Hong Kong Falls Flat

      February 13, 2026

      Argentina Congress Strips Workers’ Right to Choose Digital Wallet Deposits

      February 13, 2026

      Monero Price Breakdown Begins? Dip Buyers Now Fight XMR’s Drop to $135

      February 13, 2026
    • Technology

      This MacBook Pro has a Touch Bar and is only $410 while stock lasts

      February 13, 2026

      Intel’s tough decision boosted AMD to record highs

      February 13, 2026

      Bundle deal! Ring Battery Doorbell and Outdoor Cam Plus (44% off)

      February 13, 2026

      Microsoft Store goes zero-clutter—through the command line

      February 13, 2026

      How Boll & Branch leverages AI for operational and creative tasks

      February 13, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Signal Carnival
    Technology

    Signal Carnival

    TechAiVerseBy TechAiVerseApril 20, 2025No Comments5 Mins Read0 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Signal Carnival

    At Revision 2025, we released “Signal Carnival” (csdb, YouTube). This demo asks you to
    switch the audio and video cable of your C64:

    (Diagram by Felidae)

    Technically, “misplugging” those cables is not a completely new idea. In the
    90s, it was a common thing to connect audio to both speaker and video,
    to get screen flickering timed with the music beats.

    However, “Signal Carnival” is the first production to switch both these
    cables, while still being able to play meaningful audio and video.

    How to drive audio using a video signal

    The C64’s VIC chip operates at a frequency of 7.9Mhz, and new values can be
    written to it by the 6502 at a rate of up to 246kHz. Since even high
    quality audio rarely exceeds 44kHz, this is easily a high enough frequency
    to generate music.

    Inspired by the music routine from freespin, we combined two timers to
    get an interesting waveform, which is adjusted once per frame. This is
    the code that drives audio:

    lda $dc06
    ora $dd06
    eor $02
    sta $d020
    

    Here, $dc06 and $dd06 are the lower bytes of the B timers of CIA #1 and #2,
    respectively. They’re in turn increased every time their A timers
    overflow. And those are set to a new value for every new note.

    Eor-ing with the value at zeropage $02 allows to slightly tweak the waveform (and volume!),
    and then the result is written to $d020, which is the screen color.
    Only the brightness of said color matters (chrominance is encoded at the
    PAL color carrier frequency, which is outside of the human hearing
    range). There’s no obvious relationship between the brightness of the C64 color
    and its number, but that’s fine – it actually makes the
    waveforms more interesting.

    Of course, the above uses up all four timers the C64 CIAs have, which means there
    are no timers left for e.g. video stabilization, which is instead done
    through the lightpen circuitry. (Finally! A use case for $d013. :))

    Music is just one voice, but the song switches between voices (and
    waveforms) often enough to sound mildly polyphonic.

    How to drive video using an audio signal

    The SID chip of the C64 internally operates (for PAL) at 9.85Mhz, and,
    like the VIC, can be fed with new values at a rate of up to 246kHz.

    The SID has a number of audio features. It can generate three voices
    using multiple waveforms, it has an ADSR envelope generator, can sync
    between voices, and apply filters.
    Unfortunately, all this circuitry works at a (for video)
    glacial pace: The highest frequency the chip can output is 3906Hz, which
    is the equivalent of changing the video output every four rasterlines.
    Similar with ADSR, for which the smallest possible configurable attack
    time is 2 ms, so about 32 rasterlines.

    But thankfully, there’s also circuitry that is wired more directly and
    and gives instant output: the volume register ($d418)!
    This has been used in the past to generate samples at high frequencies
    (16+ khz), and is a good choice for generating video, as well.

    However, the C64 mainboard also, vexingly, passes the SID signal through
    a analogue bandpass filter. And this always happens, regardless of
    whether filtering is on or not.

    This means that the pixels we work with are very wide, and also horizontally
    blurred. Here’s one “pixel”, displayed on my 1084 monitor:

    This blurryness poses an interesting constraint on effects. While technically,
    you do have some degree of horizontal resolution, the blurriness makes it
    unenticing to use it for scrollers. Here are a few letters, for illustration:

    Signal Carnival makes heavy use of both axis,
    but to cope with the bluriyness, the x axis is used for graphics elements that
    are fine to blur, like e.g. textures.

    Other than that, driving the video is just your normal vanilla video
    bitbanging. Due to the bandpass filter, horizontal syncs (i.e., pulling
    the signal line to ground) need to be precisely timed, so they get
    recognized, but not mistaken for vertical syncs. (which differ from
    horizontal syncs only in that the signal is pulled to ground a
    little bit longer)

    Video sync generation is happening at the same refresh frequency that
    the VIC would have produced (so we can use raster interrupts and query
    the lightpen), but we use a different horizontal frequency (64 cycles
    per line instead of 63), since having that extra cycle proved useful
    in a lot of effects. And besides, if you’re generating your own
    video signal, you might as well make your own rules!

    Loading

    I’ve written a new loader for probably every demo I’ve ever released on the C64,
    and this one is no exception. Since a lot of the effects are quite
    memory-hungry (we even play a sample at the end), loading breaks are
    long enough that we can’t just
    pause audio while they happen.

    Hence, we have to bitbang audio the entire time. Also while transferring
    data from the drive to the C64. Also during decrunching. (The
    decruncher actually unrolls all copy loops, also for that reason)

    The loader has a few gimmicks, like doing on-the-fly GCR decoding that
    allows to write to any page (not just stack), and it buffers (stashes) a
    full kilobyte. But it’s also a one-off, so it’s missing tons of
    features seen in fully-fledged C64 loaders. It doesn’t even support
    loading from tracks 18 and above yet (the demo uses 1-10.)
    Also no checksumming. (So remember, kids, dust off your 1541 drives, or
    Signal Carnival might not work!)

    Talking about GCR decoding, I found it tedious to handcode the decoding
    tables, so we instead wrote a solver that generates them given the code
    that uses the tables, and the desired input/output. Very useful tool,
    hopefully to be released soon.

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleWeave (YC W25) is hiring a founding engineer
    Next Article The Movie Mistake Mystery from “Revenge of the Sith”
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    This MacBook Pro has a Touch Bar and is only $410 while stock lasts

    February 13, 2026

    Intel’s tough decision boosted AMD to record highs

    February 13, 2026

    Bundle deal! Ring Battery Doorbell and Outdoor Cam Plus (44% off)

    February 13, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025668 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025257 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025153 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025111 Views
    Don't Miss
    Technology February 13, 2026

    This MacBook Pro has a Touch Bar and is only $410 while stock lasts

    This MacBook Pro has a Touch Bar and is only $410 while stock lasts Image:…

    Intel’s tough decision boosted AMD to record highs

    Bundle deal! Ring Battery Doorbell and Outdoor Cam Plus (44% off)

    Microsoft Store goes zero-clutter—through the command line

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    This MacBook Pro has a Touch Bar and is only $410 while stock lasts

    February 13, 20262 Views

    Intel’s tough decision boosted AMD to record highs

    February 13, 20262 Views

    Bundle deal! Ring Battery Doorbell and Outdoor Cam Plus (44% off)

    February 13, 20261 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    This new Roomba finally solves the big problem I have with robot vacuums

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.