Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,14 @@ The default is 4. `FixedInterval` and `SmartInterval` use the first `voices`
voices. The other voices release with the usual gain envelope. The chord
and MIDI sources ignore this field.

`resynthesis.harmony_gain` scales the four harmony voices in mono and in
stereo. It does not scale the lead voice.
`resynthesis.lead_gain` (`0..=1`, default `1`) scales the lead voice in mono
and in stereo. `resynthesis.harmony_gain` (`0..=1`, default `0.5`) scales the
four harmony voices in mono and in stereo. It does not scale the lead voice. On
`resynthesis.harmony`, `voice_gains` (`0..=1`), `voice_pans` (`-1..=1`) and
`voice_mutes` control each of the four harmony voices. If
`resynthesis.formant.enabled` is `true`, `voice_formant_stretch` and
`voice_formant_width` (`0.5..=2`, default `1`) set separate vocal-tract length
and width models for the four harmony voices.

## Process audio

Expand Down Expand Up @@ -451,10 +457,11 @@ and show enums as string literals. To change the configuration, do these steps:
3. Call `setConfig()`.

If a required field is absent or a value is not valid, the call throws a
JavaScript `Error`. The optional `resynthesis.harmony.voices` field defaults
to 4 if it is absent. The conversion ignores extra object properties. The
generated declarations contain the parameter documentation from the Rust
types.
JavaScript `Error`. Optional fields (`resynthesis.leadGain`, and `voices`,
`voiceGains`, `voicePans`, `voiceMutes`, `voiceFormantStretch` and
`voiceFormantWidth` on `resynthesis.harmony`) use their defaults if they are
absent. The conversion ignores extra object properties. The generated
declarations contain the parameter documentation from the Rust types.

`resynthesis.randomSeed` and the `processedFrames` field of feedback and
telemetry use `bigint`. Frame offsets, block lengths and latency use
Expand Down
Loading