Skip to content

Sound.PulseSequence Method

Overloads

Name Description
PulseSequence(IEnumerable<UInt16>) Creates a sound from a sequence of pulses with the specified lengths.
PulseSequence(ReadOnlySpan<UInt16>) Creates a sound from a sequence of pulses with the specified lengths.

PulseSequence(IEnumerable<UInt16>)

Creates a sound from a sequence of pulses with the specified lengths.

public static Sound PulseSequence(IEnumerable<ushort> lengths);

View source

Parameters

Name Type Description
lengths IEnumerable<UInt16> The lengths of the pulses in T-states.

Returns

Sound

A new Sound consisting of the specified pulse sequence.

PulseSequence(ReadOnlySpan<UInt16>)

Creates a sound from a sequence of pulses with the specified lengths.

public static Sound PulseSequence(ReadOnlySpan<ushort> lengths);

View source

Parameters

Name Type Description
lengths ReadOnlySpan<UInt16> The lengths of the pulses in T-states.

Returns

Sound

A new Sound consisting of the specified pulse sequence.