public string GetStateString() { string ret = "触摸"; ret += id + ": "; ret += speed < 0.06f * Screen.width ? "慢" : "快"; SoundPlayer.SetVibRate(speed < 0.06f ? VibRate.slow : VibRate.fast); float frac = cordLength / Screen.width; string deepness = "揉"; VibDepth vd = VibDepth.no; if (frac < VibratoManager.deepness[0]) { deepness = "浅揉"; vd = VibDepth.shallow; } else if (frac > VibratoManager.deepness[1]) { deepness = "深揉"; vd = VibDepth.deep; } //ret += cordLength + "=" + cordLengthComps; ret += deepness; SoundPlayer.SetVibDepth(vd); return(ret); }
public static void SetVibDepth(VibDepth d) { ins.vEventIns.setParameterByName("vib_depth", (int)d); }