PitchHandler constructor

PitchHandler(
  1. InstrumentType _instrumentType
)

Implementation

PitchHandler(this._instrumentType) {
  switch (_instrumentType) {
    case InstrumentType.guitar:
      this._minimumPitch = 80.0;
      this._maximumPitch = 1050.0;
      this._noteStrings = [
        "C",
        "C#",
        "D",
        "D#",
        "E",
        "F",
        "F#",
        "G",
        "G#",
        "A",
        "A#",
        "B"
      ];
      break;
  }
}