monome / teletype

monome eurorack module
GNU General Public License v2.0
204 stars 84 forks source link

The STATE command does not take into account the status of DEVICE.FLIP #286

Closed bingmachine closed 1 year ago

bingmachine commented 2 years ago

Please describe the bug.

The STATE command does not take into account the status of DEVICE.FLIP. For TR-commands the references are reversed. For STATE-command they are not.

Please include the hash displayed at startup and the release of the software (e.g. "Teletype v2.0.1 5f838c9")

Teletype 4.0.0 CBAEE74

What steps are required to reproduce the bug?

  1. Run DEVICE.FLIP to reverse all input and output references.
  2. Input 1 (originally 8) will now trigger script 1, as expected.
  3. Patch output 1 (originally 4) to input 1 (originally 8).
  4. Run TR.TOG 1 to activate output 1.
  5. STATE 1 will now return 0, but STATE 8(!) will return 1.