Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Webb arachsys

View GitHub Profile
@arachsys
arachsys / igctokml
Created May 30, 2012
Script to convert IGC files to KML for Google Maps
View igctokml
#!/bin/perl -w
use File::Basename;
use Getopt::Std;
use List::Util qw(sum);
use POSIX;
use XML::Generator;
use strict;
sub usage() {
@arachsys
arachsys / README
Created May 8, 2012
Record raw 16-bit signed little-endian audio from a Motif XF
View README
To record audio from the Motif, connect to it on TCP port 5555 and you will
receive a continuous stream of audio chunks, each consisting of the eight
bytes
‘W’, ‘A’, ‘V’, ‘E’, 0xLL, 0xHH, 0x00, 0x00
followed by 0xHHLL bytes of stereo, 16-bit, signed, little-endian audio data.
The instrument always uses a chunk size of 0x8000 when recording, even though
it seems to support other chunk sizes on playback.
@arachsys
arachsys / README
Created May 8, 2012
Play raw 16-bit signed little-endian audio to a Motif XF
View README
To play audio through the Motif, connect to it on TCP port 5556 and send a
continuous stream of audio chunks, each consisting of the eight bytes
‘W’, ‘A’, ‘V’, ‘E’, 0xLL, 0xHH, 0x00, 0x00
followed by 0xHHLL bytes of stereo, 16-bit, signed, little-endian audio data.
0x8000 works well as a chunk size, and matches that used by the instrument
when recording.
The Motif has a playback buffer of size 0x180000 bytes, and will only start