Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vanjac
vanjac / instinct.bmtp
Created February 2, 2022 01:53
Aodix MIDI translator mappings for Hercules Instinct
[Project]
Version=1
[Preset.0]
Name=Aodix
Active=1
Name0=Volume Up
Incoming0=MID190417F
Outgoing0=KAM10100KSQ100021AF3AF
Options0=Actv01Stop00OutO00
@vanjac
vanjac / midi_control.py
Created January 21, 2020 11:23
Blender MIDI control add-on
bl_info = {
"name": "MIDI Control",
"author": "Jacob van't Hoog",
"version": (1, 0),
"blender": (2, 80, 0),
"category": "User Interface",
}
import pygame.midi
import bpy
@vanjac
vanjac / karabiner_example.json
Last active July 20, 2019 08:37
Karabiner example rule
{
"title": "1 Example rule set",
"rules": [
{
"description": "Press A to Save As",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "a"
import wave
import sys
import os
import array
if len(sys.argv) != 2:
print("please specify the name of the folder")
exit()
FILE_PATH = sys.argv[1]
@vanjac
vanjac / gist:432fc839cc04d6e1d0eae3a33bfa4db6
Created March 22, 2019 20:10
DECTalk sings Don't Stop Me Now
[:rate 160] [:dv ri 100 sm 0 nf 70] [:phoneme on]
[tuw<300,20>nay<900,18>t ay<300,18>m gah<300,18>nah<300,22> hxae<300,25>v may<300,30>seh<1500,29>lf ah<300,25> riy<250,22>l guh<450,20>d tay<900,18>m _<350>]
[ay<450,22> _<100> fiy<150,20>l ah<150,18>lay<900,20>ay<600,22>ay<600,23>ay<1800,25>v _<300>]
[ae<300,27>nd dhah<200,29> wrr<2100,30>ld _<100> ay<250,25>lx trr<550,34>n ih<250,35>t ih<600,34>nsay<600,32>d aw<1200,30>t yxae<300,27> _<700>]
[ae<250,27>nd flow<250,34>tih<250,34>nx ah<250,35>rxaw<800,34>nd _<300> ih<300,32>n eh<350,31>kstah<350,32>siy<400,34>]
[:rate 400]
[sow<600,27> dow<150,35>nt _<650> staa<150,34>p _<350> miy<150,32> _<450> naw<2000,23> _<700> dow<150,35>nt _<650> staa<150,34>p _<350> miy<300,32>]
[kah<200,32>z ay<200,32>m hxae<150,23>vih<150,23>nx ah<150,23> guh<300,25>d tay<300,27>m _<300> hxae<150,29>vih<150,29>nx ah<150,29> guh<300,30>d tay<150,32>m]
@vanjac
vanjac / test.grip
Created January 18, 2017 22:33
GRIP incorrect file
<edu.wpi.grip.core.Pipeline>
<sources>
<edu.wpi.grip.core.sources.ImageFileSource>
<property name="path" value="C:\Users\Tad\Desktop\FRC2605\2017VisionExample\Vision Images\LED Peg\1ftH3ftD0Angle0Brightness.jpg"/>
</edu.wpi.grip.core.sources.ImageFileSource>
</sources>
<steps>
<edu.wpi.grip.core.Step name="HSL Threshold">
<edu.wpi.grip.core.sockets.InputSocketImpl step="0" socket="0"/>
<edu.wpi.grip.core.sockets.InputSocketImpl step="0" socket="1">