mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-13 11:20:31 +00:00
23 lines
707 B
C#
23 lines
707 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
|
|
|
|
using System;
|
|
|
|
namespace osu.Framework.Audio.Track
|
|
{
|
|
public struct TrackAmplitudes
|
|
{
|
|
public float LeftChannel;
|
|
public float RightChannel;
|
|
|
|
public float Maximum => Math.Max(LeftChannel, RightChannel);
|
|
|
|
public float Average => (LeftChannel + RightChannel) / 2;
|
|
|
|
/// <summary>
|
|
/// 256 length array of bins containing the average frequency of both channels at every ~78Hz step of the audible spectrum (0Hz - 20,000Hz).
|
|
/// </summary>
|
|
public float[] FrequencyAmplitudes;
|
|
}
|
|
}
|