-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polyphony for the Daisy Seed #1090
Comments
I got it to compile with some changes struct FAUST_API UI : public UIReal<FAUSTFLOAT> {
UI() {}
virtual ~UI() {}
// add both below
virtual bool isSoundUI() const { return false; }
virtual bool isMidiInterface() const { return false; } class FAUST_API GenericUI : public UI
{
public:
GenericUI() {}
virtual ~GenericUI() {}
// add this:
virtual bool isSoundUI() const override { return true; }
} Inside virtual bool isMidiInterface() const override { return true; } Inside if (!fGroupControl || dynamic_cast<SoundUIInterface*>(ui_interface)) { to if (!fGroupControl || ui_interface->isSoundUI()) { Inside if (dynamic_cast<midi_interface*>(ui_interface)) {
fMidiHandler = dynamic_cast<midi_interface*>(ui_interface); to if (ui_interface->isMidiInterface()) {
fMidiHandler = reinterpret_cast<midi_interface*>(ui_interface); |
OK, but I don't want to change the UI interface in general. So an acceptable solution would be to use conditional compassion line |
trying to address grame-cncm#1090
Hi David Braun, Currently, I don't get any sound out of my daisy seed board. |
Thanks for those fixes! Maybe it's silent because the device is expecting MIDI from one of the 3.5 mm input, using https://electro-smith.com/products/trs-3-5mm-midi-adapter not micro-USB? |
Hi David, I checked that by generating the following faust dsp with
So using Then I updated libDaisy to be sure that this is not the issue. Doing that I got stuck with an annoying little bug we created (see PR #1107). After fixing this I added
to the makefile. Then I've used the st-link v2 debugger to check the code execution. Call Stack: It stops at the following breakpoint in the Hardfault Handler: So for today I'm out -_- |
Polyphony for the Daisy Seed
Compiling faust generated cpp using
faust2daisy
with -nvoices > 1 fails because of dynamic_casts in poly-dsp.hRemoving the -fno-rtti Option in libDaisy shouldn't be considered:
electro-smith/libDaisy#503
Steps for reproduction
Versions Used:
Daisy Toolchain Setup on Linux:
Create a folder, e.g.
$ mkdir ~/daisy
Get arm-none-eabi:
Get libDaisy:
Create
environment.rc
file with the following content:Compile libDaisy:
** Compilation: **
The text was updated successfully, but these errors were encountered: