Skip to content

Instantly share code, notes, and snippets.

@brummer10
brummer10 / guitarix_presets.py
Last active October 29, 2023 10:19
Demoing how to switch presets via the rpc spcket
#! /usr/bin/python3
# -*- coding: utf-8 -*-
guitarix_pgm = "guitarix -N -p 7000"
import socket, json, os, time, signal
import sys, tty, termios
from subprocess import check_output
class _Getch:
@brummer10
brummer10 / guitarix.py
Last active February 27, 2023 17:02
Demoing the use of the guitarix socket connection with python, show how to set and get parameter values, and how to fetch updates from the socket.
#! /usr/bin/python
# -*- coding: utf-8 -*-
guitarix_pgm = "guitarix -p 7000"
import socket, json, os, time
class RpcNotification:
def __init__(self, method, params):
@brummer10
brummer10 / png2svg.c
Last active March 1, 2021 18:03
convert and scale png files to svg files with cairo
#include <cairo.h>
#include <cairo-svg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
// gcc -g png2svg.c -lm `pkg-config --cflags --libs cairo` -o png2svg
void strdecode(char *target, const char *needle, const char *replacement) {
@brummer10
brummer10 / xruncounter.c
Created April 23, 2019 08:40
Small linux tool to measure jack xruns and evaluate the overall performance of a system for realtime audio
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <jack/jack.h>