public string GetTable(int opNum, RTableIntent intent) { opNum = (opNum < c.Voice.opCount)? opNum: 0; IResponseTable tbl = c.Voice.egs[opNum].GetTable(intent); return(tbl.ToJSONString()); }
///summary: Updates an rTable. public void SetTable(int opNum, Godot.Collections.Array input, RTableIntent intent) { IResponseTable tbl = c.Voice.egs[opNum].GetTable(intent); for (int i = 0; i < input.Count; i++) { tbl.UpdateValue((byte)i, Convert.ToUInt16(input[i])); } }
public void SetTableMinMax(int opNum, int value, bool isMax, RTableIntent intent) { IResponseTable tbl = c.Voice.egs[opNum].GetTable(intent); tbl?.SetScale(isMax? -1:value, isMax? value:-1); }
////////////////////////////// rTABLE //////////////////////////////////// ///summary: Updates a single column in an rTable. public void UpdateTable(int opNum, int column, int value, RTableIntent intent) { IResponseTable tbl = c.Voice.egs[opNum].GetTable(intent); tbl.UpdateValue((byte)column, (ushort)value); }