Skip to content

Instantly share code, notes, and snippets.

JP Cimalando jpcima

View GitHub Profile
View nuked-drums.diff
diff --git a/BambooTracker/chips/nuked/ym3438.c b/BambooTracker/chips/nuked/ym3438.c
index 6f4d427..6739c44 100644
--- a/BambooTracker/chips/nuked/ym3438.c
+++ b/BambooTracker/chips/nuked/ym3438.c
@@ -474,7 +474,11 @@ void OPN2_DoRegWrite(ym3438_t *chip)
for (i = 0; i < 6; ++i)
{
if (chip->write_data & (1 << i))
+ {
chip->rhythm_key[i] = 0;
@jpcima
jpcima / bin2wav.cc
Last active Mar 12, 2019
bin2wav.cc
View bin2wav.cc
/*
Convertir fichier binaire en fichier WAVE.
Construction : g++ -O2 -g -o bin2wav bin2wav.cc -lsndfile
*/
#include <sndfile.hh>
#include <getopt.h>
#include <stdlib.h>
View opal-ksl.diff
diff --git a/src/chips/opal/opal.hpp b/src/chips/opal/opal.hpp
index f554920..590f38d 100644
--- a/src/chips/opal/opal.hpp
+++ b/src/chips/opal/opal.hpp
@@ -1237,12 +1237,8 @@ void Opal::Operator::SetFrequencyMultiplier(uint16_t scale) {
//==================================================================================================
void Opal::Operator::SetKeyScale(uint16_t scale) {
- if (scale > 0)
- KeyScaleShift = 3 - scale;
@jpcima
jpcima / opal-pan.diff
Created Feb 23, 2019
Soft panning for Opal OPL3
View opal-pan.diff
--- 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 */
View ADLMIDI.txt
------------------------------------------------------------
Title:
------------------------------------------------------------
ADLMIDI Player
------------------------------------------------------------
Short description:
------------------------------------------------------------
A simple OPL3 Synth based MIDI Player with use of libADLMIDI
View OPNMIDI.txt
------------------------------------------------------------
Title:
------------------------------------------------------------
OPNMIDI Player
------------------------------------------------------------
Short description:
------------------------------------------------------------
A simple OPN2 and OPNA Synth based MIDI Player with use of libOPNMIDI
View 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>
View gist:ae0672394383627850a40ec4c5902aca
==== 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 / log.txt
Created Feb 11, 2019
Arpeggio logging `opnmidiplay --emu-mame --chips 8 YM2612.wopn Ring.mid`
View log.txt
- 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
View xg-gs-sc-gm.cc
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"},
You can’t perform that action at this time.