<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pomentomori</title>
    <description>The latest articles on DEV Community by Pomentomori (@pomentomori).</description>
    <link>https://dev.to/pomentomori</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4252019%2F8a16da6c-81c8-4b74-9e67-4d3d01463076.png</url>
      <title>DEV Community: Pomentomori</title>
      <link>https://dev.to/pomentomori</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pomentomori"/>
    <language>en</language>
    <item>
      <title>I Built an Ephemeral 4-Track Music Jam in the Browser That Vanishes After 16 Hours</title>
      <dc:creator>Pomentomori</dc:creator>
      <pubDate>Wed, 18 Nov 2026 13:45:50 +0000</pubDate>
      <link>https://dev.to/pomentomori/i-built-an-ephemeral-4-track-music-jam-in-the-browser-that-vanishes-after-16-hours-kgg</link>
      <guid>https://dev.to/pomentomori/i-built-an-ephemeral-4-track-music-jam-in-the-browser-that-vanishes-after-16-hours-kgg</guid>
      <description>&lt;p&gt;Making music online often feels intimidating—everything is permanent, polished, and tied to a profile. I wanted the opposite: a low-pressure, anonymous playground where strangers can layer a quick beat, bassline, or hummed melody together, knowing the entire song will disappear after 16 hours.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Session16&lt;/strong&gt;:&lt;br&gt;
&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://session16-624dc.web.app" rel="noopener noreferrer"&gt;https://session16-624dc.web.app&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero install, browser-native audio&lt;/strong&gt;: Powered by React, TypeScript, and Tone.js (Web Audio API).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Play by touch (&lt;code&gt;XYPad&lt;/code&gt;)&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vertical axis (Y)&lt;/strong&gt; controls pitch—snapped to a C major pentatonic scale in &lt;code&gt;EASY&lt;/code&gt; mode (so it is impossible to hit a wrong note), chromatic in &lt;code&gt;FREE&lt;/code&gt; mode, or 5 equal-height pads for &lt;code&gt;DRUMS&lt;/code&gt; (Crash, Open HH, Closed HH, Snare, Kick).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Horizontal axis (X)&lt;/strong&gt; controls real-time expression—sweeping filter cutoffs, reverb wet mix, vibrato, chords (minor/major), or BPM-synced 16th/8th note arpeggios and drum rolls.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hum into your mic (&lt;code&gt;HUM&lt;/code&gt; mode)&lt;/strong&gt;: Don't want to tap? Sing or hum a melody and have it transcribed into quantized synth/instrument notes directly in the browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4-Track Anonymous Collab + 16-Hour TTL&lt;/strong&gt;: Every session accepts up to 4 tracks (Piano, Synth, Guitar, Bass, Drums) and vanishes 16 hours after the last update. Everything created is &lt;strong&gt;CC0 (public domain)&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to hear it in 3 seconds without recording anything, just click &lt;strong&gt;TRY STUDIO PAD&lt;/strong&gt; on the home screen and hit &lt;strong&gt;DEMO PLAY&lt;/strong&gt; inside the pad—or play one of the featured demo loops on the Discover feed.&lt;/p&gt;


&lt;h2&gt;
  
  
  A Few Fun Technical Details
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. Smooth Note &amp;amp; Chord Transitions Without Voice Dropouts
&lt;/h3&gt;

&lt;p&gt;When sliding a finger horizontally on the XY pad from a single note &lt;code&gt;[60]&lt;/code&gt; into a major chord &lt;code&gt;[60, 64, 67]&lt;/code&gt;, stopping all previous notes and retriggering every note in the same Web Audio frame causes Tone.js &lt;code&gt;PolySynth&lt;/code&gt; voice collisions (dropping the root note).&lt;/p&gt;

&lt;p&gt;Instead, I compute the exact note diff on pointer move so shared notes stay ringing continuously:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;diffNotes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;oldNotes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;newNotes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;toStop&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;oldNotes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;newNotes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;toPlay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;newNotes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;oldNotes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;toStop&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;toPlay&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Turning Humming Into Quantized MIDI Events in the Browser
&lt;/h3&gt;

&lt;p&gt;In &lt;code&gt;HUM&lt;/code&gt; mode, &lt;code&gt;PitchDetector&lt;/code&gt; captures time-domain buffers from an &lt;code&gt;AnalyserNode&lt;/code&gt; (&lt;code&gt;fftSize = 4096&lt;/code&gt;) and runs an autocorrelation pitch estimator with parabolic interpolation, followed by a median smoothing filter and 16th-note mode quantization. No external ML backend required—everything runs locally on the client.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Audio-Clock Synced Playback &amp;amp; Safe Loop Wrapping
&lt;/h3&gt;

&lt;p&gt;Tracks are scheduled on &lt;code&gt;Tone.getTransport()&lt;/code&gt; using &lt;code&gt;Tone.Part&lt;/code&gt; with &lt;code&gt;triggerAttackRelease&lt;/code&gt; clamped cleanly inside the loop boundary (&lt;code&gt;loopEnd&lt;/code&gt;), preventing wrapped &lt;code&gt;noteOff&lt;/code&gt; events from cutting off notes at the start of the next bar.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It &amp;amp; Jam With Me
&lt;/h2&gt;

&lt;p&gt;There are open loops waiting in the &lt;strong&gt;OPEN JAM&lt;/strong&gt; tab right now (and bilingual &lt;strong&gt;EN / JA&lt;/strong&gt; switching in the top bar).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Link:&lt;/strong&gt; &lt;a href="https://session16-624dc.web.app" rel="noopener noreferrer"&gt;https://session16-624dc.web.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your feedback on the touch feel, sound design, or Web Audio implementation—or feel free to drop a drum beat or synth line on an open session before it vanishes!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>music</category>
    </item>
  </channel>
</rss>
