Skip to content

Instantly share code, notes, and snippets.

View jbflow's full-sized avatar

Josh Ball jbflow

View GitHub Profile
@jbflow
jbflow / sysex_byte_functions.js
Last active March 7, 2024 20:34
functions for converting data to send over syses
const convertBytes = (byteArray) => {
// converts arrays of 2 or 3 bytes into there integer values
if (byteArray.length === 2) {
return byteArray[1] * 128 + byteArray[0];
} else if (byteArray.length === 3) {
return byteArray[2] * 16384 + byteArray[1] * 128 + byteArray[0];
}
}
@jbflow
jbflow / read_live_logs.py
Created December 14, 2023 02:21
Reads the Ableton log.txt file continuously and outputs all Remote Script related messages. Takes the live version as an argument. Needs Python 3 installed to run
#!/usr/bin/python3
# Reads Live logs in log.txt, supply with live version as argument
# chmod +x read_live_logs.py
# sudo cp read_live_logs.py /usr/local/bin
# Create an alias for quicker useage
# cd ~/.
# vim .zshrc
# Press i
# alias rll="read_live_logs.py"
# Press Esc
@jbflow
jbflow / copy_remote_script.sh
Last active December 14, 2023 05:10
Copies a MIDI Remote Script from a working git repo into Ableton Lives Remote Scripts folder in the User library. Creating folders as necessary, excluding .git repo and has overwrite protection.
#!/bin/sh
# Run the following commands to add to your terminal
# sudo cp copy_remote_script.sh /usr/local/bin
# cd /usr/local/bin
# chmod +x copy_remote_script.sh
# now from your remote script directory you can run 'sh copy_remote_script.sh . <SCRIPTNAME>' And it will do everything for you.
# If you want to shorten it you can add an alias
# cd ~/.
# vim .zshrc