Callers of FaustEmitter that render at a known rate pass it: the ladder's cell length follows the sample rate
The vocal ladder has one cell per sample, so exporting at the 48 kHz default and rendering at 44.1 kHz (daemon, IPA trial, song worker, graph renderer) shifted every formant down 8%. Speech-loss surface and AquaLower still take the default; the wasm compile path has no rate. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
840d95a092
commit
ec73200093
4 changed files with 10 additions and 9 deletions
|
|
@ -21,7 +21,7 @@ if (FaustCompiler.FindFaust() is null)
|
|||
}
|
||||
|
||||
var script = Script(request);
|
||||
var export = FaustEmitter.EmitScript(script, new FaustExportOptions("aqua_tract_graph_audition"));
|
||||
var export = FaustEmitter.EmitScript(script, new FaustExportOptions("aqua_tract_graph_audition", SampleRate: request.SampleRate));
|
||||
var render = await FaustCompiler.RenderAsync(
|
||||
export.Source,
|
||||
new FaustRenderOptions(request.SampleRate, request.DurationSeconds));
|
||||
|
|
|
|||
Loading…
Reference in a new issue