Skip to content

Instantly share code, notes, and snippets.

View jpcima's full-sized avatar

JP Cimalando jpcima

View GitHub Profile
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 / bin2wav.cc
Last active March 12, 2019 22:08
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>
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 / fmidiplay-1304-debug-28-05-2019-16-35-45.report
Created May 28, 2019 16:37
fmidiplay-1304-debug-28-05-2019-16-35-45.report
Debug information for team /boot/home/Desktop/midiplay/fmidiplay (1304):
CPU(s): 2x AMD Ryzen 7
Memory: 1022.85 MiB total, 282.38 MiB used
Haiku revision: hrev53167 May 26 2019 19:04:45 (x86_64)
Active Threads:
thread 1305: team 1304 debug task
thread 1304: fmidiplay (main)
state: Exception (Segment violation)
@jpcima
jpcima / fmidiplay-1941-debug-28-05-2019-17-20-43.report.1
Created May 28, 2019 18:22
fmidiplay-1941-debug-28-05-2019-17-20-43.report.1
Debug information for team /boot/home/Desktop/midiplay/fmidiplay (1941):
CPU(s): 2x AMD Ryzen 7
Memory: 1022.85 MiB total, 315.84 MiB used
Haiku revision: hrev53167 May 26 2019 19:04:45 (x86_64)
Active Threads:
thread 1942: team 1941 debug task
thread 1941: fmidiplay (main)
state: Exception (Segment violation)
Haiku shredder 1 hrev53167 May 26 2019 19:04:45 x86_64 x86_64 Haiku
gcc version 8.3.0 (2019_05_24)
### Linker error notes ###
## Reduced test case with c++ program
hello.cc
--------------------------------------------------------
#include <iostream>
#include <dssi.h>
#include <dlfcn.h>
#include <stdio.h>
int main()
{
void *dlh = dlopen("/usr/lib/dssi/amsynth_dssi.so", RTLD_LAZY);
if (!dlh)
return 1;
diff -ru naspro-bridges-0.5.1.orig/dssi/plugin.c naspro-bridges-0.5.1/dssi/plugin.c
--- naspro-bridges-0.5.1.orig/dssi/plugin.c 2014-02-06 00:24:32.000000000 +0100
+++ naspro-bridges-0.5.1/dssi/plugin.c 2019-05-29 21:14:27.972507091 +0200
@@ -245,7 +245,7 @@
/* Let's try to steal MIDI programs as presets... */
instance = desc->LADSPA_Plugin->instantiate(desc->LADSPA_Plugin,
- 480000);
+ 48000);
if (instance == NULL)
diff --git a/common/Spectrogram.cpp b/common/Spectrogram.cpp
index a4a663a..92ac259 100644
--- a/common/Spectrogram.cpp
+++ b/common/Spectrogram.cpp
@@ -172,7 +172,7 @@ void Spectrogram::onDisplay() {
fNanoText->fontSize ( 16 );
fNanoText->textAlign ( NanoVG::ALIGN_RIGHT | NanoVG::ALIGN_MIDDLE );
- for ( int i = 0 ; i < 6 ; i++ ) {
+ for ( int i = 0 ; i < 5 ; i++ ) {
############
# freeadsp #
############
0.6.0
-----
Rewritten from scratch.
###########
# lv2proc #