Euclid Sonifier

Abstract

The Rhythmic Euclid Sonifier is an experimental interactive web application designed for the exploratory auditory display of mathematical and geometric principles. It is inspired by Oliver Byrne’s work from 1847 and explores abstract mathematical concepts and intuitive sensory perception by translating geometric parameters into a configurable soundscape. The system integrates a parametric geometric visualizer, a real-time synthesis engine, a procedural rhythm generator, and a novel “AI Distiller” component. This feature, utilizing the Google Gemini API, is an experiment how AI can creatively interpret geometric concepts and generate complete, complex sonification patches (settings for the app), offering users a medium for both artistic creation and educational discovery.


1. Introduction

Sonification, the use of non-speech audio to convey information or perceptualize data, offers a powerful alternative to traditional visual display. This project applies this paradigm to the field of mathematics, a domain rich with abstract relationships and dynamic systems that are often challenging to grasp through static diagrams alone.

The primary objective of the Rhythmic Euclid Sonifier is to create an interactive environment where users can “hear” the relationships within fundamental geometric constructions. By manipulating the parameters of a theorem and receiving immediate, corresponding auditory feedback, users can develop a more intuitive and embodied understanding of the underlying mathematical principles. The application is designed not only as an educational tool but also as a generative musical instrument, enabling the creation of complex soundscapes and rhythms that are procedurally derived from geometric logic.

2. Core Components

The application is comprised of four primary, deeply integrated modules.

2.1 Geometric Engine

The core of the application is a library of interactive mathematical presets. These are not static visualizations but dynamic models whose parameters can be manipulated by the user in real-time. The library includes:

Each preset exposes key geometric values (e.g., side lengths, areas, angles, curve radii) as data sources for the sonification engine.

2.2 Sonification Engine

This is a real-time audio synthesis module built on the Web Audio API. It maps the data streams from the Geometric Engine to sonic parameters. Key features include:

2.3 Rhythmic Module

The application includes a Euclidean rhythm generator, which can be procedurally controlled by the geometric data. This creates a powerful link between static geometric properties and temporal, rhythmic structures.

2.4 AI Distiller (Powered by Google Gemini)

The AI Distiller is a novel feature that leverages a large language model to function as a creative partner. Instead of manually configuring the many parameters of the synthesis and rhythm engines, the user can provide a high-level creative prompt.

3. Use Cases & Examples

3.1 Educational Exploration: The Pythagorean Theorem (Euclid I.47)

A student can explore the relationship a² + b² = c². They might assign a low, stable sine wave to side a and a slightly higher one to side b. The hypotenuse, c, could be mapped to a brighter sawtooth wave whose pitch is controlled by its length. As the student manipulates the sliders for a and b, they hear the pitch of c change in direct, audible relation, aurally reinforcing the theorem’s concept of dependence.

3.2 Generative Music: The Fibonacci Spiral & AI

A musician, inspired by the concept of the Fibonacci spiral, selects the preset and asks the AI Distiller to generate a “melodic and ambient” patch. The AI might respond with a configuration where:

The musician can then use this generated patch as a starting point, modifying it to their taste or performing with it by manipulating the spiral’s count and size parameters.

4. Conclusion

The Rhythmic Euclid Sonifier project demonstrates a novel methodology for the interactive exploration of mathematics. By combining a robust geometric engine with advanced sonification techniques and a powerful generative AI, it provides a unique platform for education, artistic expression, and research into human-computer interaction. It allows users to move beyond passive observation of mathematical principles and engage with them in an active, intuitive, and creative auditory experience.


Technical Stack: React, TypeScript, Web Audio API, Tailwind CSS, Google Gemini API.

© 2025 Daniel Sandner. Released under the MIT License.