robertsonics / Tsunami-Arduino-Serial-Library

Arduino Serial Control Library for Arduino
11 stars 9 forks source link

Can trackControl be exposed? #1

Closed dkadrios closed 6 years ago

dkadrios commented 6 years ago

https://github.com/robertsonics/Tsunami-Arduino-Serial-Library/blob/48544e6aa8083950d8139240be5a52180029c19f/Tsunami.h#L119

I'd like to be able to control track routing from an Arduino. (e.g. play track N on a particular output). Am I correct in thinking that the CONTROL_TRACK message is the only way to do so? If so, is there any reason why the trackControl() method could not be made public?

robertsonics commented 6 years ago

Not sure I understand. trackControl() is just a private method to avoid duplication in many of the commands that control tracks. It doesn't give you any more capability than the public commands. In particular, trackPlaySolo() and trackPlayPoly() include both a track number and an output parameter.

dkadrios commented 6 years ago

My mistake, not sure how I missed that! Thanks, Robert.