Sorry, I was not clear.
I was not searching another algorithm to read encoders, I've tried them all.
I was looking for hint to port Luni's library specifically, from Teensy-only to other boards.
Yes, it's for the (only) USB Host port of the Teensy 3.6.
Sure, it's the standard USB Host T3.6 library which comes with Teensyduino:
https://github.com/PaulStoffregen/USBHost_t36
By the way.
I'm using the great EncoderTool library by luni:
https://github.com/luni64/EncoderTool
It's absolutely, by far, the best I've ever tried. Much better than Paul's library, which is something.
Problem...
If you declare a global variable like
USBHost gUSBHostPort; // g prefix for "global"
USBHub gUSBHostHub(gUSBHostPort);
MIDIDevice gInputMIDIUSBDevice(gUSBHostPort);
then in main loop you can simply do
...
Large soundfonts/samples are not exactly easy to manage with a microcontroller, even as powerful as the Teensy.
The 4.1 has a very fast integrate microSD slot and quite some RAM for buffering; moreover, it can mount...
Yes, sorry, I have the bad habit of using the term in a generic way, for both multiplexing and demultiplexing.
If you demultiplex each DAC to say 16 channels (example: CD74HC4067, quite cheap), with a single T3.5/3.6...