grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.53k stars 319 forks source link

Daisy architecture file missing sample rate #682

Open madskjeldgaard opened 2 years ago

madskjeldgaard commented 2 years ago

Hello

It seems (from a glance) that the daisy architecture file only sets the sample rate of faust DSP and not accordingly in the hardware.

https://github.com/grame-cncm/faust/blob/master-dev/architecture/daisy/ex_faust.cpp#L126

In Daisy I think this is done kind of like this, using the SampleRate enum:

patch.SetAudioSampleRate(SaiHandle::Config::SampleRate::SAI_96KHZ);
sletz commented 2 years ago

Correct,-sr is an option of the faust2daisy script (see https://github.com/grame-cncm/faust/tree/master-dev/architecture/daisy) but I don't remember exactly why ((-;