private bool IsValidOnsetForFrame(int frameIndex) { bool lowOnset = (low.GetOnset(frameIndex) > 0); bool beatOnset = (rhythmTool.IsBeat(frameIndex) == 1); return(lowOnset || beatOnset); }
private bool CheckIsOnSet() { currentFrame = rhythmTool.currentFrame; float onSet = lowFrec.GetOnset(currentFrame); Debug.Log("Estoy aqui"); return(onSet > 0 && lastFrec != lowFrec.magnitude [currentFrame]); }