Skip to content

Instantly share code, notes, and snippets.

View turbo's full-sized avatar

Pierre turbo

View GitHub Profile

This is an image:

IMG_3004

@turbo
turbo / nrpn.md
Last active July 13, 2022 09:47
Send coarse NRPN messages from TouchOSC

General Approach

For synths that use CC-over-NRPN (like the Circuit Tracks), assembling NRPN messages is pretty simple in a script:

function sendNRPN(ch, MSB, LSB, val)
  -- nrpn address msb
  sendMIDI({ 176 + ch - 1, 99, MSB })
  -- nrpn address lsb 
 sendMIDI({ 176 + ch - 1, 98, LSB }) 

Keybase proof

I hereby claim:

  • I am turbo on github.
  • I am summarity (https://keybase.io/summarity) on keybase.
  • I have a public key ASC5Q6LSQZZbPDrDDBF50nd843R0xlR60h5vD3lyHqFgkAo

To claim this, I am signing this object:

import { createContext } from './hotkeys';
const c = createContext();
// Alerts when "no way" is typed in.
c.register('n o space w a y', () => {
alert('Yes way!');
});
/*
@turbo
turbo / hotkeys.js
Created May 15, 2020 13:47 — forked from abuduba/hotkeys.js
Hotkey library
const isEqual = (a, b) => {
const aKeys = Object.keys(a);
if (aKeys.length !== Object.keys(b).length) {
return false;
}
return aKeys.every(
(k) => Object.prototype.hasOwnProperty.call(b, k)
&& a[k] === b[k],
@turbo
turbo / brio.md
Last active January 18, 2023 16:24
Recording 4k 4:2:2 from Brio 4k In Linux using FFMpeg

Turn auto-exposure off, set absolute exposure to a low level and use gain to compensate for low light if needed. E.g.:

v4l2-ctl -d /dev/video2 -c exposure_absolute=400
v4l2-ctl -d /dev/video2 -c gain=110

# check with
v4l2-ctl -d /dev/video2 -L
XS-1X: &xs-1x
limits:
memory: "490Mi"
cpu: "240m"
requests:
memory: "490Mi"
cpu: "240m"
XS-2X: &xs-2x
limits:
; vi: ft=clojure
; THIS IS A Fennel SOURCE FILE (.fnl) !NOT! clojure!
; you need to use luajit to run this, after using fennel --compile
; install lapis and turbo from luarocks
; When running with Fennel directly, you need to --globals all used HTML tags
(local turbo (require "turbo"))
(local render_html (. (assert (require "lapis.html")) :render_html))