Skip to content

Instantly share code, notes, and snippets.

View jpcima's full-sized avatar

JP Cimalando jpcima

View GitHub Profile
@jpcima
jpcima / dragonfly-reverb-system-libsamplerate.diff
Created January 4, 2019 17:21
Dragonfly Reverb patch for system libsamplerate
diff --git a/freeverb3/Makefile b/freeverb3/Makefile
index 9477246..2ce8e1e 100644
--- a/freeverb3/Makefile
+++ b/freeverb3/Makefile
@@ -1,12 +1,6 @@
include Makefile.mk
OBJS_FV3 = \
- samplerate.c.o \
- samplerate_common.c.o \
@jpcima
jpcima / dlopen.c
Created January 13, 2019 00:25
Testeur de chargement de greffon
/*
** Construction
gcc -g -o dlopen dlopen.c -ldl
** Utilisation
./dlopen /chemin/fichier.so
*/
#include <dlfcn.h>
#include <stdio.h>
@jpcima
jpcima / libsmf-test-case.cc
Created January 29, 2019 06:14
libsmf test case
#include "smf.h"
#include <stdio.h>
int main(int argc, char *argv[])
{
if (argc != 2)
return 1;
smf_t *smf = smf_load(argv[1]);
if (!smf) {
@jpcima
jpcima / xg-gs-sc-gm.cc
Created February 3, 2019 17:56
xg-gs-sc-gm
This file has been truncated, but you can view the full file.
const MidiProgram xg_set[] =
{
{'M', 0, 1, 0, "XG #001 Key Scale Panning", "GrndPnoK"},
{'M', 0, 1, 1, "XG #001 Key Scale Panning", "BritPnoK"},
{'M', 0, 1, 2, "XG #001 Key Scale Panning", "ElGrPnoK"},
{'M', 0, 1, 3, "XG #001 Key Scale Panning", "HnkyTnkK"},
{'M', 0, 1, 4, "XG #001 Key Scale Panning", "El.Pno1K"},
{'M', 0, 1, 5, "XG #001 Key Scale Panning", "El.Pno2K"},
{'M', 0, 1, 6, "XG #001 Key Scale Panning", "Harpsi.K"},
{'M', 0, 1, 7, "XG #001 Key Scale Panning", "Clavi.K"},
@jpcima
jpcima / log.txt
Created February 11, 2019 12:57
Arpeggio logging `opnmidiplay --emu-mame --chips 8 YM2612.wopn Ring.mid`
- Audio wanted (samples=3528,rate=44100,channels=2);
- Audio obtained (samples=1764,rate=44100,channels=2)
==== Arpeggio situation 000 ====================================================
CC 01 : 1 : +
CC 02 : 1 : + Hold:1
CC 03 : 1 : + Hold:1
CC 04 : 1 : + Hold:1
CC 05 : 1 : + Hold:1
CC 06 : 1 : + Hold:1
==== Arpeggio situation 3212 ====================================================
CC 01 : 1 : + Hold:1 (S04:56)
CC 02 : 1 : + Hold:1 (S04:58)
CC 03 : 1 : + Hold:1 (S04:51)
CC 04 : 1 : + (01:72)
CC 05 : 1 : + Hold:1 (S04:63)
CC 06 : 1 : + Hold:1 (S04:58)
CC 07 : 1 : + Hold:1 (S04:58)
CC 08 : 1 : + Hold:1 (S04:58)
CC 09 : 0 :
@jpcima
jpcima / strings.xml
Created February 22, 2019 22:47
strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Lecteur ADLMIDI</string>
<!-- For OPNMIDI -->
<!-- <string name="app_name">Lecteur OPN2 MIDI</string> -->
<string name="adlibdrums">Mode percussions AdLib</string>
<string name="bankNo">Banque de timbres</string>
<string name="htremolo">Trémolo augmenté</string>
@jpcima
jpcima / OPNMIDI.txt
Created February 22, 2019 23:22
OPNMIDI.txt
------------------------------------------------------------
Title:
------------------------------------------------------------
OPNMIDI Player
------------------------------------------------------------
Short description:
------------------------------------------------------------
A simple OPN2 and OPNA Synth based MIDI Player with use of libOPNMIDI
@jpcima
jpcima / ADLMIDI.txt
Created February 22, 2019 23:33
ADLMIDI.txt
------------------------------------------------------------
Title:
------------------------------------------------------------
ADLMIDI Player
------------------------------------------------------------
Short description:
------------------------------------------------------------
A simple OPL3 Synth based MIDI Player with use of libADLMIDI
@jpcima
jpcima / opal-pan.diff
Created February 23, 2019 19:34
Soft panning for Opal OPL3
--- src/chips/opal/opal.cpp.orig 2019-02-23 20:32:00.477658789 +0100
+++ src/chips/opal/opal.cpp 2019-02-23 20:31:38.685179092 +0100
@@ -13,6 +13,7 @@
- Percussion mode
*/
+#define OPAL_HAVE_SOFT_PANNING 1 /* libADLMIDI */