<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aprajita Shukla W on Medium]]></title>
        <description><![CDATA[Stories by Aprajita Shukla W on Medium]]></description>
        <link>https://medium.com/@aprajita.shukla.w?source=rss-a3af7a6dcd39------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*n0Ypk1esh1BffJ0S</url>
            <title>Stories by Aprajita Shukla W on Medium</title>
            <link>https://medium.com/@aprajita.shukla.w?source=rss-a3af7a6dcd39------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:26:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aprajita.shukla.w/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Evolution of Chordial: A Fortnight of Architecture and Refinement Followed by User Feedback]]></title>
            <link>https://medium.com/@aprajita.shukla.w/evolution-of-chordial-a-fortnight-of-architecture-and-refinement-followed-by-user-feedback-6da3175dbb49?source=rss-a3af7a6dcd39------2</link>
            <guid isPermaLink="false">https://medium.com/p/6da3175dbb49</guid>
            <dc:creator><![CDATA[Aprajita Shukla W]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 04:29:29 GMT</pubDate>
            <atom:updated>2026-06-07T04:29:29.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMbQXF_kS1JGFy-nBC8G3g.png" /></figure><p>In my last post, I wrote about building Chordial as a proof of concept — <a href="https://medium.com/@aprajita.shukla.w/as-a-beginner-ukulele-player-you-know-that-feeling-you-hear-a-song-you-love-and-immediately-want-a3b309119571">a working version showing that song identification, chord lookup, and a mobile experience could function together</a>.</p><p>Two weeks ago, we set out with a clear objective: strengthen Chordial’s technical foundation and get some user feedback. We knew our initial prototyping phase had served us well as the core concept was solid but under the hood, there were inefficiencies and inconsistencies that would eventually hold us back as we scaled.</p><p>Today, we’re sharing two major architectural decisions that have fundamentally improved how Chordial fingerprints, searches, and serves audio identification requests. This is the kind of work that matters deeply to performance, reliability, and the future of the platform.</p><h3>Issues with SHA-1 Hashing</h3><p>When we started building Chordial’s fingerprinting pipeline, we made a pragmatic choice: use SHA-1 for hashing our audio sub-fingerprints. SHA-1 is a cryptographic hash function — mathematically rigorous, collision-resistant, and battle-tested across decades of security applications.</p><p>It’s also… overkill.</p><p>Here’s the thing about audio fingerprinting: we don’t need cryptographic guarantees. We’re not securing passwords or signing certificates. We’re comparing acoustic features at high frequency, performing millions of lookups per day against a database of song fingerprints. For this use case, SHA-1’s cryptographic overhead is a performance liability.</p><p>Every fingerprint extracted from your 10-second audio capture was being hashed with SHA-1 before being looked up in our database. At scale, this adds up — extra CPU cycles, latency that compounds across our pipeline, and unnecessary computational expense.</p><h3>Enter Murmur3</h3><p>We made the switch to Murmur3, a non-cryptographic hash function designed specifically for scenarios like ours. Murmur3 was built for speed without sacrificing distribution quality. It’s what powers systems that need to hash billions of data points quickly, and it’s exactly what a real-time audio fingerprinting system requires.</p><p>The results were immediate:</p><ul><li><strong>Lower CPU overhead</strong> during the hashing phase</li><li><strong>Faster database lookups</strong> as we process each fingerprint</li><li><strong>Better latency</strong> across the entire identification pipeline</li><li><strong>Excellent distribution properties</strong> that maintain a low collision rate</li></ul><p>By moving away from cryptographic hashing toward a purpose-built approach, we’ve made the system more responsive without compromising accuracy. It’s a small change with outsized impact — the kind of optimization that compounds as volume increases.</p><h3>The Bigger Problem: Code Drift</h3><p>But while the Murmur3 switch improved performance, it revealed a deeper architectural challenge that we’ve been thinking about since day one: consistency.</p><p>Here’s the scenario: A musician in Portland hears a song they love and opens Chordial. The app captures 10 seconds of ambient audio, sends it to the API, and waits for identification. Behind the scenes, that audio fragment is being fingerprinted using our extraction algorithms, hashed, and compared against our master database of song fingerprints.</p><p>But where did those master fingerprints come from? They came from our backend, where we ingest studio recordings and extract their fingerprints using <em>slightly different code</em>. Maybe the signal processing pipeline was implemented differently. Maybe the feature extraction has a subtle variation. Maybe one version of the code has been updated while the other hasn’t.</p><p>This is “code drift” — and it’s the silent killer of fingerprinting systems.</p><p>Even small discrepancies between how we fingerprint a master track and how we fingerprint a user’s ambient audio capture can lead to failed identifications. A song that should match doesn’t. A user taps the logo, waits for the Black Hole animation to complete, and gets nothing. It’s the antithesis of the frictionless experience we’re trying to create.</p><h3>The Solution: Chordial-Docker</h3><p>To eliminate code drift entirely, we built chordial-docker—a containerized, Python-based fingerprinting engine that serves as the single source of truth for all fingerprinting operations across our stack.</p><p>Whether we’re:</p><ol><li><strong>Ingesting</strong> new tracks into our master database on the backend, or</li><li><strong>Identifying</strong> ambient audio fragments from a user’s device via the API,</li></ol><p>…we now run the exact same Python code, in the exact same environment, with the exact same dependencies. No variations. No surprises.</p><p>The architecture looks like this:</p><ul><li>The <strong>Backend</strong> ingests tracks by spinning up a chordial-docker instance, extracting fingerprints, and storing them in our master library</li><li>The <strong>API</strong> (Cloudflare Worker) receives ambient audio from the app, invokes chordial-docker to fingerprint it, and performs the lookup</li><li>The <strong>App</strong> still handles all the UI magic and high-quality audio capture — this hasn’t changed</li></ul><p>But now, every fingerprint — whether from a studio master or a noisy cafe — is extracted through the identical pipeline. This “Source of Truth” architecture means that when a user’s ambient audio is compared against our master library.</p><p>The result? Higher accuracy, fewer false negatives, and the confidence that our system will reliably identify songs across different environments, devices, and network conditions.</p><h3>Strengthening the Foundation</h3><p>We started with a working prototype. We’ve now built an <em>elegant</em> system — one where:</p><ul><li><strong>Performance</strong> is optimized for the specific problem we’re solving, not optimized for generic use cases</li><li><strong>Consistency</strong> is baked into the architecture, not achieved through careful coordination</li><li><strong>Scalability</strong> is possible because we’ve removed the technical debt that would otherwise compound</li></ul><p>The API is now a thin, high-performance layer that coordinates requests and delegates the heavy lifting to our Dockerized core. The App continues to provide the delightful user experience that makes discovery frictionless. And the Backend maintains a single, unified source of truth for all fingerprinting operations.</p><h3>What’s Next</h3><p>As we move forward, this foundation opens new doors. We can:</p><ul><li><strong>Expand our library</strong></li><li><strong>Scale our infrastructure</strong></li><li><strong>Add new features</strong> — like perhaps pdf formatting of downloadable chord charts.</li></ul><p>The last two weeks have been about getting the fundamentals right. It’s not the most exciting work — there are no new buttons, no flashy animations — but it’s the work that makes everything that comes next possible.</p><p>We’re excited to keep building on this foundation. Thank you to everyone who’s been following along with Chordial’s journey. More updates coming soon.</p><p><em>If you’re interested in the technical details of audio fingerprinting, real-time processing, or containerized systems, we’d love to hear from you. Reach out if you have questions or thoughts on our architecture.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6da3175dbb49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[As a beginner ukulele player, you know that feeling — you hear a song you love and immediately want…]]></title>
            <link>https://medium.com/@aprajita.shukla.w/as-a-beginner-ukulele-player-you-know-that-feeling-you-hear-a-song-you-love-and-immediately-want-a3b309119571?source=rss-a3af7a6dcd39------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3b309119571</guid>
            <category><![CDATA[ukulele]]></category>
            <category><![CDATA[audio-fingerprinting]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[music-apps]]></category>
            <category><![CDATA[chord-chart]]></category>
            <dc:creator><![CDATA[Aprajita Shukla W]]></dc:creator>
            <pubDate>Mon, 18 May 2026 03:59:22 GMT</pubDate>
            <atom:updated>2026-05-18T03:59:22.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*3_tgeLYf-4JAAOKcxzUS8w.png" /><figcaption>A mobile app for finding chord charts for songs you hear while out and about</figcaption></figure><p>As a beginner ukulele player, you know that feeling — you hear a song you love and immediately want to learn it. But then comes the frustration of trawling through YouTube tutorials, paying for song sheets, or realizing the chords you found are way too complex for where you’re at. It’s <strong>painful</strong>, and it happens every single time you discover a new song.</p><p>And that’s the thing — it’s not a one-off. It’s <strong>repetitive</strong>. Every new song you fall in love with sends you through the same exhausting cycle. On top of that, it’s <strong>costly</strong> — tutors aren’t cheap, song sheets aren’t free, and the hours spent searching add up fast.</p><p>The worst part? That <strong>urgent</strong> moment when a melody is stuck in your head and you need to learn it <em>right now</em> — before the feeling fades — and there’s nothing out there that meets you in that moment.</p><p>That’s exactly what Chordial is built for. Not for every musician — but <strong>specifically</strong> for beginner ukulele players who want to learn popular songs. That clarity is what makes it powerful.</p><p>Chordial identifies any song you hear and instantly generates beginner-friendly ukulele chords — on the fly, no tutors, no paid sheets, no endless searching. It gives you the confidence that any melody you fall in love with is within your reach. With Chordial, all of popular music becomes playable by you, from the moment you hear it.</p><h4>So We Built It. In 10 Hours.</h4><p>Well — almost. But we’ll get to that.</p><p>The goal wasn’t to ship a finished product. It was to prove that the core pieces could exist together: a mobile app, an API layer, a database-backed fingerprint lookup flow, and an experimental audio fingerprinting algorithm. A technical vertical slice. Enough to show that the idea isn’t just a good pitch — it’s a buildable thing.</p><p>Here’s what we actually built, and how it fits together. The full code is across three repos if you want to dig in:</p><ul><li><strong>Frontend app:</strong> <a href="https://github.com/mike-r-karras/chordial">github.com/mike-r-karras/chordial</a></li><li><strong>Cloudflare API:</strong> <a href="https://github.com/mike-r-karras/chordial-api">github.com/mike-r-karras/chordial-api</a></li><li><strong>Fingerprinting prototype:</strong> <a href="https://github.com/ShuklAp25/chordial-backend">github.com/ShuklAp25/chordial-backend</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C0QMqkH0qMmcpKW-3UJHQA.png" /></figure><h4>Fig 1. Chordial Architecture</h4><h4>The Mobile App — Where the User Lives</h4><p>The frontend is built with Expo and React Native, and it’s centered around one action: tap to identify the song.</p><p>The flow is simple on the surface. You open the app, tap the button, hold your phone up to the music, and Chordial listens. It captures roughly 10 seconds of audio, generates fingerprints, sends them to the API, and comes back with a song title, artist, and a chord chart PDF you can open straight away.</p><p>Under the hood, all the audio logic lives in a custom hook called <em>useAudioProcessor</em>, which keeps the recording lifecycle cleanly separated from the UI. That means the app can handle all its states — recording, searching, matched, failed — without the interface getting tangled in microphone logic.</p><p>We also put care into how it <em>feels</em>. There’s a pulsing button, a recording animation, and a particle animation that forms the word <em>Chordial</em> when the app opens. That last one isn’t infrastructure — but it matters. A prototype that feels intentional is a prototype people can actually believe in.</p><h4>The API — The Backbone of the Lookup</h4><p>The API runs on Cloudflare Workers, which means it lives close to users with minimal operational overhead. The stack is Hono for routing, Chanfana for OpenAPI definitions, Zod for schema validation, and Cloudflare D1 as the relational database.</p><p>The most important route is POST /lookup. You send it an array of fingerprints — each one a hash and a time offset — and it figures out which song you’re hearing.</p><p>The matching logic is close to the classic Shazam-style approach. It groups incoming fingerprints by hash, queries the database for matches, and then looks at the <em>time delta</em> between each database match and the query. The insight is this: a single matching hash is weak evidence. But if dozens of hashes from the same song all align around the same time offset difference, that’s strong evidence you’re listening to that song. The largest cluster wins.</p><p>We also built a lightweight security model — read and lookup operations use a general API key, while admin write operations require a separate key. Nothing overbuilt, but enough to keep the prototype sensible.</p><h4>The Fingerprinting Algorithm — The Hard Part</h4><p>This is where the real complexity lives, and it has its own dedicated research repo.</p><p>The algorithm is written in Python using NumPy and SciPy. The process goes like this: load the audio, convert it to mono, compute a log-magnitude spectrogram, find the local frequency peaks, pair each peak with nearby future peaks, and hash the combination of two frequencies and the time delta between them. Every song becomes a collection of these compact fingerprint hashes stored alongside its ID and anchor offset.</p><p>What makes this powerful is that you’re never comparing raw audio directly. A short, noisy clip recorded on a phone microphone can still match a song if enough of its landmark hashes survive. It’s resilient by design.</p><p>The prototype has tunable constants — window size, overlap, peak thresholds, fan-out — and finding the right values is part of the work still ahead. Making the recognizer robust across different phones, rooms, speakers, and clip lengths is a real engineering challenge. But the foundation is there.</p><h4>What This Actually Proved</h4><p>Honest answer: this took longer than 10 hours. And that’s worth saying directly.</p><p>A “tap to find chords” app sounds simple. But it crosses mobile audio APIs, signal processing, API design, database modelling, authentication, and deployment — all at once. Each layer is understandable on its own. Connecting them cleanly is where the time goes.</p><p>What the prototype proved is that the architecture is real and the path is credible:</p><ul><li>A React Native app can capture audio and drive an identify-song experience</li><li>A Cloudflare Worker can host the lookup API efficiently</li><li>D1 can store songs and fingerprint rows for matching</li><li>The fingerprint matching model works as hash lookup plus offset clustering</li><li>The full chain — from recorded audio to chord chart — can be designed and tested end to end</li></ul><h4>What’s Still to Come</h4><p>Several pieces are intentionally unfinished. The frontend still uses some mocked API behavior. The fingerprinting prototype isn’t yet a production service. The chord chart PDF flow uses placeholder behavior. And the recognition database needs real songs, real ingestion tooling, and a bigger test set.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3b309119571" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>