Dogalog is a real-time music creation environment based on the Prolog language, where users can create algorithmic rhythms and melodies by writing logical rules. The environment supports live coding, with code changes automatically applied and visual feedback, while state persistence ensures loop counters and cooldowns are maintained between updates. It features a 13-step interactive tutorial, supports PWA installation and offline use, and adopts a mobile-first, touch-friendly interface. The system implements complex musical rhythms through built-in predicates like beat, every, and euc, supporting advanced features such as scales, chords, and probabilistic variations, with all sounds synthesized in real-time via WebAudio. The project uses a modular architecture with all code files under 100 lines and achieves over 88% test coverage, providing a powerful and intuitive tool for algorithmic music composition.
Original Link:Hacker News





