Skip to content

Instantly share code, notes, and snippets.

Avatar

Eamonn Bell (Personal) eamonnbell

View GitHub Profile
@eamonnbell
eamonnbell / process.py
Last active May 29, 2020 15:46
Segments an audiofile in to chunks according to the result of some MIR algos
View process.py
import itertools
import os
import sys
SPLITFILE = 'splits.txt'
binaries = [ 'DBNBeatTracker',
'SpectralOnsetDetection',
'CNNOnsetDetector',
'DBNDownBeatTracker',
@eamonnbell
eamonnbell / config.py
Created May 31, 2018 00:49
qTile config base (laptop)
View config.py
# Copyright (c) 2010 Aldo Cortesi
# Copyright (c) 2010, 2014 dequis
# Copyright (c) 2012 Randall Ma
# Copyright (c) 2012-2014 Tycho Andersen
# Copyright (c) 2012 Craig Barnes
# Copyright (c) 2013 horsik
# Copyright (c) 2013 Tao Sauvage
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@eamonnbell
eamonnbell / tool.sh
Created April 20, 2018 13:57
Hack for getting to the VLM editor menu in the JagCD emu
View tool.sh
for pid in $(xdotool search "")
do
echo "Doing $pid..."
xdotool key --window $pid KP_1+KP_0+KP_3+KP_Multiply
done
@eamonnbell
eamonnbell / tool.sh
Created April 20, 2018 13:57
Hack for getting to the VLM editor menu in the JagCD emu
View tool.sh
do
echo "Doing $pid..."
xdotool key --window $pid KP_1+KP_0+KP_3+KP_Multiply
done
@eamonnbell
eamonnbell / spotify_implict_grant.html
Created September 5, 2017 15:51
Example of Implicit Grant flow authorization with Spotify API.
View spotify_implict_grant.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Spotify API - Implicit Grant Flow</title>
</head>
@eamonnbell
eamonnbell / optionset_generator.py
Last active June 20, 2017 14:50
Optionset generator
View optionset_generator.py
import collections
import itertools
def optionset_generator(optionset_schema):
iterables = {}
for key, value in optionset_schema.items():
if isinstance(value, collections.Iterable):
iterables[key] = value
else:
@eamonnbell
eamonnbell / dft_for_music.ipynb
Last active March 29, 2017 18:29
Introduction to DFT and Fourier phase space for music analysis
View dft_for_music.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eamonnbell
eamonnbell / matrix.ijs
Last active January 22, 2017 23:26
Serial matrix in J
View matrix.ijs
mod12 =: 12 & |
matrix =. monad : 0
m =. mod12 y -/ (y - (0 { y))
)
pcs =: i. 12
shuf =: {~ ?~@#
newrow =: shuf pcs
@eamonnbell
eamonnbell / gibbs.ipynb
Created October 19, 2016 20:45
Explaining 'Explaining the Gibbs Sampler'
View gibbs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eamonnbell
eamonnbell / myAffinities.md
Last active April 13, 2016 01:34
long_term Spotify top tracks for me
View myAffinities.md
Artist Track Name
Orkest De Volharding Hootenanny
Claude Le Jeune Motet Benedicite Dominum
Luigi Dallapiccola Frammenti sinfonici: Danza Magica -
MUNA Winterbreak
William Byrd Christe, qui lux es et dies
Peter Maxwell Davies Veni Sancte Spiritus (arr. of J. Dunstable Veni Sancte Spiritus): Veni creator spiritus
Peter Maxwell Davies Veni Sancte Spiritus (arr. of J. Dunstable Veni Sancte Spiritus): Veni sancte spiritus
Orkest De Volharding Dance Works: Part 1