Skip to content

Instantly share code, notes, and snippets.

View chao-mu's full-sized avatar
💭
Certifiably not a cabbage

Autumn Green chao-mu

💭
Certifiably not a cabbage
View GitHub Profile
------------------
System Information
------------------
Time of this report: 5/23/2020, 17:17:12
Machine name: DESKTOP-S4HBL4G
Machine Id: {05EB11EA-0A87-42ED-9B23-1AC548554F06}
Operating System: Windows 10 Home 64-bit (10.0, Build 18363) (18362.19h1_release.190318-1202)
Language: English (Regional Setting: English)
System Manufacturer: Notebook
System Model: P7xxTM1
@chao-mu
chao-mu / syntheffect_app_RecordingThread.cpp
Created January 5, 2019 07:31
Recording video in openframeworks, turning an ofFbo -> ofPixels -> AVFrame
#include "syntheffect/app/RecordingThread.h"
#include <stdexcept>
#include "ofThread.h"
namespace syntheffect {
namespace app {
void RecordingThread::setup(const std::string path, int width, int height, int fps) {
recorder_ = std::make_unique<video::Recorder>(path, width, height, fps);
@chao-mu
chao-mu / rack.yml
Created October 21, 2018 21:01
Audio reactive patch
audio:
module: "audio_analyzer"
path: "../../assets/audio/Environmental Encroachment - Taderra.mp3"
inputs:
600hzGain: 10
3khzGain: 100
1-3khzGain: 100
wave1:
module: "osc"
@chao-mu
chao-mu / subs.py
Last active February 16, 2017 00:33
Substitute L for i if doing so corrects the word
#!/usr/bin/env python3
def sub(s):
return s.replace("i", "l")
corpus = ["some", "words", "like", "dike"]
bad_to_good = {}
good = {}
for w in corpus: