Skip to content

Instantly share code, notes, and snippets.

@RH2
RH2 / quantize_island_5.py
Created September 6, 2026 19:24
Quantize selected islands (center or corner oriented) uses image dimensions of active image. blender 4.2. Fo dat
# PIXEL PERFECT? EZ. FIND IT IN UV EDITOR WINDOW / UV / QUANTIZE
import bpy
import bmesh
from bpy.types import Operator
from bpy.props import EnumProperty
VERSION = "v5.0"
class MESH_OT_quantize_uv_island_pixel(Operator):
import bpy
import mathutils
from mathutils import Vector
import math
bl_info = {
"name": "Spiral Along Curve",
"author": "?",
"version": (1, 0, 0),
"blender": (3, 0, 0),
@RH2
RH2 / abstract piano + gm_electric_guitar_jazz
Created January 9, 2026 09:29
thursday 2am strudel.cc
// @title ff chords
// @by mestela
// @DNB remix by Switch Angel
// define chords like Cm11/F as Cm11:F
let chart = "< D13:D1 Am9:A1 E9sus:E1 G2:B1 >"
$drums: stack(
// s("sequentialcircuitstom_bd:1").beat("0,7?,10",8).duck("3:4:5"),
s("yamahatg33_bd:1").beat("1",2),
// @title ff chords
// @by mestela
// @DNB remix by Switch Angel
setcpm(50/4)
// define chords like Cm11/F as Cm11:F
let chart = "< D13:D1 Am9:A1 E9sus:E1 G2:B1 >"
// $drums: stack(
// s("bd:1").beat("0,7?,10",4).duck("3:4:5"),
@RH2
RH2 / 4.js
Created October 23, 2025 08:10
strudel_day 1 #3
setCpm(174/4) // ~170 BPM for liquid DnB
$drums2: stack(
s("bd:1").beat("0,7?,10",16).duck("3:4:5"),
s("sd:2").beat("[4,12] [1,2,3,4,5,6,7,8,9,10]?.9 [4,12,14]",16),
s("hh:4!8")
).orbit(2)
.gain(0.5)
.delay(0.08)
.color("[#c3e88d #c3e8dd #c3e8ee #c3e8ff]")
._pianoroll()
@RH2
RH2 / 3.js
Created October 23, 2025 07:02
strudel_dat 1 #3
setCpm(174/4) // ~170 BPM for liquid DnB
$drums2: stack(
s("bd:1").beat("0,7?,10",16).duck("3:4:5"),
s("sd:2").beat("[4,12] [1,2,3,4,5,6,7,8,9,10]?.9 [4,12,14]",16),
s("hh:4!8")
).orbit(2)
.gain(0.25)
.delay(0.08)
.color("[#c3e88d #c3e8dd #c3e8ee #c3e8ff]")
._pianoroll()
@RH2
RH2 / 2
Created October 23, 2025 03:41
strudel_day 1 ... #2
setCpm(155/4)
$drums: stack(
// s("bd:1").beat("0,7?,10",16).duck("3:4:5"),
s("sd:2").beat("4,12",16),
s("hh:4!4")
).orbit(2)
.gain(0.4)
.delay(0.05)
._scope()
@RH2
RH2 / 1
Created October 23, 2025 00:54
strudel_ day 1
register('rlpf', (x,pat) => {return pat.lpf(pure(x).mul(12).pow(4))})
setGainCurve(x=>Math.pow(x,2))
setCpm(170/4)
$drums: stack(
s("bd:1").beat("0,7?,10",16).duck("3:4:5"),
s("sd:2").beat("4,12",16),
s("hh:4!4")
).orbit(2)
.gain(1.1)
@RH2
RH2 / armaturecache.py
Created September 21, 2025 08:19
json armature cache (restore head/tail/roll)
import bpy
import json
import os
bl_info = {
"name": "Armature Cache SAVE/Restore",
"blender": (3, 0, 0),
"category": "Object",
}
@RH2
RH2 / code.c
Created June 20, 2025 20:16
FIFO game rotation lsm6dsv32x
#include "lsm6dsv32x_reg.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
/* Private macro -------------------------------------------------------------*/
/*
* Select FIFO samples watermark, max value is 512
* in FIFO are stored acc, gyro and timestamp samples
*/