musician, multidisciplinary artist.
- Seoul, Republic of Korea
- https://jtoda.one
- @jtodaone
- https://bsky.app/profile/elmomertens.bsky.social
Pinned Loading
-
Small Swift extension for getting pr...
Small Swift extension for getting proper binary representation of UInt8. 1extension UInt8 {
2var binaryRepresentation: String {
3get {
4let number = String(self, radix: 2)
5let padding = String(repeating: "0", count: leadingZeroBitCount)
-
This piece of code introduces ..? op...
This piece of code introduces ..? operator which lets you handle unexpected nil found in an optional just like you would with any other Swift errors - with do/try/catch. 1postfix operator ..?
23extension Optional {
4static postfix func ..? (optional: Optional<Wrapped>) throws -> Wrapped {
5if let value = optional {
-
AudioBuffer (or AVAudioPCMBuffer) to...
AudioBuffer (or AVAudioPCMBuffer) to array of float / Float array to AudioBuffer (or AVAudioPCMBuffer) 1import AVFoundation
23extension AudioBuffer {
4func array() -> [Float] {
5return Array(UnsafeBufferPointer(self))
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.