Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Flora — Spectral Growth

Flora grows spectral biomass across a frequency extent. Growth consumes a slowly renewing band resource, and a patch needs a minimum density to sustain itself. New growth appears where the heard sound is harmonic and the resource is fresh. Silence is a legitimate state. These dynamics are authored composing rules, not claims about auditory cognition or a guarantee of continuing succession.

Population and Flora couple only through sound: habitat audio feeds the Landscape, and Flora reads its base field level before habituation and its harmonicity. Resource depletion and recovery already supply Flora’s band fatigue; Voices and the listener still read the habituated terrain. There is no direct exchange of their state. By default, each Flora removes its own actual habitat PCM before evaluating the base consonance and harmonicity used for growth and seed rain, as well as external resource power. Other Flora remain audible. Within-band competition still comes from the resource consumption kernel acting on latent biomass. send(presentation_bus) keeps its audio out of the habitat, so that Flora reads mixed C/H directly without an H/R observer. send(habitat_bus) affects the habitat without direct presentation. The shared beat meter still hears all habitat audio.

Set flora().leave_self_out(false) before placement to use mixed C/H including its own sound, without an H/R observer. External resource power still excludes its own PCM. Voice defaults to false, while Flora defaults to true because one Flora has many partials whose own harmonic lattice can sustain its growth and seed positions. In the undergrowth-v2 observation, that lattice persisted without a ground drone; choose false to allow this self-support, without a guarantee that the pitch stays fixed. Presentation-only Flora uses mixed C/H with either setting.

Resource consumption includes latent biomass, even when it does not sound, and the power of other habitat audio. The fixed power reference is the mean square of a sine with amplitude 0.03 (0.03²/2 = 0.00045); changing the Flora’s amplitude does not change that reference. Missing observations do not count as silence: resources retain their initial state before the first valid observation, and later gaps retain the last observed external consumption. Growth observations start from the mixed pre-birth history. Analysis invalidation ends the runtime, following its existing mixed-analysis rule; own-excluded C/H never falls back to mixed C/H. A geometry change discards old growth/seed scans until new observations are available. Reports show the growth and seed values actually consumed.

flora() builds a reusable FloraSpec. place(spec, placement) returns a Flora that can receive amplitude and pace updates. A Population’s Voices and Flora can share the same habitat, as in this example:

let sun = place(harmonic().brain("drone").sustain().amp(0.04), at(110));
let moss = flora().amp(0.03).fade(0.5)
    .tone("sine").residual(false).send(habitat_bus | presentation_bus);
let m = place(moss, consonance(110).range(1, 16));
wait(2);
m.amp(0.015);
release(m);
wait(1);
release(sun);

consonance(lo, hi) seeds from the base consonance density mass before habituation inside the extent, with a uniform fallback when that mass is zero. This placement value is mixed: no own sound exists yet. random(lo, hi) seeds uniformly. Both require density sampling, count 1, zero tension and the target’s default spacing (1 ERB for consonance, 0 for random). Explicit default modifiers are accepted by value. Other placement targets, at, line, .peak() and non-default modifiers raise script errors. Bounds must lie within 1–20000 Hz and span at least 1/96 octave, one bin of the initial Log2Space. Later space changes can make a Flora dormant until its extent contains bins again.

MethodAccepted valuesDefaultLive update
pacefinite, at least 1/641Yes
amp0–10.03Yes
fade0–60 seconds2Before placement
tone"sine", "resonant""sine"Before placement
residualBoolean; diffuse mass as band noisefalseBefore placement
leave_self_outBoolean; exclude own sound from growth and seed C/HtrueBefore placement
sendBus or BusSetBoth busesBefore placement

residual(true) enables the optional band-noise layer before placement.

amp is the nominal target-amplitude scale: a ceiling, not a guaranteed level. Fades, slews and retiring tones can affect the transient output.

amp and fade must be finite before and after conversion to f32. Invalid values raise errors during script evaluation. pace has no cost-based upper bound. Values below 1/64, NaN and negative infinity warn and use 1/64; positive infinity and positive f32 overflow warn and use f32::MAX, reaching internal saturation. The lower bound preserves finite retirement at 0.5 Hz (48 kHz / hop 512).

Live methods collect a pending patch. The next wait, flush or scope end emits it as UpdateFlora. release(m) marks release pending; the patch precedes ReleaseFlora in the same event, using the spec’s fade. Further updates and repeated releases on that handle warn and are ignored. Scoped verbs release the Flora they create, with nested Flora released at the inner scope’s end. Explicit release fades extend the scripted duration when needed. Flora still live at script end fades after Finish.

The Flora API is Experimental. Its dynamics are authored composition rules; this API tier is separate from claims about auditory cognition.

Beat opportunities

Every Flora uses beat opportunities: with fresh confirmed evidence, new tonal lanes and ordinary replacements wait for the Flora’s next local clock crossing. Biomass and resources continue to evolve every hop. Supported tonal and residual amplitude targets, including their shared normalization, follow current biomass every hop through the existing slew. A crossing alone does not refresh unchanged carriers. There is no timing opt-out; flora().metric() has been removed.

Like Population metric(), Flora uses a private CouplingClock with confidence-weighted rate and phase attraction (coupling 0.95), an independent initial phase, and the scene’s tempo-basin center as its starting rate (2 Hz without a basin). Its shared meter reads only habitat audio: flux and the selected acoustic recurrence path, with the same enculturation priors. Internal Voice onset commands and Flora lane commands never enter this meter. The meter runs from scene start, before Flora is placed, and includes Flora’s actual habitat sound. That sound may confirm and sustain a beat. This is separate from the production meter used by Population timing.

A waiting tone owns only the current excess in its last tonal window. That mass is removed once from the residual. Empty windows, out-of-range tones, separation conflicts and release start retirement immediately. New assignments occur at the sample crossing within the hop; births retain their amplitude slew while retiring tones use the metabolic tail described below. Thus neither all endings nor detected acoustic onsets are quantized to the beat.

When ecological renewal is faster than a private beat (k > 20) and the meter confirms a subdivision (positive confidence and ratio 2, 3 or 4), crossings of private phase times that ratio also become opportunities. Otherwise allocation uses beat crossings only. Layer changes retain phase. Span/gap transitions still use beat crossings.

Before beat confirmation, or while the observation is unknown or stale, allocation runs continuously each hop, including amplitude targets and normalization. Pending candidates are discarded and current biomass is reconsidered; the private clock is not reset and stored candidates are not replayed as a burst.

Pace and release

All Flora uses temporal_basin(lo, hi) as the composer’s tempo prior, starting at its center frequency (2 Hz without a basin). Every Flora follows fresh, confirmed beats with confidence-weighted coupling 0.95 and otherwise returns to the center. flora().pace(k) sets an authored multiplier relative to that beat; a placed handle also accepts m.pace(k). The default is 1. Until saturation, for frequency f, ecological time advances by k*f/2: growth is 4kf/s, resource recovery is 20/(kf) seconds and consumption is 0.6/(kf) seconds. Diffusion and seed rain scale together. Phase correction only changes metric opportunities. This authored rule does not model phrase duration.

All lanes retire with a finite metabolic amplitude tail. The existing macro fade bounds release; fade(0) ends immediately. The fixed lane pool can postpone births while tails occupy slots. The independent rate and renewal methods have been removed. pace(k) scales their shared time and divides the retirement tail duration by k at fixed f until saturation. Birth slew and macro fade retain physical seconds; pace retains the private beat clock while selecting the action layer described above.

Sample 17 uses temporal_basin(2, 4): its 3 Hz prior is 1.5 times neutral 2 Hz. The sustained scene has no explicit beat carrier; any confirmed acoustic beat can still change Flora’s pace. The basin is a compositional choice, not a new default or a measured optimum.

pace(k) determines how far ecology advances between action opportunities. Its speed saturates at one 10-second resource renewal per nominal opportunity: dt_eco = (f / (2 Hz)) * min{k, 20*r} * dt_hop, where r is 1 for beats or continuous fallback, and the confirmed subdivision ratio otherwise. Saturation starts at k=20 for beats, or 40, 60 or 80 for ratios 2, 3 or 4. Further increases advance no additional ecology. Retirement shares this speed. Phase correction moves opportunities without changing this nominal rate law. The substep rule is unchanged; the previous per-hop saturation and its cost estimate are superseded. No new real-time measurement is claimed. As with Voice self-exclusion, real-time cost depends on the entire scene and is the composer’s responsibility.

When a Flora is the loudest sustained layer, its audible spectrum largely sets the harmonic context a listener hears. At pace k and beat f, the ecology renews roughly every 10 s / (k * f / 2 Hz) of real time: about 0.6 s at k = 16 and 2 Hz. If that is shorter than the listener’s short-term pitch context (the global memory of the periodicity model behind follow_tonal_context has a 1.5 s half-life), the context is replaced faster than it can be held, and other parts heard against it lose a stable reference. In one study scene, pace 16 left an 8-second context correlation of 0.44 in the mixed sound, while pace 1 reached 0.78 (0.89 without the Flora layer). This describes what the quantity does; it is not a bound on pace.

Partial motion

flora().pitch_apply_mode("glide") keeps the default peak following. "rearticulate" holds each tonal lane’s birth frequency through its retirement tail. When the peak leaves the 50-cent claim radius, the old lane retires and a replacement can grow at the peak, subject to existing beat opportunities, birth slew and free lane capacity. The Flora handle also accepts live changes: sounding lanes survive, and the next allocation uses the new rule. Switching from glide holds the current pitch. Residual noise keeps its existing centroid motion. Unsupported names, including Voice’s "gate_snap", warn and retain the mode (initial default: glide).

Spans and gaps

flora().rest_on_habituation(0.25) lets a Flora stop and return in response to heard attack history. This initial-only weight defaults to 0; any finite nonnegative f32 value is accepted. Negative or nonfinite values, including f32 overflow, warn and use 0. Zero creates no private span state or random stream.

The shared habitat observer runs from scene start when any Voice or Flora needs it. A Flora’s exit rate reads habituation at its sounding tonal carrier frequencies, weighted by target power. Without sounding tonal targets, exit stops. Once the integrated rate reaches its private random target, a private beat crossing retires all tonal and residual lanes. Biomass, resource recovery, consumption and seeding continue during the gap, while new lanes are suppressed.

After every tail ends, a separate return rate uses private recovery driven only by actual lane births. The next eligible private crossing permits ordinary births from current biomass; it does not force them. Unknown acoustic observations freeze both integrals. The private clock still supplies fallback crossings when no beat is confirmed. Release and fade take priority. Reports use span_gap and flora_id; the reported heard value is the weighted mean, and reported frequencies summarize the tonal carriers. This author rule does not assert perceived phrases or endings.

Responding to heard onsets

flora().respond_to_onsets(w) lets a Flora’s ecology run faster after it hears new onsets from outside itself. This initial-only weight defaults to 0; any finite nonnegative f32 value is accepted. Negative or nonfinite values, including f32 overflow, warn and use 0. Zero creates no state and reads nothing.

The attack history runs from scene start. With sites, a self-excluding Flora responds to external attacks at its placement. A Flora that includes itself reads the full local mix. Rest always reads the full mix. Without sites the two controls read the shared habitat history. Inside the Flora’s extent it skips bins within 1.5 ERB of its own sounding lanes, retiring tails included, and reads how much the history rose since the previous observation. The history rises only when an onset reaches a band that is not yet habituated, so familiar attacks add less. With τ = satiation_sec / ln 10 (about 2.17 s by default), a rise ρ owes w·τ·ρ extra seconds of ecological time, spent at most w seconds per second. An unhabituated external onset therefore runs the clock up to 1+w times faster. The pace saturation still applies: once k·(1+w) reaches 20·r, a larger weight adds nothing.

Growth, spread, seeding, resource recovery, consumption and retirement share the faster time. Births and replacements still happen only at the Flora’s own beat crossings, and the field still decides where they grow. The word adds no onset, pitch, opportunity or random draw. Unknown observations and grid changes contribute nothing; the next known observation only re-primes the comparison, while time already owed is still spent. With [psychoacoustics.habituation] enabled = false the history stays flat and the run warns once. Reports add respond (weight, cumulative rise and extra seconds, pending seconds and listened bin count) only for positive weights. This author rule does not claim that a listener hears the response.