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(); }
public void SetParams(DrumVoiceParams param) { voiceParams = param; }