Skip to content

Instantly share code, notes, and snippets.

@danferns
danferns / meter_sweetwaltz.ipynb
Created February 21, 2025 08:25
Meter detection with metrogram on librosa sweetwaltz example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danferns
danferns / meter.ipynb
Last active February 21, 2025 07:12
Implementing Metrogram Transform in librosa (not yet complete)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danferns
danferns / FL Studio.ahk
Created January 27, 2025 11:06
AutoHotKey V2 Script for FL Studio
SetDefaultMouseSpeed 0
; move mouse in a multi-monitor setup with different DPI settings
DPIAwareMouseMove(x, y) {
DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr")
MouseMove x, y
}
@danferns
danferns / README.md
Last active August 28, 2024 10:53
Outputs the tuning of every audio file inside the current folder.

Some music is written in non-440Hz tuning. This script was created to find the tuning of all tracks in your library.

To use this script, ensure that Python (I'm on v3.12) is installed and get the librosa package using pip:

pip install librosa

Then, copy this script inside your music library folder, and execute it using Python.

@danferns
danferns / Mixxx-Build-Steps.md
Created July 31, 2024 08:43
How to build Mixxx on Windows

Prerequisites

  1. Open x64 Native Tools Command Prompt for VS 2019
  2. cd into the Mixxx repo's root directory.

Initial Setup

Download and setup the build environment:

[!WARNING]

@danferns
danferns / tlk.io.userstyle.css
Created August 27, 2023 07:25
Userstyle to minimize the empty space in tlk.io's desktop view, also hides header avatar.
/* hide the header avatar */
.header-avatar {
background: inherit !important;
pointer-events: none;
cursor: default;
}
/* wide desktop view */
@media (min-width: 761px) {
/* move the online list to the side */
@danferns
danferns / DropboxFetchAllLinks.js
Created May 26, 2023 11:56
A workaround to download Dropbox folders that are too large.
@danferns
danferns / userChrome.css
Last active January 15, 2023 06:05
My Firefox userChrome.css file
/* Fira Code font for devtools */
.CodeMirror {
font-family: "Fira Code", monospace !important;
font-size: 18pt !important;
}
/* slimmer and more minimal header */
#urlbar {
--urlbar-toolbar-height: 32px !important;
}
@danferns
danferns / GenshinMIDI.py
Created December 2, 2022 11:00
Play Genshin Impact instruments with your MIDI Keyboard
# This script enables MIDI support for the musical instruments in
# Genshin Impact.
# It works by listening for MIDI messages, and then converting
# them into typing keystrokes based on a mapping between the
# musical notes and the computer keys.
# It bahaves like a normal computer keyboard, and so, this code
# can be modified to work with other games as well. All you need
# to do is create a mapping function for that game.
@danferns
danferns / dl.bat
Last active December 3, 2022 10:14
Download music from YouTube with a short command: dl <youtube_url>
@echo off
set url=%*
cd /D D:\Music
youtube-dl -o "%%(title)s.%%(ext)s" -f m4a -x --audio-format "mp3" "%url%"