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.
c#
public static Sound PulseSequence(IEnumerable<ushort> lengths);Parameters
| Name | Type | Description |
|---|---|---|
lengths | IEnumerable<UInt16> | The lengths of the pulses in T-states. |
Returns
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);Parameters
| Name | Type | Description |
|---|---|---|
lengths | ReadOnlySpan<UInt16> | The lengths of the pulses in T-states. |
Returns
A new Sound consisting of the specified pulse sequence.