- Clone the example
pd-lib-builder
project to Bela:
git clone --recursive https://github.com/pure-data/helloworld.git
- Follow the instructions in the repository (and perhaps build the test project to familiarise yourself).
#include <Bela.h> | |
AuxiliaryTask myTask; | |
void myTaskProcess (void*); | |
bool setup(BelaContext *context, void *userData) | |
{ | |
myTask = Bela_createAuxiliaryTask(myTaskProcess, 50, "bela-task"); | |
return true; | |
} |
import numpy as np | |
from tolvera import Tolvera, run | |
from tolvera.osc.update import Updater | |
from tolvera.utils import map_range | |
from signalflow import * | |
class Sine(Patch): | |
def __init__(self, freq=880, gain=1.0, pan=0.0): | |
super().__init__() | |
freq = self.add_input("freq", freq) |
:{ | |
let bwAddress = "127.0.0.1" | |
bwPort = 8000 | |
bwLatency = 0.02 | |
bwPreamble = [] | |
bwTimestamp = BundleStamp | |
:} | |
-- TEMPO | |
:{ |
-- https://tidalcycles.org/index.php/Custom_OSC | |
:set -XOverloadedStrings | |
:set prompt "" | |
:set prompt-cont "" | |
import Sound.Tidal.Context | |
superDirt <- startTidal (superdirtTarget {oLatency = 0.1, oAddress = "127.0.0.1", oPort = 57120}) (defaultConfig {cFrameTimespan = 1/20}) |
import json | |
import argparse | |
def load_json(name): | |
with open(name) as f: | |
data = json.load(f) | |
return data | |
def make_tidal_map(cc_dict, prefix): | |
tidal_map = [] |
pd-lib-builder
project to Bela:git clone --recursive https://github.com/pure-data/helloworld.git
import xml.etree.ElementTree as ET | |
import os | |
from os.path import join | |
import io | |
# 1. Extract Docs and .scrivx from Scrivener using 'Open Package Contents' | |
# 2. Convert Docs from .rtf to .txt using GNU unrtf and put .txt files in folder called txt | |
# 3. Run script | |
dir = 'path/to/scriv' |
// see tidal example: https://github.com/ojack/hydra-examples | |
p1.remove() | |
p1 = new P5() | |
p1.pixelDensity(1) | |
msg.setPort(3333) | |
tidalHistory = 128 | |
tidal = [] | |
sounds = {'s':[], 'c':[]} |
import taichi as ti | |
import cv2 as cv | |
cap = cv.VideoCapture(0) | |
if not cap.isOpened(): | |
print("Cannot open camera") | |
exit() | |
ti.init(arch=ti.vulkan) | |
x,y = 1920,1080 |