Skip to content

Instantly share code, notes, and snippets.

View ryukau's full-sized avatar

ryukau

View GitHub Profile
@ryukau
ryukau / cairographicscontext.patch
Created January 9, 2025 05:58
cairographicscontext.patch
diff --git a/vstgui/lib/platform/linux/cairographicscontext.cpp b/vstgui/lib/platform/linux/cairographicscontext.cpp
index ab620cc9..90ea018e 100644
--- a/vstgui/lib/platform/linux/cairographicscontext.cpp
+++ b/vstgui/lib/platform/linux/cairographicscontext.cpp
@@ -43,6 +43,20 @@ inline cairo_matrix_t convert (const TransformMatrix& ct)
struct CairoGraphicsDeviceFactory::Impl
{
std::vector<std::shared_ptr<CairoGraphicsDevice>> devices;
+ Impl() = default;
+ ~Impl() noexcept
"""
A pitch correction proposal for integer sample period oscillator.
Reference: https://github.com/ryukau/VSTPlugins/issues/52
"""
import numpy as np
import matplotlib.pyplot as plt
import scipy.signal as signal
import soundfile
@ryukau
ryukau / dien-worlds_1.0.3_ja.md
Created May 17, 2023 12:05
ĐiệnWorlds 1.0.3 のマニュアルの日本語訳
"""
# Usage
Prepare some wav file to fade-out. The point of cut is better not to be already faded-out.
Change variables:
- `filename` to set input file path.
- `duration` to set fade-out length in seconds.
Result will be written into `snd` directory.
@ryukau
ryukau / half_band.py
Last active February 26, 2021 01:57
Python 3 translation of half_band.py: https://github.com/robwasab/HalfBand
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import numpy as np
import pdb
import json
pi = np.pi
sqrt = np.sqrt
tan = np.tan
sin = np.sin

There are 2 things to build.

  1. FFTW3
  2. VST plugins

Preparation

Following tools are required:

  • CMake
  • Git
// This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "cairocontext.h"
#include "../../cbitmap.h"
#include "cairobitmap.h"
#include "cairogradient.h"
#include "cairopath.h"