Example #1
0
    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());
    }
Example #2
0
    ///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]));
        }
    }
Example #3
0
    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);
    }
Example #4
0
    //////////////////////////////    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);
    }