Skip to content

Instantly share code, notes, and snippets.

View ronso0's full-sized avatar

ronso0

View GitHub Profile
@ronso0
ronso0 / create-silence-mp3-interatcive.sh
Last active September 25, 2025 17:40
Create silence AAC m4a of N seconds, populate with basic metadata (artist + title)
# Copy file url for use in Mixxx (QUrl)
#!/bin/bash
# Prompt user for input
read -p "Enter duration in seconds: " DURATION
read -p "Enter artist name: " ARTIST
read -p "Enter title: " TITLE
# Sanitize inputs for filename
SAFE_ARTIST=$(echo "$ARTIST" | tr -cd '[:alnum:] .-')
@ronso0
ronso0 / user_github_tweak.css
Last active September 1, 2025 09:49
Firefox / Github: minimie 'Comment and Close' button
/* User style snippet to minimize the infamous 'Comment and Close' button in Github PRs
* How to:
* either add this snippet to your [Firefox profile directory]/chrome/user_content.css
* or write to a separate file which is the included in user_content.css like this
* @import url("user_github_tweaks.css");
*/
/* Domain selector taken from */
/*! Github Dark v1.19.16 (2017-11-23) */
/* Repository: https://github.com/StylishThemes/GitHub-Dark */
/* Userstyle: http://userstyles.org/styles/37035 */
@ronso0
ronso0 / gist:c004d87dc5aa9394fdf4347e51e57c56
Created April 2, 2025 13:16
Backtrace of crash when invoking scrollTo() with BrowseFeature child index in collpased tree
Thread 1 "mixxx" received signal SIGSEGV, Segmentation fault.
SidebarModel::parent (index=..., this=0x555565088410) at /src/library/treeitem.h:62
62 return m_pParent != nullptr;
(gdb) thread apply bt 1
Invalid thread ID: bt 1
(gdb) thread apply 1 bt
Thread 1 (Thread 0x7fffea675100 (LWP 32196) "mixxx"):
#0 SidebarModel::parent(QModelIndex const&) const (index=<optimized out>, this=0x555565088410) at /src/library/treeitem.h:62
#1 SidebarModel::parent(QModelIndex const&) const (this=0x555565088410, index=...) at /src/library/sidebarmodel.cpp:173
@ronso0
ronso0 / hotcue-loop-activate.midi.xml
Created February 10, 2025 10:08
hotcue loop activation while playing
<?xml version='1.0' encoding='utf-8'?>
<MixxxControllerPreset mixxxVersion="" schemaVersion="1">
<info>
<name>hotcue-loop activation</name>
</info>
<controller id="virt">
<scriptfiles>
<file filename="hotcue-loop-test.js" functionprefix="virt"/>
</scriptfiles>
<controls/>
@ronso0
ronso0 / xfader-set-test.js
Created February 7, 2025 13:20
xfader config test
/**************************************************
* Test xfader switch *
* *
* Press hotcues 1-3 on deck1 to switch modes *
***************************************************/
function virt() {};
virt.init = function (id,debug) {
virt.id = id;
@ronso0
ronso0 / hotcue_indicator_test.js
Created March 11, 2024 23:22
test for hotcue_X_indicator
function virt() {};
virt.init = function (id,debug) {
virt.id = id;
console.log("-------------------");
console.log("-------------------");
console.log("-------------------init");
console.log("-------------------");
console.log("-------------------");
@ronso0
ronso0 / hotcue-color-test.midi.xml
Last active February 6, 2024 09:20
hotcue color script
<?xml version='1.0' encoding='utf-8'?>
<MixxxControllerPreset schemaVersion="1" mixxxVersion="">
<info>
<name>hotue test script</name>
<description>click Eject on deck 2 to trigger hotuce test on deck1</description>
</info>
<controller id="virt">
<scriptfiles>
<file filename="hotcue-test.js" functionprefix="virt"/>
</scriptfiles>
@ronso0
ronso0 / .bash_aliases
Created January 30, 2024 22:44
Bash shorthands to verify / change symlink to specific Mixxx build directories
# In which build dir are we?
# print link target of /home/user/mixxx/src/xxx_build
function qw() {
# awk -F/
# use '/' as delimiter
# '{print $(NF-0)}'
# print only last chunk
readlink /home/user/mixxx/src/xxx_build | awk -F/ '{print $(NF-0)}'
}
@ronso0
ronso0 / track-menu-toggle-per-deck.js
Last active January 26, 2024 00:24
MIDI mapping to test [Channel1],show_track_menu (with a virtual MIDI device)
/****************************************************************
*
* send <B1 31 7F> or click Eject on deck 2
* to trigger toggleTrackMenu() for deck1
****************************************************************/
function virt() {};
virt.init = function (id,debug) {
virt.id = id;
@ronso0
ronso0 / loop-adjust-snippet.js
Last active March 13, 2024 09:14
move loop_in, loop_out or entire loop with jog wheel
// declare timers and 'pressed' booleans at the beginning of the script.
TerminalMix.loopInTimers = [];
TerminalMix.loopOutTimers = [];
TerminalMix.loopInLongPressed = [];
TerminalMix.loopOutLongPressed = [];
var loopMarkerMoveFactor = 20;
// Loop_in button
TerminalMix.loopIn = function (channel, control, value, status, group) {
if (value) { // press