Added FodyWeavers.xsd, .dotnet-home/.dotnet, .dotnet-home/.dotnet/TelemetryStorageService, and .nuget to .gitignore to prevent tracking of generated and tool-related files.
29 lines
694 B
C#
29 lines
694 B
C#
namespace FractalVisualizer.Models;
|
|
|
|
public struct AudioFeatures
|
|
{
|
|
public float Level;
|
|
public float Bass;
|
|
public float Mid;
|
|
public float High;
|
|
public float Beat;
|
|
public float Bpm;
|
|
public float DominantFrequencyHz;
|
|
public int DetectedNoteIndex;
|
|
public float DetectedNoteStrength;
|
|
public bool NoteOnset;
|
|
public int DetectedChordRootIndex;
|
|
public int DetectedChordType;
|
|
public float DetectedChordConfidence;
|
|
public float[] Spectrum;
|
|
public float TimeSeconds;
|
|
|
|
public static AudioFeatures CreateEmpty(int spectrumBins)
|
|
{
|
|
return new AudioFeatures
|
|
{
|
|
Spectrum = new float[spectrumBins]
|
|
};
|
|
}
|
|
}
|