惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
D
Docker
WordPress大学
WordPress大学
罗磊的独立博客
J
Java Code Geeks
博客园 - 【当耐特】
博客园 - 司徒正美
雷峰网
雷峰网
H
Help Net Security
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
B
Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Studio Violin: Building a Physically Modelled Bowed-Strin...
Gary Doman/T · 2026-05-15 · via DEV Community

Studio Violin: Building a Physically Modelled Bowed-String Instrument in Instrudio

I’m building Instrudio, a browser-based virtual instrument ecosystem, and the flagship instrument right now is Studio Violin.

Studio Violin is a physically modelled bowed-string instrument built around Helmholtz motion synthesis, H2 harmonic correction, inharmonicity modelling, Stradivari-style body resonances, sympathetic open-string resonance, and live MIDI control.

The goal is not just to make a violin-like web instrument. The goal is to prove that a single version-controlled instrument definition can drive synthesis, UI, MIDI routing, plugin bridge behavior, presets, and live update propagation from one source of truth.

What Studio Violin does

Studio Violin models the behavior of a bowed violin string using a synthesis chain designed around acoustic measurements and practical browser audio constraints.

The instrument includes:

  • Helmholtz bowed-string waveform synthesis
  • H2 correction oscillator
  • Inharmonicity chorus per string
  • 8-band Stradivari-style body EQ
  • Per-string tonal offsets
  • Sympathetic open-string resonance
  • Nonlinear bow coupling
  • Pressure-coupled vibrato
  • Interval-scaled portamento
  • Bow-pressure, bow-speed, bow-point, character, brightness, attack, and vibrato controls
  • External MIDI routing through the Instrudio app

Synthesis model

The Helmholtz waveform uses a Fourier-style bowed-string model:

bₙ = −(2 / (n²π²D(1−D))) · sin(nπD)
D = 0.5 + bowPressure × 0.30

Enter fullscreen mode Exit fullscreen mode

The H2 correction oscillator is used to bring the second harmonic closer to the target H2/H1 balance measured in bowed-string acoustic research.

Studio Violin also includes per-string inharmonicity spread:

G = 0.00035
D = 0.00028
A = 0.00022
E = 0.00018

Enter fullscreen mode Exit fullscreen mode

The result is a sound engine that behaves less like a static sample trigger and more like a continuously controlled bowed instrument.

Stradivari-style body resonances

The body EQ model uses eight resonance bands:

A0: 275 Hz
A1: 475 Hz
B1−: 530 Hz
B1+: 580 Hz
Bridge hill: 2800 Hz, Q = 6.5
Upper resonance: 4500 Hz
Notch: 1100 Hz
Warmth: 180 Hz

Enter fullscreen mode Exit fullscreen mode

There are also per-string offsets:

G string: warmer, reduced bridge hill
E string: brighter, boosted bridge hill

Enter fullscreen mode Exit fullscreen mode

This lets the instrument react differently across the G, D, A, and E strings instead of applying one flat tone curve to the whole range.

Sympathetic resonance

Studio Violin includes sympathetic resonance using four triangle oscillators tuned to the open strings.

Amplitude = (1 − cents / 20) × 0.038

Enter fullscreen mode Exit fullscreen mode

The closer the played note is to an open-string relationship, the stronger the sympathetic contribution becomes.

Expressive controls

The instrument exposes controls for:

  • Bow pressure
  • Bow speed
  • Bow point
  • Vibrato rate
  • Vibrato depth
  • Attack
  • Brightness
  • Reverb
  • Volume
  • Playing character

Character modes include:

  • Solo
  • Bowed
  • Pizzicato
  • Col Legno
  • Tremolo
  • Spiccato

It also includes scale helpers such as G Major, D Major, A Minor, and Chromatic.

Signal chain

The current signal chain is:

PeriodicWave oscillator
→ H2 oscillator
→ chorus oscillators
→ WaveShaper
→ injection gain
→ warm shelf
→ 8 peaking body EQ bands
→ master output

Enter fullscreen mode Exit fullscreen mode

Single-source-of-truth instrument architecture

The bigger architecture behind Instrudio is the part I’m most excited about.

Studio Violin is driven by a single JSON definition file. That one definition can drive:

  1. The web audio synthesis engine
  2. The instrument UI
  3. External MIDI CC routing
  4. Note mapping
  5. Plugin bridge event protocol
  6. Preset management
  7. Live auto-update propagation across connected outlets

The runtime uses a remote-first fetch strategy, so definition changes pushed to GitHub can propagate to connected running instances within the cache TTL window.

The default TTL is currently 5 minutes.

Runtime metrics

Instrudio also includes live evaluation metrics for the single-source-of-truth runtime.

The metrics panel can display:

  • SSOT fetch latency
  • Definition apply time
  • Remote source availability
  • MIDI pipeline latency

These are captured with high-resolution timing through performance.now().

Metrics are also available programmatically through:

InstrudioSSOTRuntime.getMetrics()
InstrudioMIDI.getLatencyMetrics()

Enter fullscreen mode Exit fullscreen mode

Why this matters

A lot of virtual instruments are either sample libraries, closed plugin binaries, or isolated web toys.

Instrudio is aiming for something different:

  • web-first instruments
  • version-controlled definitions
  • measurable runtime behavior
  • MIDI-aware performance
  • bridgeable plugin architecture
  • open development
  • fast iteration without redeploying every outlet manually

Studio Violin is the flagship proof-of-concept for that architecture.

Repo

https://github.com/GareBear99/Instrudio

Feedback wanted

I’m looking for feedback from:

  • audio developers
  • Web Audio developers
  • musicians
  • violinists
  • producers
  • plugin developers
  • MIDI users
  • people interested in physical modelling

Useful feedback includes:

  • browser and OS
  • MIDI device behavior
  • latency
  • tone realism
  • UI feel
  • control response
  • broken notes or stuck notes
  • console errors
  • ideas for the next instrument model

Studio Violin is the flagship instrument in Instrudio, and I’m building it in public.