This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
it2fss.py, version 0.2 | |
---------------------- | |
Python 3 only. | |
This script converts single-channel Impulse Tracker module into a FSS text file | |
for use with fsound.exe. No effects commands are supported. Needless to say, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# vim:sw=2 | |
# IRC bot (requires suckless.org sic). | |
# Each executable file in the current directory is treated as a command | |
# plugin for the bot, and is executed when a command corresponding to its | |
# filename is called. For example, a plugin with filename "greet" would be | |
# invoked via the command "!greet". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Program that renders a WAV file by converting IT pattern data into a | |
playback routine for an imaginary sound chip. | |
""" | |
import operator | |
import wave |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io/ioutil" | |
"os" | |
"path" | |
"regexp" | |
) | |
func handle(err error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Anagram game IRC bot. | |
Requires http://tools.suckless.org/sic. | |
Public commands: | |
- !start | |
- !score [NICK] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'midifile' | |
TicksPerQuarter = 32 | |
NoteOffsets = { 'c' => 0, 'd' => 2, 'e' => 4, 'f' => 5, 'g' => 7, 'a' => 9, 'b' => 11 } | |
class Track | |
attr_reader :delay, :octave, :note, :velocity, :bytes, :default_delay | |
attr_writer :delay, :octave, :note, :velocity, :bytes, :default_delay | |
def initialize() | |
@delay = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SingleTrack = 0 | |
MultipleTracksSync = 1 | |
MultipleTracksAsync = 2 | |
class Event | |
attr_reader :command_byte, :num_data_bytes | |
def initialize(command_byte, num_data_bytes) | |
@command_byte = command_byte | |
@num_data_bytes = num_data_bytes | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
from argparse import ArgumentParser | |
from sys import stderr | |
import mutagen | |
def get_args(): | |
parser = ArgumentParser(description='view and edit audio tags') | |
parser.add_argument('-t', '--title', type=str, help='set title') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
periods = ( | |
1712,1616,1525,1440,1357,1281,1209,1141,1077,1017, 961, 907, | |
856, 808, 762, 720, 678, 640, 604, 570, 538, 508, 480, 453, | |
428, 404, 381, 360, 339, 320, 302, 285, 269, 254, 240, 226, | |
214, 202, 190, 180, 170, 160, 151, 143, 135, 127, 120, 113, | |
107, 101, 95, 90, 85, 80, 76, 71, 67, 64, 60, 57 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Controls: | |
// - Arrow keys - move cursor | |
// - Esc - toggle reprint of last character on movement | |
// - ^C - exit program, printing the screen to standard output | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <ncurses.h> |