<?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: Geovana Sousa</title>
    <description>The latest articles on DEV Community by Geovana Sousa (@geovanaslima).</description>
    <link>https://dev.to/geovanaslima</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%2F4063202%2F3db85596-3190-4ab7-957f-13a456ad9997.jpg</url>
      <title>DEV Community: Geovana Sousa</title>
      <link>https://dev.to/geovanaslima</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/geovanaslima"/>
    <language>en</language>
    <item>
      <title>beats to breathe to: a lo-fi radio that plays at your heart rate</title>
      <dc:creator>Geovana Sousa</dc:creator>
      <pubDate>Thu, 19 Nov 2026 21:02:54 +0000</pubDate>
      <link>https://dev.to/geovanaslima/beats-to-breathe-to-a-lo-fi-radio-that-plays-at-your-heart-rate-94f</link>
      <guid>https://dev.to/geovanaslima/beats-to-breathe-to-a-lo-fi-radio-that-plays-at-your-heart-rate-94f</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/presage-2026-11-04"&gt;Presage SmartSpectra SDK Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;beats to breathe to is a cozy lo-fi radio that only exists while you're in front of it. Your webcam reads your pulse and breathing with the Presage SmartSpectra SDK, and the music follows you:&lt;/p&gt;

&lt;p&gt;your heartbeat is the tempo, shown as the station frequency ("72.0 FM"),&lt;br&gt;
your breathing shapes the sound, open and airy when it's slow, softer when it's fast,&lt;br&gt;
steady breathing unlocks cassette tapes one by one: rain → piano → bass → melody,&lt;br&gt;
and every session ends as a tape only you could have played, and you can record a 15 s clip of it to download.&lt;br&gt;
It's a musical instrument, not a health tool: the signals are only ever musical inputs.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/pgDhCGLfAZc" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Everything in the video is live: real signals from the SmartSpectra SDK, no simulator (the app shows an amber SIMULATED badge whenever the simulator is on, and it never appears here). The tuning screen is sped up 3× and labelled; the music is the app's own output, recorded from the same session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/GeovanaSLima" rel="noopener noreferrer"&gt;
        GeovanaSLima
      &lt;/a&gt; / &lt;a href="https://github.com/GeovanaSLima/beats-to-breathe-to" rel="noopener noreferrer"&gt;
        beats-to-breathe-to
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A lo-fi radio that plays at your heart rate
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;beats to breathe to&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;A lo-fi radio that plays at your heart rate. Your webcam reads your pulse and breathing with the &lt;a href="https://smartspectra.presagetech.com/" rel="nofollow noopener noreferrer"&gt;Presage SmartSpectra SDK&lt;/a&gt;, and the music follows: your heartbeat sets the tempo, your breathing shapes the sound, and steady breathing unlocks new cassette tapes (rain → piano → bass → melody). Every session ends as a tape only you could have played, and you can record a 15 s clip of it to watch and download.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This is a musical instrument, not a health tool.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Screenshots&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Consent&lt;/th&gt;
&lt;th&gt;Tuning in&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a rel="noopener noreferrer" href="https://github.com/GeovanaSLima/beats-to-breathe-to/docs/screenshots/welcome.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FGeovanaSLima%2Fbeats-to-breathe-to%2FHEAD%2Fdocs%2Fscreenshots%2Fwelcome.png" alt="Welcome screen with the consent note"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a rel="noopener noreferrer" href="https://github.com/GeovanaSLima/beats-to-breathe-to/docs/screenshots/tuning.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FGeovanaSLima%2Fbeats-to-breathe-to%2FHEAD%2Fdocs%2Fscreenshots%2Ftuning.png" alt="Tuning screen reading face, pulse and breathing"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Now playing&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Your tape&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a rel="noopener noreferrer" href="https://github.com/GeovanaSLima/beats-to-breathe-to/docs/screenshots/playing.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FGeovanaSLima%2Fbeats-to-breathe-to%2FHEAD%2Fdocs%2Fscreenshots%2Fplaying.png" alt="Now playing: the station frequency is your heartbeat"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;&lt;a rel="noopener noreferrer" href="https://github.com/GeovanaSLima/beats-to-breathe-to/docs/screenshots/tape.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FGeovanaSLima%2Fbeats-to-breathe-to%2FHEAD%2Fdocs%2Fscreenshots%2Ftape.png" alt="Your tape card: average bpm, breaths per minute and tapes unlocked"&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How it works&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/GeovanaSLima/beats-to-breathe-to/docs/diagram/signals.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2FGeovanaSLima%2Fbeats-to-breathe-to%2FHEAD%2Fdocs%2Fdiagram%2Fsignals.png" alt="How the radio responds to your signals: pulse sets the tempo, breathing rate shapes the sound, steady breathing unlocks tapes, HRV adds swing"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Your signal&lt;/th&gt;
&lt;th&gt;What it changes in the music&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Pulse&lt;/strong&gt; (bpm)&lt;/td&gt;
&lt;td&gt;The tempo. Smoothed (EMA), kept between 60 and 110 bpm, ignores changes under 1 bpm and glides to the new tempo over 3 s. Shown as the station frequency, e.g. "72.0 FM".&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Breathing rate&lt;/strong&gt; (/min)&lt;/td&gt;
&lt;td&gt;A low-pass filter and the reverb.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/GeovanaSLima/beats-to-breathe-to" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;The README has setup steps for the bridge and the web app, a simulator mode for trying it without a camera, the architecture and the privacy section.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Responds to Human Signals
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpe77b5a2p0fadgvla0r2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpe77b5a2p0fadgvla0r2.png" alt="How the radio responds to your signals" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live signals used:&lt;/strong&gt; pulse, breathing rate and HRV.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;What the music does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Pulse&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Sets the tempo (60–110 bpm). It's smoothed so the beat never jumps, and glides to a new tempo in about 3 s. Do some jumping jacks off camera, come back, and the station frequency (and the beat) climbs with your heart.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Breathing rate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Drives a low-pass filter and the reverb: slow breaths (≤10/min) open the sound up with more space, fast breaths (≥18/min) make it softer and drier.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Steady breathing&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;20 s of breathing that stays close to its own rolling median unlocks the next tape, with a chime and a little confetti. Unsteady moments make the counter slip back slowly instead of resetting it, so it never feels like a punishment.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;HRV&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Adds a touch of swing to the drums, so the groove feels human (when the SDK has a stable HRV reading, which can take a while).&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;How it reacts in real time&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The music only starts once your face, pulse and breathing are all being read, with a tuning screen that ticks each one off and a radio needle that glides to your pulse.&lt;/li&gt;
&lt;li&gt;If the SDK asks you to adjust ("Place more of the chest in view."), the tip shows up right under your camera polaroid.&lt;/li&gt;
&lt;li&gt;Step away from the camera and, after 5 s, the music turns down and the radio dims until you're back; as soon as your face returns, so does the music.&lt;/li&gt;
&lt;li&gt;At the end, the camera turns off by itself and your session becomes a cassette with your average bpm, breaths per minute and tapes unlocked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How I integrated the SDK&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcdo62fn8urzx5md4y74w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcdo62fn8urzx5md4y74w.png" alt="Architecture: the webcam feeds a local bridge running the SmartSpectra SDK, which sends JSON over localhost to the browser app; only numbers go to Presage" width="800" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There's no browser build of the SDK, so the app has two parts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A local bridge (Node.js)&lt;/strong&gt; runs the &lt;a href="https://www.npmjs.com/package/@smartspectra/node-sdk" rel="noopener noreferrer"&gt;&lt;code&gt;@smartspectra/node-sdk&lt;/code&gt;&lt;/a&gt; on the user's computer. It owns the camera, decodes the SDK's metrics (pulse, breathing rate, HRV, each with a confidence and a &lt;code&gt;stable&lt;/code&gt; flag) and its validation status (face found, chest in view, motion), and sends about one small JSON message per second over a WebSocket on &lt;code&gt;localhost&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The web app (Vite + TypeScript + Tone.js)&lt;/strong&gt; turns those numbers into music. Everything you hear is synthesized live in the browser, with no samples.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A few things I learned from the live signals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Breathing takes time.&lt;/strong&gt; The SDK needs several breaths before it trusts a breathing rate (often 30–60 s), and after that it flags a sample as stable only every 10–25 s. So the bridge treats one stable breathing reading as valid for 30 s, or until the chest leaves the frame, and the app only uses breathing values the SDK marked stable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smooth beats raw.&lt;/strong&gt; The pulse goes through an EMA and a small deadband before it touches the tempo, and the tempo ramps instead of jumping, so the music feels alive rather than jittery.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Honest UI.&lt;/strong&gt; Any value that isn't confirmed yet reads "Reading…", and the simulator, used only for development, is always badged.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;Most Creative or Delightful Use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Consent and Data Handling
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Consent:&lt;/strong&gt; the camera turns on only after you tick a checkbox and press a button. You can turn it off at any time from the tuning and playing screens, and it turns off automatically on the final screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Images stay on your computer:&lt;/strong&gt; the camera is read by the SmartSpectra SDK running locally inside the bridge. No camera image or video is recorded, stored or sent anywhere, and the microphone is never used. The live preview in the app is a local self-view that never leaves the browser tab.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is sent to Presage:&lt;/strong&gt; the SDK turns the camera feed into numbers (pulse, breathing rate, HRV). Those numbers, never images, go to Presage, the company that makes the SDK, in two cases:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;API key check:&lt;/strong&gt; the SDK validates the API key and subscription when a session starts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatic AI summaries:&lt;/strong&gt; the SDK also sends the measured numbers to Presage on its own, about every 60 seconds while the camera is on, to generate a short AI summary ("LLM Insights"). This is built into the SDK and can't be turned off. The app never asks for, shows or stores those summaries, and Presage's documentation doesn't say how long it keeps this data. The welcome screen says this before you turn the camera on.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SDK telemetry is off:&lt;/strong&gt; the bridge sets &lt;code&gt;enableTelemetry: false&lt;/code&gt;, so the SDK sends no usage or diagnostic reports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inside the app:&lt;/strong&gt; the numbers travel from the bridge to the browser over &lt;code&gt;localhost&lt;/code&gt; only. They live in memory during the session and are discarded on stop or close. No accounts, no database, no cookies, no localStorage, no analytics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your clip:&lt;/strong&gt; the 15 s clip is drawn from the music and a canvas view of the radio (vinyl, station frequency, tapes), never the camera image. It's made in memory and saved only if you click Download.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deletion:&lt;/strong&gt; closing the tab or pressing "Turn off" stops the camera and drops the session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not a health tool:&lt;/strong&gt; no diagnosis, no medical claims, no stress or wellness scores. Pulse and breathing are musical inputs only.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>presagechallenge</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
