MIDI For Trees
Forest scenes become musical data
A real-time audio-visual system that picks out individual trees in a video feed using multi-scale computer vision, reads their movement through optical flow, and maps that movement to musical scales and MIDI events. Wind-swayed branches become melodies; a forest becomes an orchestra. Ships with a visual config editor for easily making changes to MIDI For Trees' settings.

See it working
How it works
Multi-scale tree detection
Finds individual trees whatever their distance or how densely they are packed, using multi-scale computer vision that adapts to different forest compositions and camera angles.
Optical flow movement analysis
Reads the movement of each detected tree using optical flow, capturing the direction, speed and character of wind-driven motion in real time.
Algorithmic composition
Maps movement to musical scales and MIDI events. The rhythm of the swaying trees drives the composition, so the music follows what the forest is actually doing.
Visual feedback overlays
Configurable overlays show the analysis as it runs: tree detection regions, movement vectors and musical mappings. You can see how the visual data becomes sound.
Technical specs: what it needs,
what it emits
- Input
- Live camera or video file
- Detection
- Multi-scale computer vision
- Analysis
- Optical flow
- Output
- MIDI events
- Camera support
- Webcam + Continuity Camera
- Processor
- Apple Silicon or recent Intel
- RAM
- 16GB minimum
- Platform
- macOS 14+
Where it earns its place
Generative music installations in forests, parks, and botanical gardens
Studio compositions using recorded forest footage as a MIDI source
Environmental art projects that give voice to trees and natural spaces
Meditative or therapeutic sound experiences driven by nature
Educational tools demonstrating the connection between visual movement and sound
Interested inMIDI For Trees?
We’d love to walk you through the system, answer questions, or discuss how it fits your workflow.
Get in Touch