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/bash | |
# | |
# Run klick metronome and tap tempo with enter/return key | |
# | |
TEMPO="${1:-120}" | |
cleanup() { | |
stty echo | |
oscsend localhost 9001 /klick/metro/stop |
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
#!/usr/bin/env python3 | |
import sys | |
from rtmidi.midiutil import open_midioutput | |
if sys.argv[1:]: | |
midiout, _ = open_midioutput() | |
midiout.send_message(bytearray.fromhex(" ".join(sys.argv[1:]))) |
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
#!/usr/bin/env python | |
"""Examine an RSS feed retrieved from given URL.""" | |
import sys | |
from xml.dom.minidom import parseString as parse_xml | |
import feedparser | |
import requests | |
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
#!/usr/bin/env python | |
"""Display waveform of an audio file.""" | |
import argparse | |
import logging | |
import sys | |
from statistics import fmean | |
from PyQt6 import QtCore, QtGui, QtWidgets | |
from PyQt6.QtCore import Qt |
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
declare name "CChorus"; | |
declare version "0.5"; | |
declare author "Christopher Arndt"; | |
declare license "MIT License"; | |
declare description "Versatile stereo chorus effect"; | |
import("stdfaust.lib"); | |
PI = ma.PI; | |
TWOPI = 2.0 * ma.PI; |
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
# cython: language_level=3, boundscheck=False | |
from cython.operator cimport dereference | |
from libc.stdio cimport printf | |
from posix.unistd cimport usleep | |
cdef extern from "pthread.h" nogil: | |
ctypedef int pthread_t | |
ctypedef struct pthread_attr_t: | |
pass |
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/bash | |
# | |
# pico_setup.sh - Set up a development environment for the Raspberry Pi Pico | |
# | |
# See the "Getting started with Raspberry Pi Pico" guide for reference: | |
# | |
# https://www.raspberrypi.com/documentation/microcontrollers/c_sdk.html | |
# | |
# The script will: | |
# |
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 argparse | |
import logging | |
import sys | |
import time | |
from rtmidi.midiutil import open_midioutput | |
from rtmidi.midiconstants import * | |
log = logging.getLogger("midi-send-all") |
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
#!/usr/bin/env python3 | |
import json | |
import sys | |
from subprocess import CalledProcessError, run | |
ARRAY_FIELDS = ( | |
"arch", | |
"arch", | |
"b2sums", |
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 sys | |
from miditk.smf.reader import MidiFileReader | |
from miditk.smf.sequence import MidiSequence, ObjectMidiEventHandler | |
# This defines callbacks called while parsing the MIDI sequence | |
# We only need to overwrite the event handlers we want to handle specially | |
class MySequenceHandler(ObjectMidiEventHandler): | |
def __init__(self, instance=None, debug=False): |