How to implement a Standalone instrument? #55
Replies: 1 comment 7 replies
-
Hi, the file count can be reduced and most stuff is now placed in the library. I used the static memory allocation and c interfaces to get a better overview over the memory usage during compilation. If you take a look at https://github.com/marcel-licence/ml_epiano_example/blob/master/ml_epiano_example.ino you might find a reduced example. You could use this as a basis a removed additional features like MIDI_STREAM_PLAYER, MIDI_VIA_BLE etc. and compile it for only one platform. config.h keeps all global defines and z_config.z is used for the MIDI lookup table. I tried to reduce the allocations during runtime. Does this help? |
Beta Was this translation helpful? Give feedback.
-
Hi Mr Licence, how are you?
I want to make a simple instrument using a synth on ESP32. I have tried many other libraries but I can't achieve what I want. I understand it is a simple scenario, where I have a matrix of keys, let's say a piano, and for each key, I want to generate a sound and send it to my I2S DAC. But it had to be polyphonic.
I had a look at https://github.com/MichaelPNolan/StandAloneSynth37key/tree/main/esp32_alone_synth but I found it too complex, so many files. As a Java programmer I tend to use OOP as it makes more sense to me, so my idea of this standalone instrument would be something like this:
Is it possible? If not, what is the minimum I need to do to achieve this result with your library?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions