Skip to content

Instantly share code, notes, and snippets.

@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>
@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 / guitarix.py
Last active June 19, 2024 09:36
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 / 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:
/*
* ParallelThread.h
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (C) 2024 brummer <[email protected]>
*/
/****************************************************************
** ParallelThread - class to run a processes in a parallel thread