Skip to content

Instantly share code, notes, and snippets.

View SpotlightKid's full-sized avatar

Christopher Arndt SpotlightKid

View GitHub Profile
@SpotlightKid
SpotlightKid / tapklick.sh
Last active February 14, 2024 21:49
Run klick metronome and tap tempo with enter/return key
#!/bin/bash
#
# Run klick metronome and tap tempo with enter/return key
#
TEMPO="${1:-120}"
cleanup() {
stty echo
oscsend localhost 9001 /klick/metro/stop
@SpotlightKid
SpotlightKid / sendsyx.py
Created August 2, 2023 14:21
Send bytes given on the command line as hexadecimal digit pairs to selected MIDI output
#!/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:])))
@SpotlightKid
SpotlightKid / feedinfo.py
Created June 2, 2023 18:53
Examine an RSS feed retrieved from given URL
#!/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
@SpotlightKid
SpotlightKid / waveformqt.py
Created April 24, 2023 19:02
Display waveform of an audio file using PyQt/QPainter
#!/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
@SpotlightKid
SpotlightKid / cchorus.dsp
Last active February 26, 2023 23:31
FAUST versatile stereo chorus effect
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;
@SpotlightKid
SpotlightKid / CHANGES
Created February 10, 2023 13:58
Improved AUR PKGBUILD for Pianoteq 8
- Updated description
- Updated URL
- Uppercase name in desktop file
- Install binary as "Pianoteq 8" and make a link to "pianoteq8"
- Link VST2 plugin shared lib to LV2 one, they are the same
- Support arm 32/64 bit
- Cleaned up unnecessary complicated install commands
- Use SHA256 hash sums (shorter and sufficiently secure)
- Removed obsolete makedepends
- Added soname depends
@SpotlightKid
SpotlightKid / pthreads_cython.pyx
Last active December 4, 2022 18:59 — forked from jerryvig/pthreads_cython.pyx
Basic demonstration of how to use pthreads (POSIX threads) in Cython.
# 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
@SpotlightKid
SpotlightKid / pico_setup.sh
Created December 2, 2022 21:40
pico_setup.sh - Set up a development environment for the Raspberry Pi Pico
#!/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:
#
@SpotlightKid
SpotlightKid / PKGBUILD-uhhyou.lv2-git.sh
Created November 24, 2022 07:32
Updated PKGBUILD for uhhyou.lv2-git
# 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'
gcm-linux_*.tar.gz
pkg/
src/
*.pkg.tar.*
*.src.tar.*