frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I made a generative online drum machine with ClojureScript

https://dopeloop.ai/beat-maker/
11•chr15m•2h ago
After two years of development, I'm super excited to release Beat Maker! This is my take on what I hope is the best free, web-based drum machine.

My goal was to build something that was not only fun and easy to use for beginners but also powerful enough for serious producers. I did extensive research on existing drum machines, analyzed their UX, and tried to build something that adds something new.

It's a nearly 100% client-side app, written in ClojureScript, and is a PWA so you can install it to your home screen for an app-like experience.

Besides the standard grid editor, Beat Maker has some unique features that I think HN readers might find interesting:

- Procedural sample generation. One annoying thing about writing beats is searching through folders full of samples. I wanted to improve this and so I added the ability to generate new samples with a single click, giving you an infinite supply of unique drum samples. * Generative beat creation. If you're looking for inspiration, Beat Maker can generate entire patterns for you as a starting point. You can then edit and tweak the beat to your liking. Great for solving the "blank canvas" problem and giving you something good to start from. * Advanced export options. This is where it really shines for producers. You can export your work as: * A standard WAV loop * Individual stems (ZIP) * A MIDI file * A ZIP file of all your samples as WAVs * A SoundFont (.sf2) drum kit from your generated samples * An Impulse Tracker (.it) file for use in trackers like Renoise, OpenMPT or a Polyend * Pocket Operator/Volca sync. It can output a sync signal on the left audio channel to sync with these hardware devices for perfect timing. * Per-Note FX. You can add effects like volume slides, repeats, and start volume changes to individual notes for more complex drum phrases incorporating flam and roll.

As an old school tracker guy, I'm particularly excited about the Impulse Tracker export mode. I was surprised to discover how many DAWs (including hardware like Polyend) can import this format. Of course, you can also pull up Impulse Tracker on DOSBox, or the more modern re-implementation, Schismtracker for that retro experience.

By the way, the beat generator feature is not trained on any artists or anything like that. It's an algorithm I built from scratch myself.

The audio engine is built on a declarative audio graph (using `virtual-audio-graph`), inspired by React's virtual DOM, which makes managing the Web Audio API much cleaner. If you're building web based audio apps I highly recommend checking out this library.

I'd love for you to try it out and let me know what you think. Feedback (and the inevitable bug reports) most welcome! Thank you!

P.S. Also, here's a video summary: https://youtu.be/qVmEn9z3H24

Comments

thw_9a83c•55m ago
Nice work! Nice that you also implemented an MPC-style swing. How do you generate samples? Are they also procedurally generated or are they chosen from a fixed set of samples? I suppose you're not planning to release any sources for this...
iamben•23m ago
This is great fun, congrats!

2 small requests that (I think) would help with the UX: consider moving (or duplicating) the play button - maybe directly in the middle below the editor, or on that panel itself. It took me a few confusing seconds to realise where it was. Also, could you consider making each fourth (or first) column a very slightly lighter grey? So if I want my kick on 1, 3, 10 and 11 it's really easy to see where to click without counting?

monneyboi•20m ago
Dope!

One thing I notice is that the generated beats are very alike. Yeah it makes sense to play snare on the 2 and the 4, and to have kicks always fall on the downbeat, but you'd get more creative grooves if you allow for some more variation there.

It could even be a slider that allows you to stray away from the common patterns.

dpoljak•10m ago
Really cool! How come you've chosen ClojureScript, and did you regret that choice in the 2 years you've been working on this?

To be clear, this is pure curiosity on my part as I love Clojure(Script) and am consistently missing it during my day job.

Magical Systems Thinking

https://worksinprogress.co/issue/magical-systems-thinking/
1•ortegaygasset•4m ago•0 comments

'IT manager' needed tech support because they had never heard of a command line

https://www.theregister.com/2025/09/12/on_call/
2•rogermungo•11m ago•0 comments

Gauss, an Agent for Autoformalization

https://www.math.inc/gauss
1•andy12_•12m ago•0 comments

Undine – GraphQL Library for Django

https://mrthearman.github.io/undine/
1•indigane•12m ago•0 comments

Open Source as Europe's Strategic Advantage

https://www.linuxfoundation.org/research/world-of-open-source-eu-2025
1•luu•13m ago•0 comments

Introduction to Python for Geographic Data Analysis

https://pythongis.org/
1•ibobev•13m ago•0 comments

Strategies for Two-Sided Markets [pdf]

https://www.kth.se/social/files/546b8e7ef2765474dd3f23fe/4.Eisenmann+et+al+(2006).pdf
1•tosh•16m ago•0 comments

The Rising Sea: Foundations of Algebraic Geometry Notes

https://math.stanford.edu/~vakil/216blog/
1•ibobev•19m ago•0 comments

Ask HN: What's the weirdest rule your workplace ever had?

1•jamessmithe•20m ago•0 comments

Dripo AI – All in One AI Image and Video Generator

https://www.dripo.ai
1•cnych•22m ago•0 comments

Show HN: I built an AI that roasts your website and gives tips to fix it

https://ai-roast-vert.vercel.app/
2•happy_malone•25m ago•0 comments

Becoming the person who does the thing

https://www.fredrivett.com/2025/09/10/becoming-the-person-who-does-the-thing/
4•fredrivett•26m ago•0 comments

Why Boards Are Asking for AI Visibility Audits

https://zenodo.org/records/17105734
1•businessmate•27m ago•1 comments

Bolsonaro sentenced to 27 years in prison for plotting Brazil coup

https://www.bbc.com/news/articles/c8xrqxk9p4xo
4•croon•30m ago•0 comments

Show HN: MassifLib++ – Bringing Fortran-style arrays and NumPy operations to C

1•Forgret•32m ago•0 comments

Webstrates: Prototype enabling collaborative editing through DOM manipulations

https://github.com/Webstrates/Webstrates
1•thunderbong•34m ago•0 comments

Ask HN: How to manage work as the sole individual contributor?

2•dominicq•34m ago•1 comments

Meal timing and associations with morbidity, genetic profiles, and mortality

https://www.nature.com/articles/s43856-025-01035-x
1•wjb3•37m ago•1 comments

AI Coding

https://geohot.github.io//blog/jekyll/update/2025/09/12/ai-coding.html
2•DavidHaerer•37m ago•1 comments

North Korea executing more people for watching foreign films and TV, UN finds

https://www.bbc.com/news/articles/ckgqdz17ye3o
1•vinni2•38m ago•0 comments

Fluid vacuum yields exact solutions to Pioneer anomaly and Mercury's perihelion

https://cdnsciencepub.com/doi/10.1139/cjp-2018-0744
2•westurner•38m ago•2 comments

Show HN: TrailDrop – Lightweight GPX sharing and monetization platform

https://traildrop.app/
2•darkwasp-pl•40m ago•2 comments

EU accepts Microsoft's commitments to address competition concerns over Teams

https://ec.europa.eu/commission/presscorner/detail/en/ip_25_2048
2•Improvement•43m ago•0 comments

MP gives BRUTALLY honest speech: 'Parliament is a WASTE OF TIME ' [video]

https://www.youtube.com/watch?v=dl6tMnpNu3Y
2•ksec•48m ago•0 comments

How to not give up trying to run OpenBMC on Supermicro X11SSH?

https://cfp.3mdeb.com/zarhus-developers-meetup-2-2025/talk/QRDX8S/
2•pietrushnic•50m ago•1 comments

What's the best way to benchmark neuro‑symbolic‑causal AI agents?

https://github.com/akarlaraytu/Project-Chimera
1•aytuakarlar•55m ago•1 comments

Maybe everything is OSS now (but not F)

https://www.jeffwofford.com/wp/?p=2252
1•putzdown•59m ago•0 comments

GhostChat v2.0 – Local-first AI chat with IndexedDB persistence and offline

https://github.com/GodsIMiJ1/ghostchat-nextjs-supabase-ai/tree/v2.0-sovereign-aga
2•ghostking613•1h ago•1 comments

Wandering Black Hole Has Left Its Galactic Center – Universe Today

https://www.universetoday.com/articles/this-wandering-black-hole-has-left-its-galactic-center
1•rbanffy•1h ago•0 comments

Perihelion precession of planetary orbits solved from quantum field theory

https://arxiv.org/abs/2506.14447
1•westurner•1h ago•2 comments