Skip to content

Instantly share code, notes, and snippets.

View albertochiwas's full-sized avatar

Alberto Pacheco albertochiwas

View GitHub Profile
var bola = {
r:30, col:color(224, 85, 168),
x:190, y:80,
rep:0, sube:false
};
@Aether919
Aether919 / ps001_fracciones.java
Last active August 31, 2015 05:40 — forked from albertochiwas/ps001_fracciones.java
Ver. 0.1 Fracciones
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
Minim minim;
AudioPlayer player;
AudioInput input;
final int SZ = 32;
float num = 1;
@rgcottrell
rgcottrell / gist:5b876d9c5eea4c9e411c
Created September 21, 2014 17:38
An FM Synthesizer in Swift using AVAudioEngine
import AVFoundation
import Foundation
// The maximum number of audio buffers in flight. Setting to two allows one
// buffer to be played while the next is being written.
private let kInFlightAudioBuffers: Int = 2
// The number of audio samples per buffer. A lower value reduces latency for
// changes but requires more processing but increases the risk of being unable
// to fill the buffers in time. A setting of 1024 represents about 23ms of