Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Arndt SpotlightKid

View GitHub Profile
@SpotlightKid
SpotlightKid / lua.env
Last active Oct 27, 2020
Lua environment variables for multiple version support
View lua.env
# Lua dev
LUA_DIR="$HOME/share/lua"
LUA_CDIR="$HOME/lib/lua"
if which lua5.1 >/dev/null 2>&1; then
if which luarocks >/dev/null 2>&1; then
LUA_PATH_5_1="$(luarocks --lua-version 5.1 --local path --lr-path)"
LUA_CPATH_5_1="$(luarocks --lua-version 5.1 --local path --lr-cpath)"
fi
@SpotlightKid
SpotlightKid / stereocrossdelay.dsp
Last active Oct 23, 2020
A FAUST stereo delay with feedback and cross-mixing
View stereocrossdelay.dsp
declare name "StereoCrossDelay";
declare description "A stereo delay with feedback and cross-mixing";
declare author "Christopher Arndt";
declare license "MIT license";
import("stdfaust.lib");
MAX_DELAY = 2.0;
time_l = ba.sec2samp(hslider("[0]Delay Left[symbol: delay_l][unit: ms]", 250.0, 0, MAX_DELAY * 1000, 0.1) * 0.001 : si.smoo);
@SpotlightKid
SpotlightKid / PKGBUILD-kicad-packages3d-git.sh
Last active Oct 15, 2020
Updated PKGBUILD for kicad-packages3d-git
View PKGBUILD-kicad-packages3d-git.sh
# Maintainer: Frederic Van Assche <frederic@fredericva.com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=kicad-packages3d
pkgname="${_pkgname}-git"
pkgver=r2020.10.06.27d653ce
pkgrel=1
pkgdesc="KiCad component 3D model libraries from the official git repo"
arch=('any')
url="https://github.com/KiCad/kicad-packages3D"
@SpotlightKid
SpotlightKid / .gitignore
Last active Oct 8, 2020
Updated PKGBUILD for python2-lupa 1.9
View .gitignore
pkg/
src/
lupa-*.tar.gz
python2-lupa-*.pkg.tar.xz
python2-lupa-*.pkg.tar.zst
@SpotlightKid
SpotlightKid / Makefile-cython-embed.make
Created Oct 7, 2020
Makefile for creating a standalone program via Cython from a *.py / *.pyx file
View Makefile-cython-embed.make
# Makefile for creating a standalone program via Cython from a *.py / *.pyx file
PYX ?= main.pyx
PROG ?= $(basename $(PYX))
PYTHON ?= python
PYVERSION = $(shell $(PYTHON) -c 'import sys;print("%d.%d" % sys.version_info[:2])')
PYMAJOR = $(shell $(PYTHON) -c 'import sys;print(sys.version_info[0])')
PYPREFIX = /usr
INCLUDES = -I$(PYPREFIX)/include/python$(PYVERSION)
@SpotlightKid
SpotlightKid / pitchdetect.py
Last active Sep 4, 2020
Detect pitch of audio files
View pitchdetect.py
"""Detect pitch of audio files.
Requires:
* [aubio](https://pypi.org/project/aubio/)
* [NumPy](https://pypi.org/project/numpy/)
"""
import statistics
@SpotlightKid
SpotlightKid / bash_aliases.sh
Last active Oct 27, 2020
Some handy bash aliases / functions I don't see elsewhere often
View bash_aliases.sh
# configure some commands via env variables
# (usually located in another file)
# export EDITOR=micro
# export VISUAL=$EDITOR
# export XEDITOR="geany"
# export BROWSER=xdg-open
# To open any file type via app registered in desktop system
alias xo='xdg-open'
@SpotlightKid
SpotlightKid / lv2_list_class_relations.py
Created Aug 14, 2020
List parent and children of an LV2 plugin class
View lv2_list_class_relations.py
#!/usr/bin/env python
import sys
import lilv
if len(sys.argv) > 1:
pclass = sys.argv[1]
else:
pclass = "SimulatorPlugin"
@SpotlightKid
SpotlightKid / PKGBUILD.sh
Created Aug 9, 2020
Improved PKGBUILD for B.Schaffl
View PKGBUILD.sh
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_name="BSchaffl"
_pkgname="${_name,,}.lv2"
_plugin_uri="https://www.jahnichen.de/plugins/lv2/${_name}"
pkgname="${_pkgname}-git"
pkgdesc="Pattern-controlled MIDI amp & time stretch plugin to produce shuffle / swing effects (git version)"
pkgver=0.3.r0.g2ca653c
pkgrel=1
@SpotlightKid
SpotlightKid / PKGBUILD.sh
Last active Jul 7, 2020
PKGBUILD for feature/cython-extension branch of jack_mixer git version
View PKGBUILD.sh
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=jack_mixer
pkgname="${_pkgname}-git"
pkgver=13rc1.r360.e2f0c95
pkgrel=1
pkgdesc="A GTK based Jack audio mixer (git version)"
arch=('x86_64')
url="https://rdio.space/jackmixer/"
license=('GPL2')
You can’t perform that action at this time.