eigensound|lab

title “Eigenvectors and Eigenvalues in Scientific Sonification: Complex Physical Systems as Musical Instruments.”

Author: Daniel Sandner


Analysis of the App Code (v0.3.0) for Paper-Worthy Insights - “as-is” working .html app

I’ve reviewed the v0.3.0 JavaScript. Here’s a breakdown of its methods and what they imply for your paper:

  1. EigenmodeResonator.calculateEigenfrequencies(geometry):
    • As-Is (Simplified): This is the core “hack” for real-time performance. It uses pre-computed, static formulas for the eigenfrequencies of different shapes (sphere, cube, etc.). It simulates the effect of geometry but doesn’t calculate it from a matrix.
    • Implication for Paper: This is your “Simplified Implementation.” You can present it as a computationally efficient method suitable for real-time web applications, while acknowledging it’s an approximation.
  2. EigenmodeResonator.process(...):
    • As-Is (Simplified): This function applies parameter changes (quantumEigenshift, eigenvalueSpreading) as direct multiplicative or additive modifiers to the pre-computed frequencies and amplitudes. It’s a heuristic model. For example, eigenvectorCoupling is modeled by simply bleeding a fraction of energy from adjacent modes.
    • Implication for Paper: This is your “Heuristic Model.” It demonstrates how physical concepts can be mapped to DSP parameters, even without a full matrix diagonalization.
  3. The Missing Piece (The “Exact” Implementation):
    • The code does not construct and diagonalize a Hamiltonian matrix (H). There is no math.eigs(H) call. This is the crucial point for your paper. The app simulates the results of such a process, but doesn’t perform it.

This analysis gives us the perfect structure: Present the core idea, describe the rigorous “exact” method, and then detail your app’s “simplified” real-time implementation as a practical and effective approximation.


Paper Outline: “Eigenvectors and Eigenvalues in Scientific Sonification: Complex Physical Systems as Musical Instruments”

Abstract

We present a methodology for the sonification of complex physical systems by treating them as configurable musical instruments. The core of this method lies in the real-time calculation and auditory rendering of a system’s eigenspectrum. We define the system’s governing principles via a parameterized Hamiltonian matrix, where eigenvalues correspond to resonant frequencies and eigenvectors determine modal amplitudes. We first detail the formal, computationally exact approach. We then present a practical, real-time implementation deployed in a web-based sound synthesis application, eigensound, which uses heuristic models to approximate these principles. By manipulating high-level physical parameters such as spacetime curvature and quantum uncertainty, a user can intuitively explore the system’s behavior, perceive emergent phenomena like degeneracy and phase transitions, and generate novel, evolving timbres for artistic expression. This work demonstrates the dual value of eigen-sonification as a tool for both scientific discovery and procedural art.

1. Introduction

  • 1.1. The Challenge of Complex Data: Briefly touch on the limitations of purely visual representations for high-dimensional, dynamic systems found in physics and other sciences.
  • 1.2. Sonification as a Tool for Exploration: Frame sonification not just as data-to-sound mapping, but as a method for creating “auditory scientific instruments” that allow for intuitive, real-time exploration of a model’s parameter space. (This is where you can link to your previous work).
  • 1.3. Core Proposal: The System as the Instrument: State the central thesis: any system described by a set of linear equations can be conceptualized as a resonator. Its natural “voice” is defined by its eigenmodes. By building a synthesizer around this principle, we can “play” the physics itself.
  • 1.4. Paper Structure: Outline the upcoming sections: the theoretical framework, the description of the eigensound application as a case study, a comparison of implementation strategies, and a discussion of the method’s scientific and artistic implications.

2. The Eigen-Sonification Framework: From Physics to Sound

  • 2.1. The Eigenvalue Problem as the Source of Sound:
    • Introduce the fundamental equation: Hψ = Eψ.
    • The Hamiltonian (H): Define H as the “master control matrix” of our instrument. It represents the system’s total energy and internal interactions.
    • Eigenvalues (E): State the primary mapping: Eigenvalues ↔ Frequencies. The set of eigenvalues {E_i} forms the fundamental frequency spectrum of the instrument.
    • Eigenvectors (ψ): State the secondary mapping: Eigenvectors ↔ Mode Amplitudes. The projection of the system’s current state onto each eigenvector ψ_i determines the intensity of that mode. This defines the instrument’s timbre.
  • 2.2. Parameterization: Controlling the Instrument:
    • Explain that the “knobs” on our instrument are the high-level physical parameters (e.g., uncertainty (ℏ), curvature (c)).
    • Show a clear, conceptual example of how a parameter modifies the H matrix.
      • Example: “A diagonal term H_ii might represent the base energy of a state. A parameter like quantumTunneling could introduce small off-diagonal terms H_ij, representing the probability of a transition between states i and j.”
      • Example: “The eigenvectorCoupling parameter directly scales these off-diagonal terms, musically translating to the ‘richness’ or ‘complexity’ of the timbre.”

3. Case Study: The eigensound Application

  • 3.1. System Overview: Introduce eigensound as a web-based synthesizer implementing the proposed framework. Mention the modeled physical domains: Quantum Mechanics (QM) and General Relativity (GR).
  • 3.2. A Simplified, Real-Time Implementation (The “As-Is”):
    • Approximating Eigenvalues: Explicitly state that for real-time performance, eigensound does not perform full matrix diagonalization. Instead, it uses a heuristic model.
    • Explain the calculateEigenfrequencies(geometry) function, showing it uses pre-defined mathematical series (e.g., spherical harmonics for a sphere) as a computationally cheap basis for the eigenvalues.
    • Heuristic Parameter Mapping: Detail how parameters are applied as direct DSP modifiers in the process() function.
      • Example: “Instead of modifying H and re-calculating E, the redshift parameter is implemented as a direct multiplicative scalar applied to the final frequency output, f_final = f_base * (1 - redshift).”
      • Example: “Similarly, eigenvectorCoupling is modeled not through matrix terms but via a frame-to-frame energy-sharing algorithm between adjacent modes.”
  • 3.3. Comparing Implementations: Create a table for clarity.
Feature Exact Method (Formal) Simplified Method (eigensound Impl.)
Eigenvalues Calculated via matrix diagonalization (eigs(H)). Looked up from pre-defined formulas (e.g., sqrt(l(l+1))).
Parameter Effect Modify terms in the H matrix, requiring re-calculation. Applied as direct arithmetic modifiers to frequency/amplitude.
Coupling Emerges from off-diagonal terms in H. Explicitly programmed energy sharing between modes.
Computation High (O(n³)), difficult for real-time. Very low (O(n)), ideal for real-time web audio.
Fidelity High; captures all emergent interactions. Medium; captures primary effects but misses subtle interdependencies.

4. Results: Scientific and Artistic Exploration

  • 4.1. Sonifying Physical Phenomena:
    • Hearing Degeneracy: Describe how setting two base eigenvalues to be nearly identical in the model results in strong audible beating in the output, providing an intuitive perception of a typically abstract concept. Include a spectrogram.
    • Exploring Parameter Space: Describe the sonic journey from a “stable quantum well” preset (low uncertainty, simple modes, harmonic sound) to a “black hole” preset (high curvature, mode-mixing, noisy, redshifted sound).
  • 4.2. The Instrument: Expressive Timbral Control:
    • Analyze the musical output. Discuss the rich, evolving drones and complex textures that emerge.
    • Frame the physics parameters as a novel control vocabulary for artists. Contrast controlling “Filter Cutoff” with controlling “Spacetime Curvature.” The latter affects the entire modal structure, not just one aspect of the sound.

5. Conclusion and Future Directions

  • 5.1. Summary of Contributions: Reiterate that you have presented a formal framework for eigen-sonification and demonstrated its viability through a simplified, real-time web application. The work validates the concept of “the system as the instrument.”
  • 5.2. Future Work:
    • Towards the Exact Model: Propose future work on implementing a more rigorous matrix diagonalization using WebAssembly (WASM) for performance or server-side processing for non-real-time sonification.
    • New “Instruments”: Suggest applying the framework to other domains: sonifying the eigenmodes of a protein molecule, a social network graph, or a financial market model.
    • Interfaces for Expression: Discuss the design of new musical interfaces (physical controllers, gestural inputs) to map human expression onto the abstract physical parameters of the model.