Skip to content

Instantly share code, notes, and snippets.

View eodowd's full-sized avatar

samplesonics.com eodowd

View GitHub Profile
@eodowd
eodowd / main.py
Last active February 19, 2022 00:46
dsconverter without GUI
import xml.etree.ElementTree as ET
import os
import sys
#first argument is the filename of the dspreset
#you can run this program with: python main.py example.dspreset
filename=sys.argv[1]
header = """
<control>
default_path= // relative path of your samples
<global>
@eodowd
eodowd / main.py
Created February 14, 2022 21:56
A simple python script to convert TX16wx configured maps to decent sampler format
import xml.etree.ElementTree as ET
tree = ET.parse('mk2_.xml')##the name of the document you want to convert
root = tree.getroot()
ns = {'tx': 'http://www.tx16wx.com/3.0/program'}
for i in range(1, 127):
for name in root.iterfind('tx:group['+str(i)+']', ns):
for i in range(1, 127):
for names in name.iterfind('tx:region['+str(i)+']',ns):
@eodowd
eodowd / app.py
Created February 3, 2020 02:29
flask and webkit tested on Catalina macos
from flask import Flask, render_template
import webview
import sys
import threading
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template("index.html")
@eodowd
eodowd / lug.scad
Created July 29, 2019 12:49
openscad bicycle lug example
$fn = 100;
difference(){
rotate([0,90,0])cylinder(h = 60, r1 = 20, r2 = 20, center = true);
rotate([0,90,0])cylinder(h = 60, r1 = 18, r2 = 18, center = true);
rotate([60,0,0])cylinder(h = 30, r1 = 12, r2 = 12, center = false);
rotate([0,0,0])cylinder(h = 30, r1 = 12, r2 = 12, center = false);
translate([-20,0,0])rotate([-60,0,0])cylinder(h = 30, r1 = 8, r2 = 8, center = false);
translate([20,0,0])rotate([-60,0,0])cylinder(h = 30, r1 = 8, r2 = 8, center = false);
@eodowd
eodowd / processing3
Created February 1, 2019 02:02
processing3 3d sphere movie - texture
import processing.video.Movie;
PShape globe;
float rotx = PI/4;
float roty = PI/4;
Movie vid;
void setup() {
size(1920, 1080, P3D);
vid = new Movie(this, "test.mp4");
vid.loop();
@eodowd
eodowd / 360.txt
Created January 31, 2019 15:54
360 video processing 3
import processing.video.Movie;
PShape globe;
float rotx = PI/4;
float roty = PI/4;
Movie vid;
void setup() {
size(640, 360, P3D);
vid = new Movie(this, "fart.mp4");
vid.loop();
@eodowd
eodowd / processing3.txt
Created January 30, 2019 06:06
Processing 3 video as texture example on mouse driven cube
import processing.video.*;
PImage tex;
float rotx = PI/4;
float roty = PI/4;
Movie myMovie;
void setup() {
size(640, 360, P3D);
myMovie = new Movie(this, "overpass-clip.mp4");
myMovie.loop();
@eodowd
eodowd / barcode-gen-web.html
Created January 14, 2019 10:40
Barcode gen for the web
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Barcode gen</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://cdn.jsdelivr.net/jsbarcode/3.6.0/JsBarcode.all.min.js"></script>
<style>