Skip to content

Instantly share code, notes, and snippets.

View falkTX's full-sized avatar

Filipe Coelho falkTX

View GitHub Profile
@falkTX
falkTX / BufferedDSP.hpp
Last active August 16, 2023 17:01
Buffered DSP for neural-amp-modeler-lv2
/*
* Buffered DSP
* Copyright (C) 2022-2023 Filipe Coelho <falktx@falktx.com>
* SPDX-License-Identifier: ISC
*/
#pragma once
#include "NAM/dsp.h"
diff -U3 -r JUCEorig/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp JUCE/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp
--- JUCEorig/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp 2021-03-06 12:11:12.667272479 +0000
+++ JUCE/modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp 2021-03-01 10:17:25.278859333 +0000
@@ -842,6 +842,26 @@
return out.getMemoryBlock();
}
};
+
+ //==============================================================================
+ struct Clm_Chunk
#include <stdio.h>
#include <stdint.h>
#include <time.h>
static inline
uint64_t getCycles(void)
{
#if defined(__ARM_ARCH_7A__)
uint32_t r;
char* getState() const override
{
char* data = nullptr;
fMiddleWare->doReadOnlyOp([]{
fMaster->getalldata(&data);
});
return data;
}
diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h
index c94d3a6..dd47d98 100644
--- a/modules/juce_core/native/juce_posix_SharedCode.h
+++ b/modules/juce_core/native/juce_posix_SharedCode.h
@@ -596,12 +596,38 @@ File juce_getExecutableFile()
{
Dl_info exeInfo;
dladdr ((void*) juce_getExecutableFile, &exeInfo);
- return CharPointer_UTF8 (exeInfo.dli_fname);
+ const CharPointer_UTF8 filename (exeInfo.dli_fname);
// ------------------------------------------------------------------------------------------------------
// State
template<class FeatureStruct>
struct Feature
{
// pointer to feature struct
const FeatureStruct* self;
@falkTX
falkTX / gist:2da8087fd8dc3dd1380b
Created February 18, 2015 21:48
eg-midigate c++
#include "lv2.hpp"
class EG_MidiGate : public LV2::Plugin,
private LV2::URID_Map
{
public:
EG_MidiGate(double sampleRate, const char* bundlePath, const LV2_Feature* const* features)
: LV2::Plugin(sampleRate, bundlePath, features),
LV2::URID_Map(features),
@falkTX
falkTX / gist:45f8c2f441bc37848583
Last active August 29, 2015 14:15
eg-amp c++
#include "lv2.hpp"
#include <cmath> // for std::pow
// #define AMP_URI "http://lv2plug.in/plugins/eg-amp"
/** Define a macro for converting a gain in dB to a coefficient. */
#define DB_CO(g) ((g) > -90.0f ? std::pow(10.0f, (g) * 0.05f) : 0.0f)
--- lmms-1.1.0~rc9+git20141216.orig/plugins/carlabase/carla.cpp
+++ lmms-1.1.0~rc9+git20141216/plugins/carlabase/carla.cpp
@@ -251,16 +251,16 @@ intptr_t CarlaInstrument::handleDispatch
switch (opcode)
{
- case HOST_OPCODE_NULL:
+ case NATIVE_HOST_OPCODE_NULL:
break;
- case HOST_OPCODE_UPDATE_PARAMETER: