Class EventExtentions
Inherited Members
Namespace: AudioAnalysisTools.Events
Assembly: AudioAnalysisTools.dll
Syntax
public static class EventExtentions
Methods
| Improve this Doc View SourceGetAverageDecibelsInEvent(SpectralEvent, Double[,], UnitConverters)
Declaration
public static double GetAverageDecibelsInEvent(SpectralEvent ev, double[, ] spectrogramData, UnitConverters converter)
Parameters
Type | Name | Description |
---|---|---|
Spectral |
ev | |
Double[,] | spectrogramData | |
Unit |
converter |
Returns
Type | Description |
---|---|
Double |
GetCompositeTrack<T>(IEnumerable<T>)
Combines all the tracks in all the events in the passed list into a single track. Each frame in the composite event is assigned the spectral point having maximum amplitude. The points in the returned array are in temporal order.
Declaration
public static IEnumerable<ISpectralPoint> GetCompositeTrack<T>(IEnumerable<T> events)
where T : ITracks<Track>
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | events | List of spectral events. |
Returns
Type | Description |
---|---|
IEnumerable<ISpectral |
Type Parameters
Name | Description |
---|---|
T |
GetDecibelArrayFromEvent(SpectralEvent, Double[,], UnitConverters)
Returns the average of the maximum decibel value in each frame of an event.
Declaration
public static double[] GetDecibelArrayFromEvent(SpectralEvent ev, double[, ] spectrogramData, UnitConverters converter)
Parameters
Type | Name | Description |
---|---|---|
Spectral |
ev | The event. |
Double[,] | spectrogramData | The spectrogramin decibels. |
Unit |
converter | Converter between real values and spectrogram frames/bins. |
Returns
Type | Description |
---|---|
Double[] | The average decibel value. |