Tightened the source code and README documentations in the library.
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
internal import CPlaydate
|
||||
|
||||
extension Sound.Synth {
|
||||
/// The synth's waveform.
|
||||
public enum Waveform: UInt32, Sendable {
|
||||
/// Parameter 1 sets the pulse width.
|
||||
case square = 0
|
||||
case triangle = 1
|
||||
case sine = 2
|
||||
/// White noise.
|
||||
case noise = 3
|
||||
case sawtooth = 4
|
||||
/// A Pocket Operator-style phase-distortion waveform.
|
||||
/// Pocket Operator-style phase distortion.
|
||||
case poPhase = 5
|
||||
/// A Pocket Operator-style digital waveform.
|
||||
/// Pocket Operator-style digital.
|
||||
case poDigital = 6
|
||||
/// A Pocket Operator-style VOSIM (voice simulation) waveform.
|
||||
/// Pocket Operator-style VOSIM (voice simulation).
|
||||
case poVosim = 7
|
||||
|
||||
var cValue: SoundWaveform { SoundWaveform(SoundWaveform.RawValue(rawValue)) }
|
||||
|
||||
Reference in New Issue
Block a user