WhistleSim
WhistleSim icon: a brass whistle on navy

A whistle you play on a WARBL2

WhistleSim simulates a tin whistle or a recorder from WARBL2's raw sensor readings. It plays no samples and uses no fingering chart: pitch, tone and response come out of the physics.

Download for macOS Download for Windows Download for Linux

Latest version on GitHub. macOS 12 or newer, Windows 10 or newer (x64), Linux x86_64 (glibc 2.39 or newer). Free and open source (GPL v3). An iPhone and iPad app is on its way.

Needs a WARBL2 with firmware 4.8 or later. No WARBL? The app has a built-in simulated player. Getting started →

Hear it

Demo of WARBL and WhistleSim
Some more sounds from WhistleSim

The videos are on YouTube and load from there only when you press play.

What it does

WARBL2 sends WhistleSim what its sensors read, about 500 times a second: how far each tone hole is covered, the breath pressure, and how the instrument is held. WhistleSim then simulates the instrument: the breath through the windway, the air jet swinging across the edge, the sound travelling up and down the bore, and each hole as open, covered or anywhere in between. So the things that make a whistle a whistle work as they do on a real one.

Half-holing and slides

Partly covered holes bend the pitch smoothly. Lift a finger slowly and the note glides.

Overblowing

Blow harder for the second octave and harder again for the third, with the breaks where the bore puts them.

Breath shapes the tone

Soft notes are rounder and hard ones brighter, with breath noise and a little chiff on tongued attacks.

Your own instruments

Whistles and recorders in several styles come built in. Change the bore, the holes, the windway and the jet, and save your designs as files to share.

Tuning workshop

The app places the holes so the notes play in tune at your breath, in equal temperament, meantone, just intonation or a tuning chosen for your keys. A needle tuner is built in.

Rooms

Play in a small wooden room, a studio, a concert hall or a stone church, or load your own impulse response.

How it works

Diagram of WhistleSim's signal path: WARBL's sensor readings go into a model of the breath, the jet, the window, the bore and the tone holes, and out as sound.
From WARBL's sensors to sound. Click to open it full size. The README describes the model in detail.

Who made it

WhistleSim was created by Petrus Hyvönen, using the AI assistants Claude (by Anthropic) and Codex (by OpenAI).

Open source

WhistleSim is free software under the GPL v3. The source, the release notes and the bug tracker are on GitHub.