Ive written an external which interfaces with an Eigenharp over USB, its working fine but I want to improve it by getting more frequent updates.
The basic interface is simply, basic in Max I send a bang to the external, and then the external pushes out list of events which occurred in that time.
Currently, I use a metro to do this.
This is not ideal, since not only is this only every 1ms, but also being on the normal max thread means timing is not guaranteed.
What Id like to do, is to get Max to poll the external on the audio thread, so that I can get the updates at sample rate.
Any tips on how I can achieve this in the external and/or in Max itself.
Ive look at the external sdk docs, and section on threading but I cannot really see anything appropriate.
Id really like some hints as what to look at, or even some sample code :)
note: the process of getting the updates is not costly in cpu (the actually usb comms is on a different thread), so it will not have a detrimental effect on audio, and for me 'responsiveness' of the device is very high priority.
Thanks in advance for any pointers