Swift 6.4 migration and exhancements (#1)
This PR contains the work done to update the library and the attached example project to use the Swift 6.4 computer as a minimum supported version and also, to use the latest features introduced in it. Reviewed-on: #1 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #1.
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