Skip to content

Instantly share code, notes, and snippets.

#!/bin/python3
import liblo
import time
from signal import signal, SIGINT, SIGTERM
# voir Édition > Préférences > Surfaces de contrôle > Open Sound Control
# le port osc d'ardour (ardour_port) est indiqué après "Connection"
ardour_port = 3820
# le port de notre script (local_port) n'a pas d'importance si
ardour {
["type"] = "EditorHook",
name = "Automation to OSC"
}
function signals ()
return LuaSignal.Set():add ({[LuaSignal.LuaTimerS] = true})
end
function factory ()
@jean-emmanuel
jean-emmanuel / encode.sh
Created March 11, 2020 16:58 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
#/bin/sh
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
[
{
"id": "",
"label": "Unnamed",
"widgets": [
{
"type": "fader",
"id": "test",
"linkId": "",
"label": "Fader",
  • main
  • ui
    • new /TABS id1 id2 etc osc address to remotely enable tabs
    • remote editing through /EXEC command is now deprecated, use /EDIT and /EDIT_SOFT instead
  • bug fixes
    • push widgets (and keyboards) not correctly synchronizing each other (with shared widget ids or between different clients)
    • modal: correct z-stacking with absolutely positionned widgets; proper rendering for inner widgets; disable parent tab's scrolling when opened; fix various style glitches;
    • strip: resize glitch when containing compact horizontal sliders
  • tab links broken after activating traversing gestures
@jean-emmanuel
jean-emmanuel / switchers.js
Created January 3, 2017 17:42
test sessions for open stage control (new switchers widgets)
[
{
"label": "Switcher / Crossfader",
"widgets": [
{
"type": "switcher",
"id": "switcher_1",
"label": "^sliders Switcher",
"left": "auto",
"top": "auto",
@jean-emmanuel
jean-emmanuel / test.md
Last active December 9, 2016 13:33
Open Stage Control - performance test against vsync

Abstract

Disabling chromium vsync seems to have a big positive impact on perceived perfomances (aka input lag) in Open Stage Control.

I'd like to verify that.

Requirement

Having chromium v49+ installed

echo ".dump" | sqlite3 old.sqlite | sqlite3 new.sqlite