1. Scientific & Musicological Overview
Jazz is an evolving musical discipline anchored in the tension between deterministic harmonic
scaffolding and real-time stochastic improvisation. Unlike Western classical compositions characterized
by rigid score reproduction, jazz improvisation functions as an open-loop, non-stationary Markovian
decision process where the performer constantly navigates modal scales, voice-leading constraints, and
microtonal articulations. The Enhanced Jazz Music Generator provides an interactive,
computational laboratory for modeling these generative principles using direct Web Audio digital signal
processing (DSP) and time-series spectral trajectory graphing.
At the core of jazz composition is the functional progression, traditionally instantiated in forms such
as the twelve-bar blues ($I_7 \to IV_7 \to I_7 \to V_7$) and the ubiquitous $ii - V - I$ turnaround.
Each harmonic chord defines an instantaneous pitch collection, or scale, through which soloists navigate.
In this generator, three canonical tonal spaces are modeled:
-
Blues Scale ($1 - \flat 3 - 4 - \flat 5 - 5 - \flat 7$): Characterized by the
auditory presence of the "blue note" ($\flat 5$), creating an acoustic dissonance resolved through
expressive tension against fundamental root overtones.
-
Major Bebop Scale ($1 - 2 - 3 - 4 - 5 - \sharp 5 / \flat 6 - 6 - 7$): An
eight-note symmetrical system developed by Charlie Parker and Dizzy Gillespie that aligns chord tones
with metric downbeats during continuous eighth-note runs.
-
Dorian Modal Minor ($1 - 2 - \flat 3 - 4 - 5 - 6 - \flat 7$): A symmetrical minor
mode celebrated in modal jazz (e.g., Miles Davis's So What) that balances melancholic minor
thirds with bright, uplifted natural sixths.
3. Mathematical Foundations & DSP Synthesis Architecture
To avoid external network latency and CDN asset failures, the engine generates all musical waveforms
using pure, real-time procedural Web Audio synthesis. Pitch calculation converts discrete MIDI note
values $m \in [0, 127]$ into fundamental frequencies $f \in \mathbb{R}^+$ using the equal temperament
standard ($A_4 = 440\text{ Hz}$):
$$f(m) = 440 \times 2^{\frac{m - 69}{12}} \text{ Hz}$$
The procedural ensemble utilizes specialized acoustic modeling pipelines tailored to each instrument's
physical resonance:
A. Plucked Acoustic Upright Bass
Walking bass lines demand prominent fundamental sub-octave power coupled with a fast tactile pluck
transient. The bass synthesizer combines a pure sinusoidal fundamental with a frequency-doubled triangle
wave, driven through a two-pole resonant low-pass filter:
$$H_{\text{bass}}(s) = \frac{\omega_0^2}{s^2 + \frac{\omega_0}{Q}s + \omega_0^2}, \quad \omega_0 = 2\pi
\cdot 220\text{ rad/s}, \quad Q = 2.4$$
An exponential decay envelope ($V(t) = V_0 e^{-t/\tau_{\text{bass}}}$) modulates filter cutoff,
simulating the rapid dissipation of high-frequency string vibrations against the ebony fingerboard.
B. Polyphonic Electric Rhodes Comping
Jazz comping chords are formed as simultaneous dyads, triads, and sevenths ($3^{\text{rd}}$,
$7^{\text{th}}$, $9^{\text{th}}$ shell voicings). Tones are synthesized via frequency modulation (FM)
principles, pairing carrier oscillators with low-index modulators and subtle chorus detuning ($\pm 3.5$
cents) to evoke the warm electro-mechanical tines of a vintage Rhodes Mark I electric piano.
C. Wire Brush & Percussion Synthesis
Jazz drumming relies extensively on textured wire brush sweeps. The percussion synthesizer generates
white and pink pseudo-random thermal noise buffers ($N(t) \sim \mathcal{U}(-1, 1)$), routing them
through an adjustable bandpass filter centered at $4.5\text{ kHz}$ with high $Q$. Ride cymbals blend
inharmonic metallic square wave ring modulators with shimmering decaying noise tails.
D. Visualizer Time-Series Spectral Mapping
The high-performance `
$$x_k = k \cdot \frac{\text{width}}{W}, \quad y_k = \text{height} \times \left(1 - \frac{f_k - f_{\min}}{f_{\max} - f_{\min}}\right)$$
Using a native `ResizeObserver` coupled with device pixel ratio ($\text{DPR}$) buffer synchronization,
trajectories are rendered at a smooth $60\text{ fps}$ without blurring or aspect ratio distortion.
Open Access License: This interactive educational module is released under
CC BY-NC 4.0 (Attribution-NonCommercial)
for non-commercial research, academic study, and clinical education.
Commercial & Enterprise Licensing: For white-labeling, proprietary LMS/course
embedding, hardware dashboard telemetry integration, or custom feature engineering, secure a commercial
license at
BioniCloud.com or contact
Dr. Yuri Beno.