Skip to content

Instantly share code, notes, and snippets.

View xavriley's full-sized avatar

Xavier Riley xavriley

View GitHub Profile
@xavriley
xavriley / README.md
Created December 1, 2023 13:47
How to run chordino on a batch of audio files
View README.md

How to run chordino on a batch of audio files

Method 1 - sonic annotator

I'm working on a mac here so I'm assuming you have bash/terminal available. If you're on Windows you could try setting up Windows Subsytem for Linux maybe? (WSL)

  • Open a terminal, get the version of sonic-annotator for your OS from here: https://code.soundsoftware.ac.uk/projects/sonic-annotator/files
  • Move the downloaded file to your preferred location and extract it (tar -xvf sonic-annotator-1.6-macos.tar.gz was the command I used)
  • Open a terminal, then cd to the sonic-annotator-1.6-macos folder that just got created in the last step
  • find the name of the chordino plugin like so:
@xavriley
xavriley / add_downbeats_from_syncpoints.py
Created October 27, 2023 14:15
Add downbeats to midi using PrettyMIDI for use in Logic X
View add_downbeats_from_syncpoints.py
import pretty_midi as pm
import json
def get_syncpoint_downbeat_times(syncpoints):
downbeat_times = []
for syncpoint in syncpoints:
if len(syncpoint) == 2 or syncpoint[2] == 0:
downbeat_times.append(syncpoint[1])
return downbeat_times
@xavriley
xavriley / Example output.txt
Last active May 24, 2023 21:16
Chord Parsing CLI example
View Example output.txt
$ ./chord-parser -c Cmaj7
{
input: {
symbol: 'Cmaj7',
rootNote: 'C',
descriptor: 'maj7',
parsableDescriptor: 'maj7',
modifiers: [ 'add7' ],
notationSystem: 'english'
},
@xavriley
xavriley / README.md
Last active May 23, 2022 17:58
Sennheiser VSM201 Vocoder Emulation in SuperCollider
View README.md
@xavriley
xavriley / pyin-lf.patch
Created January 17, 2022 09:25
pYin patch for detecting low frequencies
View pyin-lf.patch
commit 6ed838b60173dc354fcb432e27bccb3a7a1e5769
Author: Xavier Riley <xavriley@hotmail.com>
Date: Mon Jun 28 12:47:19 2021 +0100
Reduce min frequency detectable from 61Hz to 22Hz
diff --git a/LocalCandidatePYIN.cpp b/LocalCandidatePYIN.cpp
index fc69308..4f04fbc 100644
--- a/LocalCandidatePYIN.cpp
+++ b/LocalCandidatePYIN.cpp
@xavriley
xavriley / stella.ly
Last active October 1, 2021 14:34
Example of using LilypondExport to produce MusicXML from Lilypond. See https://music.stackexchange.com/a/115341/77453 for instructions
View stella.ly
% LilyBin
\version "2.18.2"
\include "oll-core/package.ily"
\loadPackage lilypond-export
opts.exporter = #exportMusicXML
\score{
@xavriley
xavriley / vim_bela.md
Last active January 27, 2021 14:29
Using vim on Bela
View vim_bela.md
@xavriley
xavriley / vimrc
Last active August 28, 2020 12:15
June 2020 vimrc
View vimrc
" Vim config
" 2020
" see ~/.config/nvim/init.vim for nvim stuff
set shell=/bin/bash
" set shell=$SHELL
"" PLUGIN MANAGEMENT
packadd minpac
call minpac#init()
View gist:fec3da354d726779fcbb2fecc46a19ec
This is Google's cache of http://www.mcld.co.uk/cymbalsynthesis/. It is a snapshot of the page as it appeared on 4 May 2020 03:03:17 GMT. The current page could have changed in the meantime. Learn more.
Full versionText-only versionView source
Tip: To quickly find your search term on this page, press Ctrl+F or ⌘-F (Mac) and use the find bar.
Cymbal synthesis tutorial
Dan Stowell
This tutorial describes an approach to synthesising decent-sounding cymbals, in a way that is efficient enough for a real-time synthesis system.
@xavriley
xavriley / README.md
Created June 22, 2018 14:50
Working with Carabiner (Ableton Link) from Ruby
View README.md

Working with Carabiner (Ableton Link) from Ruby

This script currently requires Ruby >= 2.4 and Mac OS 10.12 or higher

Download Carabiner from here https://github.com/brunchboy/carabiner (releases page has builds for OSX and Windows)

Run it in a terminal somewhere.

Download the Link repo and build the examples: