Beispiel #1
0
    private bool IsValidOnsetForFrame(int frameIndex)
    {
        bool lowOnset  = (low.GetOnset(frameIndex) > 0);
        bool beatOnset = (rhythmTool.IsBeat(frameIndex) == 1);

        return(lowOnset || beatOnset);
    }
Beispiel #2
0
    private bool CheckIsOnSet()
    {
        currentFrame = rhythmTool.currentFrame;

        float onSet = lowFrec.GetOnset(currentFrame);


        Debug.Log("Estoy aqui");
        return(onSet > 0 && lastFrec != lowFrec.magnitude [currentFrame]);
    }