Skip to content

Instantly share code, notes, and snippets.

View mxmilkiib's full-sized avatar
🔊

Milkii Brewster mxmilkiib

🔊
View GitHub Profile
@mxmilkiib
mxmilkiib / lv2-over1200-uri-list
Last active June 3, 2024 13:16
Over 1200 LV2 plugins. Almost all are available in the AUR for Arch Linux/Manjaro/pacman distributions. Note URIs are normally only used internally in hosts.
# IFS=$'\n' arr=($(lv2ls)) && IFS=$'\n' arr2=($(lv2ls -n)) && for (( i=0; i<${#arr[*]}; ++i)); do printf "%s|%s\n" "${arr[$i]}" "${arr2[$i]}"; done | column -t -s "|"
file:///usr/lib/lv2/audio_to_audio.ingen/main.ttl audio_to_audio
file:///usr/lib/lv2/control_to_control.ingen/main.ttl control_to_control
file:///usr/lib/lv2/cv_to_cv.ingen/main.ttl cv_to_cv
file:///usr/lib/lv2/event_to_event.ingen/main.ttl event_to_event
file:///usr/lib/lv2/gen_amsynth_filte_out.ingen/main.ttl gen_amsynth_filte_out
file:///usr/lib/lv2/MonoEffect.ingen/MonoEffect.ttl Ingen Mono Effect Template
file:///usr/lib/lv2/MonoInstrument.ingen/MonoInstrument.ttl Ingen Mono Instrument Template
file:///usr/lib/lv2/StereoEffect.ingen/StereoEffect.ttl Ingen Stereo Effect Template
file:///usr/lib/lv2/StereoInstrument.ingen/StereoInstrument.ttl
@mxmilkiib
mxmilkiib / mpv_playerctl_firefox_mpris_pause-play.desktop
Last active October 8, 2023 17:02
A desktop entry to allow Linux users to open a directory containing audio files in mpv whilst pausing then unpause any Firefox media playing upon opening and exit. Requires: playerctl, Firefox Mpris integration extension, and ZSH as the current shell. Also sets the volume to 80%, starts at 30 second in, and sets an unobtrusive window size https:…
[Desktop Entry]
NoDisplay=1
Exec=bash -c 'playerctl pause -p firefox; mpv --geometry=600x300 --volume=80 --start=30 --player-operation-mode=pseudo-gui --script-opts=autoload-disabled=yes -- %U/**/*.{flac,mp3,oga,ogg,vobis,opus,aac,m4a,wav,mod,med,it,xm,s3m} %U/*.{flac,mp3,oga,ogg,vobis,opus,aac,m4a,wav,mod,med,it,xm,s3m} ; playerctl play-pause -p firefox'
MimeType=inode/directory
Name=mpv (mpris ⏯)
Icon=mpv
Type=Application
@mxmilkiib
mxmilkiib / mpv-ffmpegvisual-jackin.sh
Last active March 6, 2021 17:55
quick jack audio to waterfall spectrgraph (ffmpeg showcqt filter in mpv)
# https://github.com/mfcc64/mpv-scripts/blob/master/visualizer.lua
# https://github.com/mfcc64/showcqt-bash
# fixed to 800x600 atm. todo; migrate calculations from other projects
# basic, no data image
mpv --config=no --quiet --lavfi-complex="[aid1] asplit [ao], afifo, aformat = channel_layouts = stereo, firequalizer = gain = '1.4884e8 * f*f*f / (f*f + 424.36) / (f*f + 1.4884e8) / sqrt(f*f + 25122.25)': scale = linlin : wfunc = tukey: zero_phase = on: fft2 = on, showcqt = size = 800x600 : count= 2.5 : csp = bt709 : bar_g = 2: sono_g = 4 : bar_v= 9 : sono_v = 17 : font = 'Nimbus Mono L,Courier New,mono' : fontcolor = 'st(0, (midi(f)-53.5)/12); st(1, 0.5 - 0.5 * cos(PI*ld(0))); r(1-ld(1)) + b(ld(1))' : tc = 0.33 : attack = 0.033 : tlength= 'st(0,0.17); 384*tc / (384 / ld(0) + tc*f /(1-ld(0))) + 384*tc / (tc*f / ld(0) + 384 /(1-ld(0)))', format = yuv420p [vo]" av://jack:"mpv JACK"
# silly long, includes data image for horizontal axis note/octave labels
mpv --config=no --quiet --lavfi-complex="[aid1] asplit [a
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Syncrose Granular Synthesizer err = Too many open files<
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Syncrose Granular Synthesizer err = Too many open files<
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Simple Scope (4 channel) err = Too many open files<
Sep 29 21:57:44 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Simple Scope (4 channel) err = Too many open files<
Sep 29 21:57:45 rose.local pulseaudio[4179]: W: [pulseaudio] module-jack-source.c: JACK error >Connect: can't connect named futex name = jack_sem.1000_default_Lead Gain 1
18:24:02 milk@rose:~ 130 % mtr -s 1000 -r -c 1000 archlinux.org
Start: 2020-08-22T18:24:02+0100
HOST: rose.local Loss% Snt Drop Rcv Last Avg Best Wrst StDev Gmean Jttr Javg Jmax Jint
1. AS??? _gateway (192.168.1 0.0% 1000 0 1000 0.6 0.4 0.4 1.5 0.1 0.4 0.1 0.1 1.1 0.8
2. AS??? 10.0.254.87 0.1% 1000 1 999 28.7 29.1 27.3 222.8 7.6 28.7 0.6 2.2 194. 9.3
3. AS??? 10.0.244.237 0.0% 1000 0 1000 28.9 29.9 28.0 200.7 6.6 29.6 0.5 2.8 172. 39.6
4. AS??? 10.0.244.233 0.1% 1000 1 999 29.7 34.7 28.6 199.0 13.2 33.4 0.6 6.2 168. 20.2
5. AS??? 10.0.244.253 0.1% 1000 1 999 29.8 33.4 28.6 197.8 13.3 32.2 0.1 6.1 168. 78.8
6. AS6939 10ge2-3.core1.lon2. 0.1% 1000 1 999 28.6 32.5 27.6 181.3 8.2 31.8 0.1 2.3 153. 41.5
7. AS6939 100ge7-1.core1.fra1 0.1% 1000 1 999 40.2 40.0 39.1 202.7 5.3 39.9 0.7 1.2 163. 6.3
strace element
execve("/usr/bin/element", ["element"], 0x7ffc37b82180 /* 82 vars */) = 0
brk(NULL) = 0x55b82f17d000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc348c69c0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=344516, ...}) = 0
mmap(NULL, 344516, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f82fc66b000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/libelement-0.so", O_RDONLY|O_CLOEXEC) = 3
adlplug ambix ams-lv2 ams-mod-lv2-git amsynth artyfx avldrums.lv2 bchoppr-git beatslash-lv2 bg-plugins.lv2-git bjumblr.lv2-git blop.lv2 bsequencer-git bshapr-git bslizr-git calf caps-lv2-git carla-debug-git deteriorate-lv2 distrho-extra-lv2-git distrho-ports dpf-plugins-git dragonfly-reverb-git drmr-falktx-git drumkv1 eq10q eteroj.lv2 fabla fluidplug-git fogpad.lv2-git fomp.lv2 geonkick gmsynth.lv2 gula-plugins-git gxplugins-lv2-git helm-synth infamousplugins ingen-git intersect.lv2-git invada-studio-plugins-lv2 ir.lv2 kapitonov-plugins-pack-lv2-git linuxsampler liquidsfz lsp-plugins lv2-git lvtk matrixmixer32.lv2-git mclk.lv2 mda.lv2 mephisto.lv2 midi_matrix.lv2 midimsg-lv2 midiomatic midi-trigger.lv2-git mod-cv-plugins-git moony-lv2-git mystery.lv2-git nanoinvaders.lv2-git newtonator ninjas2-git ninjas-git njl.lv2-git noise-repellent omins.lv2-git omnifono.lv2 opnplug padthv1 plujain-ramp-git qmidiarp-git regrader.lv2-git remid.lv2-git rkr.lv2-git samplv1 screcord.lv2-git sherlock.lv2 shiru.lv2-git sooperlo
@mxmilkiib
mxmilkiib / CV_HoldFilter_dsp.ttl
Last active April 14, 2020 02:27
/usr/lib/lv2/CV_HoldFilter.lv2/CV_HoldFilter_dsp.ttl
@prefix atom: <http://lv2plug.in/ns/ext/atom#> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix mod: <http://moddevices.com/ns/mod#> .
@prefix opts: <http://lv2plug.in/ns/ext/options#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rsz: <http://lv2plug.in/ns/ext/resize-port#> .
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .
cv_to_cv-Message: 23:24:16.947: Loaded configuration /home/milk/.config/ingen/options.ttl
cv_to_cv-Message: 23:24:16.947: Block: 512 frames, Sequence: 4096 bytes
cv_to_cv-Message: 23:24:16.958: Loading file:///home/milk/.lv2/cv_to_cv.ingen/main.ttl from /home/milk/.lv2/cv_to_cv.ingen/main.ttl
** Message: 23:24:16.970: Error: Segmentation fault - Backtrace:
zrythm(+0x3b5ba) [0x55b7f53bb5ba]
/usr/lib/libc.so.6(+0x3bd70) [0x7fc2c3179d70]
/usr/lib/libingen_server.so(_ZN5ingen6server8PortImpl15set_voice_valueERKNS0_10RunContextEjjf+0x33e) [0x7fc2b4a977be]
/usr/lib/libingen_server.so(_ZN5ingen6server8PortImpl17set_control_valueERKNS0_10RunContextEjf+0x50) [0x7fc2b4a97bb0]
/usr/lib/libingen_server.so(_ZN5ingen6server6events12SetPortValue7executeERNS0_10RunContextE+0x12) [0x7fc2b4acba72]
/usr/lib/libingen_server.so(_ZN5ingen6server6events5Delta7executeERNS0_10RunContextE+0x87) [0x7fc2b4abae07]
./lv2_validate.in /usr/lib/lv2/ZLFO.lv2/ZLFO.ttl
error: Object not in range <http://usefulinc.com/ns/doap#Project>
https://www.zrythm.org/plugins/ZLFO
http://lv2plug.in/ns/lv2core#project
https://www.zrythm.org/plugins
Found 1 errors among 98 files (checked 3011 restrictions)