Skip to content

Instantly share code, notes, and snippets.

View Simon-L's full-sized avatar
😠
Leaving Github!

FergusL Simon-L

😠
Leaving Github!
  • Not Microsoft
  • Paris, France
View GitHub Profile
@Simon-L
Simon-L / jelos-builder-script.sh
Created February 12, 2024 14:47
WIP: Bash script to build on Scaleway VPS in one command!
#! /bin/bash
REPO="https://github.com/JustEnoughLinuxOS/distribution"
BRANCH="main"
BUILD_OPTS="EMULATION_DEVICE=no ENABLE_32BIT=no"
BUILD_DEVICE="RK3326"
BUILDER="<VPS ip>"
SSH_OPTS="-o PubkeyAuthentication=yes"
// ReloadSoundUI keeps a map that associates labels used in dsp code
// with pointers to Soundfile zones so that they can be reloaded
// while the DSP is running
class ReloadSoundUI : public SoundUI
{
std::map<std::string, Soundfile**> fSfZoneMap;
public:
ReloadSoundUI(const std::string& sound_directory = "", int sample_rate = -1, SoundfileReader* reader = nullptr, bool is_double = false)
#include <iostream>
#include <fstream>
#include <sstream>
#include <thread>
#include <stdlib.h>
#include <unistd.h>
#include "faust/dsp/llvm-dsp.h"
#include "faust/dsp/libfaust.h"
cmake_minimum_required(VERSION 3.14)
project(faustuserprojectwithllvm)
get_filename_component(MYLIBFAUSTEMBEDDED_ROOT
"${CMAKE_CURRENT_LIST_DIR}/../"
ABSOLUTE)
add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0)
message(/usr/lib/${CMAKE_SYSTEM_PROCESSOR}-linux-gnu/libz3.so)
@Simon-L
Simon-L / rx2tofaust.lua
Created October 11, 2023 13:55
Example usage of revx2.lua to generate Faust file containing the loop samples directly
-- wget https://github.com/rxi/json.lua/raw/master/json.lua
local revx2 = require("revx2")
local inspect = require 'inspect'
local json = require "json"
local wav = require'luawav'
local path = "/path/to/json.json"
local json_file = io.open(path)
local loop = json.decode(json_file:read("*all"))
@Simon-L
Simon-L / CMakeLists.txt
Created July 19, 2023 20:21
Build libfaust with llvm using prebuilt llvm from debian packages
cmake_minimum_required(VERSION 3.14)
project(faustuserprojectwithllvm)
add_executable(faustuserprojectwithllvm main.cpp)
target_compile_features(faustuserprojectwithllvm PRIVATE cxx_std_11)
target_link_libraries(faustuserprojectwithllvm PUBLIC
${PROJECT_SOURCE_DIR}/libfaustwithllvm.a
rt
@Simon-L
Simon-L / build.sh
Created May 3, 2023 11:17
JELOS build DO vm
#! /bin/bash
apt install build-essential docker.io
cd ~
git clone https://github.com/JustEnoughLinuxOS/distribution.git
cd distribution/
# change netbase to 5.6
# adapt flags here
EMULATION_DEVICE=no ENABLE_32BIT=no make docker-AMD64
tar -czvf release.tar.gz release/
diff --git a/src/surge-xt/osc/OSCListener.cpp b/src/surge-xt/osc/OSCListener.cpp
index a209970f..8ed102ce 100644
--- a/src/surge-xt/osc/OSCListener.cpp
+++ b/src/surge-xt/osc/OSCListener.cpp
@@ -128,6 +128,24 @@ void OSCListener::oscMessageReceived(const juce::OSCMessage &message)
#ifdef DEBUG_VERBOSE
std::cout << "Parameter OSC name:" << p->get_osc_name() << " ";
std::cout << "Parameter full name:" << p->get_full_name() << std::endl;
+#endif
+ }
@Simon-L
Simon-L / README.md
Last active April 16, 2023 20:57
Boot LXC ready-to-go arm64 images in QEMU on amd64

⚠️ Quickly put together in April 2023, you're reading a gist, not a community wiki. It's fundamentally hacky, heavily summarized, and might be out-of-date, make sure you're familiar with the concepts before attempting this!

So, for some reason, the arm64 images used in lxc don't run on amd64 qemu by default.

The images are hosted here: https://us.lxd.images.canonical.com/images/
We will go for an ubuntu jammy arm64 image: https://us.lxd.images.canonical.com/images/ubuntu/jammy/arm64/default/20230413_07:43/disk.qcow2
There are plenty to choose from, just make sure to pick the qcow2 file
If you have lxc you can also run: lxc image export images:ubuntu/jammy/arm64 --vm images_ubuntu_arm64

It's a good thing to make a backup of this file as we're going to change it right away.