Skip to content

Instantly share code, notes, and snippets.

JP Cimalando jpcima

View GitHub Profile
View ir.lv2-offset.diff
diff --git a/ir.cc b/ir.cc
index b279af7..7ef8b19 100644
--- a/ir.cc
+++ b/ir.cc
@@ -231,6 +231,7 @@ static int load_sndfile(IR * ir) {
int length = 0;
int offset = 0;
+ int start = 0;
float * buff;
View range_element.hpp
// SPDX-License-Identifier: BSD-2-Clause
// This code is part of the sfizz library and is licensed under a BSD 2-clause
// license. You should have receive a LICENSE.md file along with the code.
// If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz
#pragma once
#include <elements.hpp>
#include <infra/support.hpp>
namespace el = cycfi::elements;
View sfizz.ttl
@prefix atom: <http://lv2plug.in/ns/ext/atom#> .
@prefix bufsize: <http://lv2plug.in/ns/ext/buf-size#> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix midi: <http://lv2plug.in/ns/ext/midi#> .
@prefix opts: <http://lv2plug.in/ns/ext/options#> .
@prefix param: <http://lv2plug.in/ns/ext/parameters#> .
@prefix patch: <http://lv2plug.in/ns/ext/patch#> .
@prefix pg: <http://lv2plug.in/ns/ext/port-groups#> .
View elements-double-buffer.diff
diff --git a/lib/src/view.cpp b/lib/src/view.cpp
index 1443bfa..da77160 100644
--- a/lib/src/view.cpp
+++ b/lib/src/view.cpp
@@ -67,13 +67,6 @@
_dirty = dirty_;
- // Update the limits and constrain the window size to the limits
- if (set_limits())
View pugl-double-buffer.diff
diff --git a/pugl/detail/x11_cairo.c b/pugl/detail/x11_cairo.c
index 0112c4e..b70715b 100644
--- a/pugl/detail/x11_cairo.c
+++ b/pugl/detail/x11_cairo.c
@@ -52,21 +52,35 @@ puglX11CairoOpen(PuglView* view)
{
PuglInternals* const impl = view->impl;
PuglX11CairoSurface* const surface = (PuglX11CairoSurface*)impl->surface;
+ int width = (int)view->frame.width;
+ int height = (int)view->frame.height;
View riemann.cpp
/**
Compile: g++ -O2 -g -o riemann riemann.cpp
Run: ./riemann 1.1 | tee riemann.dat
(try values between 1 and 2)
Gnuplot: plot "riemann.dat" u 1:2 w lines
*/
#include <complex>
View OpcodeFixer.cpp
/* -*- mode: c++; -*- */
#include "absl/strings/string_view.h"
#include "absl/strings/str_cat.h"
#include <string>
#include <cstdint>
enum OpcodeFixScope {
kOpcodeFixGeneric,
kOpcodeFixRegion,
};
View PKGBUILD
# Maintainer: jujudusud <jujudusud gmail com>
pkgname=freemajor
_pkgname=FreeMajor
pkgver=1.0
pkgrel=1
pkgdesc="TC Electronic G-Major editor"
arch=('x86_64')
url='https://github.com/linuxmao-org/FreeMajor/'
license=('Boost')
View printmidnam.diff
diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp
index 0870905f..6135ae9a 100644
--- a/src/sfizz/Synth.cpp
+++ b/src/sfizz/Synth.cpp
@@ -901,6 +901,9 @@ std::string sfz::Synth::exportMidnam(absl::string_view model) const
///
string_writer writer;
doc.save(writer);
+fprintf(stderr, "===== MIDNAM export\n");
+fprintf(stderr, "%s\n", writer.result.c_str());
View RTSemaphore.cpp
// Copyright Jean Pierre Cimalando 2018-2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "RTSemaphore.h"
#include <limits.h>
#include <stdexcept>
#include <cerrno>
You can’t perform that action at this time.