Ejemplo n.º 1
0
    public void ValueChanged(int value)
    {
        currentSelection = value;
        var block = activeCubes[value].GetComponent <StepBlock>();

        linkedDrumParams      = block.GetVoice().GetParams();
        channelDropDown.value = block.getVoiceChannel();
        SetMode((int)block.PlaybackMode);

        float cut = 0f, res = 0f;

        block.GetVoice().GetLPFValues(out cut, out res);
        lowPassCutoffSlider.value = cut;
        lowPassResoSlider.value   = res;
        lpCutoffInput.text        = cut.ToString();
        oscIDInput.text           = block.getOSCID();

        updateToSliders();
    }
Ejemplo n.º 2
0
 public void SetParams(DrumVoiceParams param)
 {
     voiceParams = param;
 }