Skip to content

Sound.PulseSequence Method ​

Overloads ​

NameDescription
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.

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

View source

Parameters ​

NameTypeDescription
lengthsIEnumerable<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.

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

View source

Parameters ​

NameTypeDescription
lengthsReadOnlySpan<UInt16>The lengths of the pulses in T-states.

Returns ​

Sound

A new Sound consisting of the specified pulse sequence.