Stereo Faust implementation #1003
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
I don't really know what you mean with dual mono. You can review the FaustStream class which implements the conversion between these 2 concepts. |
Beta Was this translation helpful? Give feedback.
-
Just added a test case and it works perfectly: https://github.com/pschatzmann/arduino-audio-tools/tree/main/examples/examples-faust/streams-faust_stereo_copy I think you are doing something wrong: did you check in your generated source that the input and output is 2 ? |
Beta Was this translation helpful? Give feedback.
-
I could think of the following:
|
Beta Was this translation helpful? Give feedback.
-
Maybe a good test case would be to feed it a sine signal and to print the result values in the compute() of the pitch shift. If the output is not a sine then the issue is in the Faust Code |
Beta Was this translation helpful? Give feedback.
-
There was indeed something wrong with the stereo logic: I was passing the number of samples to the count parameter of the compute method, but it seems that the number of frames is expected. In mono, these values are the same... |
Beta Was this translation helpful? Give feedback.
I don't really know what you mean with dual mono.
In Faust Stereo is represented as 2 dimensional array whereas the AudioTools expects interleaving left, right values.
You can review the FaustStream class which implements the conversion between these 2 concepts.