I think it’s a better idea to use Arduino or Pi type boards to power displays. Axoloti’s precious resources need to be reserved for the critical task of processing audio. Fortunately, getting Axoloti and Arduino to talk together is very easy. Several methods are suggested in this forum. You can utilize I2C, SPI, UART and MIDI.
For me the easiest way is USB MIDI. All you need to do is connect the USB host plug on Axoloti to an Arduino usb plug. Axoloti sees Arduino as a MIDI device and it can power it too. You need a USB midi library on Arduino of course. On Axoloti you can create MIDI Sysex messages that can hold the “wave form representation”
The more challenging part would be preparing and sending that representation. I haven’t done this myself but I’d start with a K-rate envelop follower object and try to reduce its sample rate to around every 10 K-rate pulses (300Hz or less). Then I would save the results in a numerical array. i might use singed integers to be able to represent the bipolar nature of wave forms. after that I would need to find a way to parse and encapsulate this information in a stream of Sysex messages and transmit those to the other MCU. I’d probably to this conversion in chunks (every seconds of audio for example) and then transmit each chunk and free up it’s memory before converting next chunk. I’d do this because I don’t want to overflow Axoloti’s Ram with huge arrays. Additionally, I could save these “waveform representations” along side my actual wave files on Axoloti’s SD card so this conversion process is only performed once when the wave file is loaded for the first time.
An Arduino needs to be powerful enough to be able to interpret and draw this data on a display. Maybe Pi or Arm based board would be a better choice here.That would be a very interesting project! Let us know if you come up with something.