SpectraScore Orchestration Matcher — User Guide

Analyze the measured spectrum of a selected Sound and derive a playable orchestration: choose an instrument combination, assign pitches from real spectral components, preserve microtonal detail, and export the result as MusicXML and a Praat Table.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel License: MIT License Repo: Praat AudioTools
Contents:

What this does

SpectraScore Orchestration Matcher treats a recorded or synthesized Sound as an orchestration target. It measures the Sound's spectral shape, detects a reference root, extracts significant spectral peaks, compares the target against a compact instrument-profile database, and searches for a playable combination of up to four instruments.

The result is not simply a pitch transcription. SpectraScore asks two connected questions:

1. Which instrument combination best approximates the target's spectral envelope? 2. Which measured spectral components can those instruments play convincingly?
Core idea: orchestration is derived from the acoustical structure of the source. In Spectral voicing, assigned notes come from measured peaks in the actual Sound; they are not restricted to integer harmonics of a single fundamental.

Sound → orchestration

SELECT ONE SOUND ↓ MULTICHANNEL POWER-SPECTRUM ANALYSIS ↓ TARGET DESCRIPTORS centroid / spread / six energy bands spectral root / harmonic confidence ↓ GENERAL MEASURED SPECTRAL PEAKS prominence + adaptive consolidation ↓ INSTRUMENT-COMBINATION SEARCH timbral model + playability + register realism ↓ VOICING ASSIGNMENT unison / octaves / chord / measured peaks ↓ RESULTS Info report MusicXML Strings SpectraScore Results Table optional Picture-window visualization optional .musicxml file

Quick start

  1. Select exactly one Sound object in Praat.
  2. Run SpectraScore.praat.
  3. Leave the default instrument list unchanged to search the full built-in ensemble, or remove abbreviations to restrict the search.
  4. Set Max_combination_size. A value of 4 searches ensembles of one to four instruments in Automatic mode.
  5. Choose Automatic if SpectraScore should decide the ensemble size, or Exact max size if you specifically want that number of instruments.
  6. Choose the instrument spectral profile: pp, mf, or ff.
  7. For acoustically derived pitch assignment, use Spectral (match measured peaks).
  8. Leave Enable_microtones on when you want measured deviations retained in the notation.
  9. Run the analysis. The MusicXML Strings object is selected at the end so it can be passed directly to the AudioTools VST instrument workflow.
Useful starting point: for re-orchestrating a recorded chord, synthesized spectrum, resonant texture, or other complex source, use Spectral voicing with Automatic ensemble size and the mf profile.

Analysis engine

Multichannel spectrum

Every channel is analyzed independently and the channel power spectra are summed. Stereo or multichannel material is therefore not collapsed by waveform summation, avoiding phase cancellation between channels.

Target descriptors

The combined spectrum supplies the descriptors used for orchestration matching:

DescriptorRole
Spectral centroidGlobal brightness / spectral centre of gravity.
Spectral spreadWidth of the spectrum around the centroid.
Six-band energy profileNormalized energy in 50–200, 200–500, 500–1000, 1000–2000, 2000–5000, and 5000–10000 Hz.
Spectral rootA reference pitch found by harmonic summation with direct-frequency support and local refinement.
Root confidenceHow clearly the winning spectral root separates from other root candidates.
Odd/even harmonic balanceA weak, confidence-gated harmonic descriptor used only when the Sound is meaningfully explained by the detected root.
HNR / file levelReported for description and QC; they do not drive the orchestration score.
Root is a reference, not a restriction. In Spectral voicing, the detected root helps describe the Sound and annotate harmonic relationships, but it does not decide which spectral peaks are allowed to become notes.

General measured spectral peaks

Spectral voicing searches for significant local maxima across the measured spectrum rather than only examining H1, H2, H3, and so on. This allows polyphonic and inharmonic components to become orchestration pitches.

The detector combines:

Each selected peak is labelled P1, P2, and so on. If it lies near an integer harmonic of the spectral root, the Info report and Table also show an optional Hn relation.

Example: P1 128.8 Hz [H1] P2 195.8 Hz [non-harmonic] P3 293.4 Hz [non-harmonic] P4 310.9 Hz [non-harmonic] P5 465.8 Hz [non-harmonic]
Why this matters: a recorded chord does not have to behave like one harmonic series. Notes such as D, E-flat or B-flat can be retained as real spectral targets even when they are not integer multiples of the detected root.

Instrument model

The built-in ensemble contains twelve orchestral instruments. The Instruments field accepts the following abbreviations, separated by spaces or commas:

AbbreviationInstrumentNotation
BTbBass tubaConcert pitch
BnBassoonConcert pitch
CbContrabassWritten one octave above sounding pitch
ClBbB-flat clarinetTransposing instrument
FlFluteConcert pitch
HnHornTransposing instrument
ObOboeConcert pitch
TbnTromboneConcert pitch
TpCTrumpet in CConcert pitch
VaViolaConcert pitch
VcCelloConcert pitch
VnViolinConcert pitch

Two range concepts

Each instrument has an absolute playable range and a narrower preferred / idiomatic range. The absolute range is a hard gate: pitches outside it are rejected. Pitches outside the preferred range remain possible but receive a soft register penalty.

Spectral profile

For pp, mf, and ff, each instrument stores a centroid and spread. SpectraScore converts those values into a six-band Gaussian spectral-envelope model and compares the resulting ensemble profile with the measured target.

Important model limitation: these are compact modeled instrument profiles, not spectra measured from a specific sample library, performer, articulation, register, or room. The result should be read as an orchestration proposal based on spectral tendencies, not as a prediction of the exact spectrum produced by real players.

Voicing strategies

StrategyBehavior
UnisonEvery selected instrument attempts to play the detected spectral root. A root outside an instrument's absolute range makes that assignment unplayable.
OctavesPlaces instruments around octave-related versions of the root, with brighter instruments tending upward and darker instruments downward, then folds into playable range.
ChordBuilds a root / third-like ratio / fifth / octave structure according to ensemble size, with octave displacement when needed for range.
SpectralAssigns instruments directly to significant measured spectral peaks. Peak strength and idiomatic register both influence the assignment.
Spectral is the distinctive mode of the tool: the source spectrum itself becomes the pitch reservoir for the orchestration.

Controls

Main form

ControlDefaultFunction
InstrumentsAll 12 instrumentsSpace- or comma-separated abbreviations. Remove instruments to restrict the search.
Max_combination_size4Maximum searched ensemble size; accepted range is 1–4.
Ensemble_size_modeAutomaticChoose the best K automatically or force K to the maximum size.
Spectral_profile_dynamicmfSelects the pp / mf / ff centroid-and-spread profile used for each instrument.
Voicing_strategySpectralUnison, Octaves, Chord, or direct matching to measured spectral peaks.
Enable_microtonesOnRetains quantized cents deviations in MusicXML instead of snapping all notes to equal temperament.
Advanced_settingsOffOpens the second dialog for search, microtone, and peak-detection controls.
Save_xml_fileOffAlso writes a .musicxml file to disk. The in-memory Strings object is created regardless.
Draw_visualizationOnDraws the four-panel SpectraScore report in the Picture window.

Advanced settings

ControlDefaultFunction
Allow repeated instrumentsOffAllows repeated instrument entries when searching larger combinations.
Additional instrument penalty0.005Small complexity cost added for each instrument beyond the first.
Microtone precision cents12.5Grid used to quantize measured cents deviations when microtones are enabled.
Peak floor dB−30 dBRelative spectral level below which measured peak candidates are ignored.
Min peak separation cents35 centsMinimum high-frequency separation; low and mid frequencies use wider adaptive consolidation unless a clear valley supports separate peaks.
Minimum peak prominence dB3 dBMinimum local prominence required for a general spectral peak.
Max spectral peaks24Maximum number of measured peak candidates retained for Spectral assignment.

Outputs

OutputPurpose
Info reportTarget descriptors, measured peaks, best score for each ensemble size, winning instrument combination, and final voicing assignments.
musicxml_<source>_SpectraScorePraat Strings object containing one MusicXML source line per Strings item. It is left selected for direct use with the AudioTools VST instrument host.
<source>_SpectraScore_ResultsPersistent Table with one row per selected instrument and detailed pitch, score, range, peak, and target/match diagnostics.
<source>_SpectraScore.musicxmlOptional disk file when Save_xml_file is enabled.
Picture-window reportOptional visual explanation of the source spectrum, resulting chord, band-energy fit, and ensemble-size decision.

Results Table

The Table is designed for inspection, export, and connection to later AudioTools workflows. Important fields include:

MusicXML compatibility: the Strings object follows the AudioTools MusicXML contract — one XML line per String item — so it can be selected directly and rendered through VST_Effect_from_Praat.praat in instrument mode.

Visualization

When Draw_visualization is enabled, the Picture window presents the orchestration decision as a four-part report:

A · Target spectrum

Shows the measured target spectrum on a logarithmic frequency axis, the detected root's harmonic grid, the general measured peak candidates, and the exact frequencies assigned to the selected instruments.

B · Resulting chord

Shows the orchestration on a grand staff in concert pitch. The target root is displayed as a reference, and each instrument note is labelled with its measured frequency, notated frequency, cents value, voicing label, and written pitch where the instrument transposes.

C · Band energy: target vs model

Compares the measured six-band energy profile with the modeled orchestration profile. The target is shown against the contribution of the selected instruments.

D · Ensemble-size decision

Shows the best score found for each searched K. The acoustic component and explicit ensemble-size penalty are visible separately, making it possible to see why one, two, three, or four instruments won.

A summary strip reports the main error terms and reminds the user that the instrument spectra are modeled profiles rather than measured recordings.

Reading the results

ResultHow to interpret it
Selection scoreOverall search objective. Lower is better. Compare solutions from the same Sound and settings rather than treating it as an absolute perceptual quality scale.
Band-envelope distanceHow different the modeled six-band distribution is from the measured target.
Measured-peak coverageFraction of compressed spectral salience covered by the assigned distinct peaks. Higher is better.
Assignment costCombined cost of choosing strong target peaks while keeping instruments in comfortable registers. Lower is better.
Register penaltyZero inside the preferred range; rises as an assignment moves toward an instrument's technical extremes.
Duplicate fractionHow much the solution had to reuse the same measured peak for more than one instrument.
Root confidenceConfidence in the spectral reference root. A low value does not invalidate general spectral peaks; it mainly reduces the importance of root-dependent harmonic descriptors.
Do not read “best match” as “the only correct orchestration.” SpectraScore optimizes one explicitly defined acoustic model. The result is best used as a compositional proposal, comparison tool, or starting point for orchestration and audition.

Notes & limitations

Citation

Praat AudioTools: Cohen, S. (2026). Praat AudioTools: An Offline Analysis–Resynthesis Toolkit for Experimental Composition.