Beispiel #1
0
    public void FormAudio(bool tension)
    {
        if (tension)
        {
            measure = Random.Range(1.0f, 3.0f);
        }
        else
        {
            measure = Random.Range(10.0f, 20.0f);
        }

        baseAudio.CalculateAudio(measure, 3, 7, lowPitchRange, highPitchRange);
        midAudio.CalculateAudio(measure, 2, 6, lowPitchRange, highPitchRange);
        highAudio.CalculateAudio(measure, 5, 10, lowPitchRange, highPitchRange);
    }
Beispiel #2
0
    public void FormAudio(bool tension)
    {
        if (tension)
        {
            measure = Random.Range(1f, 3f); // increase the frequency (tempo)
        }
        else
        {
            measure = Random.Range(10f, 20f);
        }

        baseAudio.CalculateAudio(measure, 3, 7, lowPitchRange, highPitchRange);
        midAudio.CalculateAudio(measure, 2, 6, lowPitchRange, highPitchRange);
        highAudio.CalculateAudio(measure, 5, 10, lowPitchRange, highPitchRange);
    }