#ff88bb,#ffeeff,#22ffcc,#6611ff,#ffeeff,#661122,#22ffcc,#EB4Dff
This file contains 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
#!/bin/sh | |
cd $(dirname $(realpath $0)) | |
if [ -f .env ]; then | |
export $(cat ../.env | grep -v ^# | xargs) | |
fi |
This file contains 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
module NLMidi | |
require "unimidi" | |
#standard midi events | |
STATUS_NOTE_OFF = 0x80 | |
STATUS_NOTE_ON = 0x90 | |
STATUS_NOTE_PRESSURE = 0xA0 | |
STATUS_CONTROL = 0xB0 | |
STATUS_PROGRAM = 0xC0 | |
STATUS_PRESSURE = 0xD0 |
This file contains 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
//Andrew Lim 2013-09-07 | |
//Compile with: -framework CoreMIDI -framework CoreFoundation -framework CoreAudio | |
#include <stdio.h> | |
#include <CoreMIDI/CoreMIDI.h> | |
const char * const NOTE_NAMES[] = { | |
"C","C#","D","D#","E","F","F#","G","G#","A","A#","B" | |
}; |
This file contains 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
# pip install Pint | |
from pint import UnitRegistry | |
ureg = UnitRegistry() | |
Q_ = ureg.Quantity | |
def convert(inp): | |
q,d = inp.split(' to ') | |
cvt = "" | |
try: |
This file contains 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
import struct | |
import json | |
import chunk | |
import wave | |
import hashlib | |
import binascii | |
import sys | |
import os | |
files = [x for x in os.listdir(".") if os.path.splitext(x)[1].lower() == '.spc'] |
This file contains 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
!play >l16 df>f<f df>e<f df>d<f >c<da#d adgd ada#d >c<gfg >c<geg >cg<cg <a#>g<a>g <a#>gcg dgeg df>f<f df>e<f df>d<d>c<da#d adgd ada#d >c<cec fcgc >c<cgc >c<c>d<c >e<c>c<c >>c<<c>c<c |
This file contains 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
!p my.['cap_irc'] = ['ffffff','202020','4485fd','5ed089','ff925b','ff4a77','ff63ce','ffbd61','ffdd8b','ade678','6cccff','b1fff0','ffb1ff','404040','808080'] |
This file contains 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
int | |
irc_nick_hash_color (const char *nickname) | |
{ | |
int color; | |
const char *ptr_nick; | |
if (!irc_config_nick_colors) | |
irc_config_set_nick_colors (); | |
if (irc_config_num_nick_colors == 0) |
NewerOlder