Instrument._id or Instrument._instrumentId or _channel.program

• Feb 1, 2021 - 13:59

What is the best way (from within a method in the Instrument class) to determine the instrument type that works for both tab and/or notation (or both linked together).

For example, to determine if it's a "banjo"

  1. if (_id == "banjo") ...
  2. if (_instrumentId == "pluck.banjo") ...
  3. if (_channel[0]->program() == 105) ...

Thanks for your help!

Do you still have an unanswered question? Please log in first to post your question.