Table of Contents

Method Generate

Namespace
Bonsai.Audio
Assembly
Bonsai.Audio.dll

Generate()

Generates a sequence of buffered audio samples from the specified WAV file.

public override IObservable<Mat> Generate()

Returns

IObservable<Mat>

A sequence of Mat objects representing audio sample buffers of a fixed length. See BufferLength.

Generate<TSource>(IObservable<TSource>)

Generates a sequence of buffered audio samples from the specified WAV file, where each new buffer is emitted only when an observable sequence emits a notification.

public IObservable<Mat> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting audio buffers.

Returns

IObservable<Mat>

A sequence of Mat objects representing audio sample buffers of a fixed length. See BufferLength.

Type Parameters

TSource

The type of the elements in the source sequence.