public override string ToString() { System.Text.StringBuilder text = new System.Text.StringBuilder(); text.AppendLine("MidiFileInfo"); for (int ch = 0; ch < channelInfo.Length; ch++) { MidiChannelInfo chInfo = channelInfo[ch]; if (chInfo.isUsed) { text.AppendLine("\tChannel Index " + ch); text.AppendLine("\t\tNote Key Range (" + chInfo.noteKeyMin + ", " + chInfo.noteKeyMax + ")"); text.AppendLine("\t\tNote Vel Range (" + chInfo.noteVelMin + ", " + chInfo.noteVelMax + ")"); for (int cc = 0; cc < 128; cc++) { if (chInfo.IsCCUsed(cc)) { text.AppendLine("\t\tCC" + cc + " Range (" + chInfo.controlChangeValMin[cc] + ", " + chInfo.controlChangeValMax[cc] + ")"); } } } } return(text.ToString()); }
public void OnLoaded(TextAsset file, SmfLite.MidiFileInfo info) { _channelInfo = info.channelInfo[_channelIndex]; }