Table of Contents

Class RhythmEncoder<T>

Namespace
AiDotNet.Diffusion.Models
Assembly
AiDotNet.dll

Rhythm encoder for extracting beat/rhythm features from audio.

public class RhythmEncoder<T>

Type Parameters

T

Numeric type.

Inheritance
RhythmEncoder<T>
Inherited Members

Constructors

RhythmEncoder(int, int?)

Creates a new rhythm encoder.

public RhythmEncoder(int outputDim, int? seed = null)

Parameters

outputDim int
seed int?

Properties

ParameterCount

Gets parameter count.

public int ParameterCount { get; }

Property Value

int

Methods

EncodeRhythm(Tensor<T>, int)

Encodes rhythm from audio waveform.

public Tensor<T> EncodeRhythm(Tensor<T> audio, int sampleRate)

Parameters

audio Tensor<T>
sampleRate int

Returns

Tensor<T>

GetParameters()

Gets parameters.

public Vector<T> GetParameters()

Returns

Vector<T>

SetParameters(Vector<T>)

Sets parameters.

public void SetParameters(Vector<T> parameters)

Parameters

parameters Vector<T>