Callers pass the sample rate they render at (timeline, speech-loss emit, wasm compile, WordRender); AquaLower stays 48000
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
af0e44f9b6
commit
eceaae29c2
7 changed files with 22 additions and 9 deletions
|
|
@ -45,7 +45,7 @@ using var compiler = new AquaSynthPatchCompiler(new AquaSynthNativeOptions(Sampl
|
|||
// itself and no slider is driven from outside.
|
||||
var parsed = PatchScript.Parse(script);
|
||||
if (noBurst) parsed = parsed with { ControlSplines = parsed.ControlSplines.Where(s => !s.SurfacePath.EndsWith("/release_flow", StringComparison.Ordinal)).ToArray() };
|
||||
var source = FaustEmitter.Emit(parsed, new FaustExportOptions(label)).Source;
|
||||
var source = FaustEmitter.Emit(parsed, new FaustExportOptions(label, SampleRate: Rate)).Source;
|
||||
File.WriteAllText(Path.Combine(outDir, "source.dsp"), source);
|
||||
if (!compiler.TryCompileSource(new AquaSynthCompileIdentity(label, label, ""), source, seconds, out var patch0, out var cerr))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue