Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Arndt SpotlightKid

View GitHub Profile
@SpotlightKid
SpotlightKid / PKGBUILD-uhhyou.lv2-git.sh
Created Nov 24, 2022
Updated PKGBUILD for uhhyou.lv2-git
View PKGBUILD-uhhyou.lv2-git.sh
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=uhhyou.lv2
pkgname=$_pkgname-git
pkgdesc='Various synth, effect and CV LV2 plugins (git version)'
pkgver=r508.e5eee4c
pkgrel=1
arch=(x86_64)
url='https://github.com/ryukau/LV2Plugins'
View .gitignore
gcm-linux_*.tar.gz
pkg/
src/
*.pkg.tar.*
*.src.tar.*
View midi_send_all.py
import argparse
import logging
import sys
import time
from rtmidi.midiutil import open_midioutput
from rtmidi.midiconstants import *
log = logging.getLogger("midi-send-all")
@SpotlightKid
SpotlightKid / parse_srcinfo.py
Last active Apr 1, 2022
Get info from a PKGBUILD file by calling makepkg --printsrcinfo and parsing the output
View parse_srcinfo.py
#!/usr/bin/env python3
import json
import sys
from subprocess import CalledProcessError, run
ARRAY_FIELDS = (
"arch",
"arch",
"b2sums",
@SpotlightKid
SpotlightKid / smfinfo.py
Created Jul 9, 2021
Show basic tempo and time/key signature information of a standard MIDI file using miditk-smf
View smfinfo.py
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):
@SpotlightKid
SpotlightKid / PKGBUILD-uhhyou.lv2-git.sh
Created Feb 28, 2021
Improve PKGBUILD for uhhyou.lv2-git AUR package
View PKGBUILD-uhhyou.lv2-git.sh
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname='uhhyou.lv2'
pkgname="${_pkgname}-git"
pkgdesc="Various synth, effect and CV LV2 plugins."
pkgver=r511.df67460
pkgrel=1
arch=('x86_64')
url="https://github.com/ryukau/LV2Plugins"
@SpotlightKid
SpotlightKid / .gitignore
Created Feb 19, 2021
Improvements for samplecat-git AUR PKGBUILD
View .gitignore
pkg/
src/
samplecat/
libwaveform/
samplecat-*.pkg.tar.xz
samplecat-*.pkg.tar.zst
@SpotlightKid
SpotlightKid / notes.md
Created Feb 17, 2021
Kurztipp: SF2 Soundfonts mit Polyphone nach SFZ konvertieren und in sfizz laden
View notes.md
@SpotlightKid
SpotlightKid / .gitignore
Last active Feb 5, 2021
Improved PKGBUILD for loopauditioneer-svn
View .gitignore
pkg/
src/
loopauditioneer/
loopauditioneer-svn-*.pkg.tar.xz
loopauditioneer-svn-*.pkg.tar.zst
@SpotlightKid
SpotlightKid / prequests.py
Created Jan 18, 2021
urequests.py from pfalcon/pycopy-lib fixed for current upstream micropython
View prequests.py
import usocket
class Response:
def __init__(self, f):
self.raw = f
self.encoding = "utf-8"
self._cached = None
def close(self):