Skip to content

Instantly share code, notes, and snippets.

@grejppi
grejppi / atom-notes.md
Last active August 29, 2015 14:04
LV2: Atom-based note event proposal

Atom-based note event proposal

Revision Changes
2 Aug 2014, 21.10 UTC+3 Changed panning to stereoPanning
2 Aug 2014, 19.13 UTC+3 Added more comments to properties
2 Aug 2014, 18.40 UTC+3 Initial revision

While working on LV2 support for LMMS I started to think about a way to send

#!/usr/bin/env python
import subprocess
import sys
args = sys.argv
args[0] = 'pantheon-files'
for a in args:
if a.startswith('-'):
(gdb) bt full
#0 0x00007ffff410df79 in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
resultvar = 0
pid = 12665
selftid = 12697
#1 0x00007ffff4111388 in __GI_abort () at abort.c:89
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0},
sa_mask = {__val = {0 <repeats 16 times>}}, sa_flags = 0,
@grejppi
grejppi / SID
Last active August 29, 2015 14:03
arpeggio bug backtraces
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff857cc700 (LWP 22054)]
sidInstrument::playNote (this=0x7fff857cbcb0, _n=0xbb80,
_working_buffer=0x7fffc53c0eda <cSID::set_chip_model(chip_model)+58>)
at /home/h/Lataukset/git/grejppi-lmms/plugins/sid/sid_instrument.cpp:352
352 note = 69.0 + 12.0 * log( freq / 440.0 ) / log( 2 );
(gdb) bt full
#0 sidInstrument::playNote (this=0x7fff857cbcb0, _n=0xbb80,
_working_buffer=0x7fffc53c0eda <cSID::set_chip_model(chip_model)+58>)
at /home/h/Lataukset/git/grejppi-lmms/plugins/sid/sid_instrument.cpp:352
$ ls -l /usr/local/lib/lv2/TAL-NoiseMaker*/presets.ttl
-rw-r--r-- 1 root root 1029454 Feb 20 19:34 /usr/local/lib/lv2/TAL-NoiseMaker-Noise4U.lv2/presets.ttl
-rw-r--r-- 1 root root 2830946 Feb 20 19:34 /usr/local/lib/lv2/TAL-NoiseMaker.lv2/presets.ttl
@grejppi
grejppi / gist:50e07f9dded4feba5245
Created May 14, 2014 19:04
Change the URI on line 8 to any LV2 instrument
<?xml version="1.0"?>
<!DOCTYPE lmms-project>
<lmms-project version="1.0" creator="LMMS" creatorversion="1.0.90" type="instrumenttracksettings">
<head/>
<instrumenttracksettings muted="0" type="0" name="Default preset" solo="0">
<instrumenttrack pan="0" fxch="0" pitchrange="1" pitch="0" basenote="57" vol="100">
<instrument name="lovely">
<lovely uri="http://grejppi.github.io/plugins/bytes"/>
</instrument>
<eldata fres="0.5" ftype="0" fcut="14000" fwet="0">
@grejppi
grejppi / build_mingw32
Created April 26, 2014 13:32
slightly modified windows build scripts for lmms
MINGW=/opt/mingw32
export PATH=$PATH:$MINGW/bin
#export CFLAGS="-march=pentium3 -mtune=generic -mpreferred-stack-boundary=5 -fno-tree-vectorize"
export CFLAGS="-march=pentium3 -mtune=generic -mpreferred-stack-boundary=5"
export CXXFLAGS="$CFLAGS"
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/modules/Win32Toolchain.cmake -DCMAKE_MODULE_PATH=`pwd`/../cmake/modules/ -DCMAKE_INSTALL_PREFIX=../target32
@grejppi
grejppi / gist:10791446
Created April 16, 2014 00:07
there's so much wrong with this
#ifdef WTF_BITWIG
LV2_SYMBOL_EXPORT const AEffect* main (audioMasterCallback master) {
return VSTPluginMain (master);
}
#endif
@grejppi
grejppi / client.py
Last active August 29, 2015 13:58
originally a server-client test but it became something that generates POETRY
import sys
import socket
import string
import random
import time
import urllib.request
import json
@grejppi
grejppi / gist:9178616
Last active August 29, 2015 13:56
Testing how a VST plugin written with the VeSTige header behaves in different hosts

This is done when the dispatcher callback gets effMainsChanged

#define DUMP_AEFFECT(A) \
    printf ("\t.magic == %d\n", A->magic); \
    printf ("\t.dispatcher == %p\n", A->dispatcher); \
    printf ("\t.process == %p\n", A->process); \
    printf ("\t.setParameter == %p\n", A->setParameter); \
    printf ("\t.getParameter == %p\n", A->getParameter); \
    printf ("\t.numPrograms == %i\n", A->numPrograms); \