Sound Class
Definition
Base class for a sound that can be played on a tape.
c#
public abstract class SoundConstructors
| Name | Description |
|---|---|
Sound() |
Properties
| Name | Description |
|---|---|
Signal | Gets the current signal level of the sound. |
Methods
| Name | Description |
|---|---|
Advance(Int32) | Advances the sound by tStates. Returns 0 if the sound is still in progress, or the number of T states left over if the sound is finished. |
Bit(Int32) | Creates a sound representing a single bit encoded as two pulses of equal length. |
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. |
PureTone(Int32, Int32) | Creates a pure tone sound consisting of alternating pulses. |
PureToneAndSync(Int32, Int32, Int32, Int32) | Creates a pure tone sound followed by sync pulses. |
StandardDataPureToneAndSync() | Creates the standard data pure tone and sync sound. |
StandardHeaderPureToneAndSync() | Creates the standard header pure tone and sync sound. |
StandardOneBit() | Creates the standard one bit sound. |
StandardZeroBit() | Creates the standard zero bit sound. |
Start(Boolean) | Starts the sound with the specified initial signal level. |