Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk3 min

How Cue Keeps a Drum Machine’s Song Editable as Data

Cue is a browser drum-machine demo that stores musical structure in Sanity and synthesizes sound from voice parameters. Its Floor plays published content while its Deck edits and previews drafts.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Cue is a browser-based drum machine built by developer Fadhlullah Mustapha, with its song represented as structured Sanity content rather than an audio file. The browser synthesizes the sounds from parameters stored in voice documents. Its central idea is to treat a song as editable, publishable data—and to make a published change reach listeners in time with the music.

What Cue is—and what it is not

Cue was submitted to the Sanity Challenge. It is a software demonstration, not a physical drum machine: its musical state lives in a Sanity dataset, and audio is generated in the browser from stored sound parameters. Mustapha’s account is described in his DEV Community article, published October 4, 2026.

As an Amazon Associate I earn from qualifying purchases.

The design separates listening from editing. The public-facing “Floor” plays the published song; the “Deck” is a Sanity App SDK interface for editing and previewing a draft. Mustapha likens that split to a DJ hearing a cue in headphones while the room hears the playing track.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How the song is represented as data

Cue’s schema combines shared sound definitions with a song document that contains its arrangement and pattern. The described fields are:

#1 Best Overall
Stylophone BEAT - Compact Stylus Drum Machine | 4 Drum Kits & 4 Bass Sounds | Rhythm Machine Beat Maker | Drum Loop Machine
  • Compact stylus drum machine - 4 drum kits, 4 bass sounds
  • Connect any wired headphones - Powered by 3 x AA batteries (1.2-1.6V, not included)
  • Stay in time with click track & tempo lock - Record multiple layers, mute sounds
  • Record multiple patterns - Built-in speaker with volume control
  • Connect any wired headphones - Powered by 3 x AA batteries (1.2-1.6V, not included)
  • Voice documents: name, kind, pitch, decay, tone, and gain—the parameters used to synthesize a voice.
  • Song document: title, BPM, swing, and sections.
  • Sections: title, kind, bar count, and lanes.
  • Lanes: a reference to a voice and a sequence of steps.
  • Steps: an index from 0 to 15, velocity, probability, and a timing nudge measured in milliseconds.

Sections, lanes, and steps are embedded in the song document, while voices remain referenced documents. That choice supports a coherent publish: if patterns lived in separate documents, publishing the song alone would not necessarily publish those documents, potentially leaving the new song paired with draft patterns. The author treats voice documents as shared kit elements that change less frequently, making them suitable references.

Each step is an object rather than a character in a compact pattern string. That lets the data carry and expose properties such as velocity, probability, and timing nudge for individual hits, including off-beat ones. The structure is therefore not just a way to store a beat; it makes musical details available as queryable content.

Rank #2
Korg Volca Drum Digital Percussion Synthesizer w/ 16-step Sequencer and Active Step
  • Compact and portable design with a built-in speaker for on-the-go music creation
  • Features a 16-step sequencer for intuitive and flexible music programming
  • Equipped with a six-part DSP synth engine for a wide range of drum sounds
  • Waveguide resonator adds rich resonances to your drum sounds
  • Active Step function lets you replace steps for each part, adding variety to your patterns

How editing and publishing work

In the Deck, an editor changes and previews a draft through Sanity’s App SDK. Publishing that document is the “Drop.” The Floor reads the published perspective without a token, listens for updates with Sanity’s client.listen(), and, according to Mustapha, polls every two seconds as a fallback. The Deck uses useEditDocument for draft editing and publishDocument to publish.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This creates two states with distinct audiences: an editor can work on a draft, while public listeners continue to hear the published song. On a Drop, already-open Floor clients move to the new song at the next bar line rather than changing in the middle of a measure.

Rank #3
Alesis SR-16 Standalone Drum Machine
  • A Studio Icon - Legendary classic drum machine for songwriters, live performers and remix engineers
  • In Demand Sound - 233 professional sounds included, built-in digital effects for added realism and powered by Alesis exclusive Dynamic Articulation
  • Seamless MIDI Connectivity - Complete MIDI support for use with keyboards, computers, DAWs and electronic drum kits
  • Connectivity Covered - 4 (stereo pairs) outputs; 2-function footswitch jacks for start/stop and count/A/B/fill
  • Production-Ready Features - Sound stacking, step editing, stereo samples with reverb and ambience

What the reported timing does—and does not—show

Mustapha reports that a publish was noticed after 1.4 to 1.9 seconds, and that at 118 BPM the new song began on the next bar, about 3.2 seconds after publishing. He says these observations came from real Chrome against the live dataset. They are the developer’s reported measurements, not a Sanity performance guarantee or an independently verified benchmark. The account does not specify a repeat count or broader test methodology, so the figures should be read as an example of the project’s behavior, not a general latency promise.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Where to see the project

Mustapha’s article includes links to the public Floor demo and to the Deck, which requires sign-in to a Sanity organization. Their current availability and behavior are not established here, so the article’s description should not be taken as confirmation that either link is presently live.

Quick Recap

Bestseller No. 1
Stylophone BEAT - Compact Stylus Drum Machine | 4 Drum Kits & 4 Bass Sounds | Rhythm Machine Beat Maker | Drum Loop Machine
Stylophone BEAT - Compact Stylus Drum Machine | 4 Drum Kits & 4 Bass Sounds | Rhythm Machine Beat Maker | Drum Loop Machine
Compact stylus drum machine - 4 drum kits, 4 bass sounds; Connect any wired headphones - Powered by 3 x AA batteries (1.2-1.6V, not included)
$39.95
Bestseller No. 2
Korg Volca Drum Digital Percussion Synthesizer w/ 16-step Sequencer and Active Step
Korg Volca Drum Digital Percussion Synthesizer w/ 16-step Sequencer and Active Step
Compact and portable design with a built-in speaker for on-the-go music creation; Features a 16-step sequencer for intuitive and flexible music programming
$149.80
Bestseller No. 3
Alesis SR-16 Standalone Drum Machine
Alesis SR-16 Standalone Drum Machine
Professional drum machine with 12 velocity sensitive pads (with Dynamic Articulation(TM)); 50 Preset / 50 User drum kits with 233 sounds assignable to any pad
SaleBestseller No. 4
Best Value
Donner MIDI Pad Beat Maker Machine Professional, Drum Machine with 16 Beat Pads, 2 Assignable Fader & Knobs and Music Production Software, USB MIDI Controller with 40 Courses, STARRYPAD
  • 16 Pad Controller with customizable lighting: The midi drum pad STARRYPAD's 16 soft silicone backlit pads can trigger drums, samples, effects and more; One button push allows you to quickly switch between 3 different pad banks for a total of 48 assignable pads; In addition, the beat maker STARRYPAD comes with adjustable velocity sensitivity curves. Perfect for all music makers
  • Additional Control: STARRYPAD midi controller has an additional 2 faders, 2 knobs, and 3 buttons, to customize and match your virtual instrument. The Shift Key brings in another layer of customized control
  • Compatibility: The beat machine STARRYPAD is class-compliant to work with everything and comes with a standard USB C power supply and data interface for easy plug and play; Tips: if you want to connect to your iPhone or iPad, you need to buy an Apple Lightning to USB Adapter; The additional MIDI in/out (Cable included) allows you to connect to an external synthesizer or other vintage MIDI equipment
  • Customizable lighting: The MIDI controller pad STARRYPAD backlit pad lighting with 7 vibrant colors. Helps you group your instruments with a visual reference; Tips: the editor only can set this drum pad, doesn't have the function of recording and arranging music
  • Boost Your Rhythm Game: Worried about a weak sense of rhythm? Tap Tempo is directly synchronized with DAW to help you quickly grasp the BPMs of any song and play along. In addition, Note Repeat's ultra-low latency perfectly connects each sample segment without getting stuck or errors! This USB drum pad controller suits you
Rank #4
Sale
Alesis Nitro Max Electric Drum Set
  • Designed for Beginners - Premium 8-piece electronic drum set with ultra-quiet Alesis mesh heads, revolutionary Drum Module with Bluetooth and built-in industry-leading BFD drum sounds
  • Genuine Performance Feel - Now bigger 10" dual-zone mesh snare, (3) 8" mesh toms, kick drum tower with pedal and (3) 10" cymbals - ride, hi-hat with foot controller, crash with choke, on a solid foldable rack
  • Authentic Zildjian cymbal sounds built into the Nitro module - Unlock even more Zildjian sounds and inspiration anytime by downloading new expansion packs in BFD Player or BFD3.5 software
  • Genuine Feel with Low Noise - All-mesh drum heads deliver realistic rebound and feel without high volume, optimized for focused practice without disturbing family and neighbors
  • Create and Customize Your Own Kits -Upgraded Drum Module with 32 ready-to-play BFD kits, 16 user-made kits and 440+ drum, cymbal and percussion sounds and multi-velocity samples for a real acoustic drum sound

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.