Skip to content

Instantly share code, notes, and snippets.

View cfdrake's full-sized avatar

Colin Drake cfdrake

View GitHub Profile
-- FM7 Polyphonic Synthesizer
-- With 6 Operator Frequency
-- And wrms
-- Modulation
-- ///////////////////////////
-- key 2: random phase mods
-- key 3: play a random note
-- ///////////////////////////
-- grid pattern player:
-- 1-16 1 high voice
@cfdrake
cfdrake / rasterbars.asm
Last active June 7, 2021 03:47
c64 rasterbars wip
processor 6502
MACRO DELAY ;; {1} - loop iterations
ldx {1}
.loop:
dex
bne .loop
ENDM
MACRO RASTER ;; {1} - background color to set
@cfdrake
cfdrake / liteplus.lua
Created August 11, 2021 19:43
wrms + passersby
--
-- wrms/lite
--
-- simple stereo delay & looper
--
-- version 2.0.0 @andrew
-- https://norns.community/
-- authors/andrew/
-- wrms#wrmslite
--
@cfdrake
cfdrake / j2objc-ios-17-issue.swift
Created June 26, 2023 14:46
j2objc iOS 17 issue
// On iOS 16 I see that the reader indicates it is ready, the stream has 10 characters
// available to read, and the loop executes printing each character out line by line.
//
// With no changes, on iOS 17 beta I see that the reader indicates it is ready, the first
// byte is read, but the loop only executes once printing 65533 and exiting.
func testDecodeStream() {
let testString = "{testtest}"
let data = testString.data(using: .utf8)
let byteArray = IOSByteArray(nsData: data)
let stream: JavaIoInputStream = JavaIoByteArrayInputStream(byteArray: byteArray)