Skip to content

Instantly share code, notes, and snippets.

View nomolosvulgaris's full-sized avatar

nomolosvulgaris

View GitHub Profile
import time
start_time = time.time()
start_time_all = start_time
import sys
import essentia
import essentia.standard as es
import matplotlib
import matplotlib.pyplot as plt
@nomolosvulgaris
nomolosvulgaris / tempogram.py
Last active June 17, 2019 05:10
CLI tool for building a tempogram of audio file
import numpy as np
import librosa
import librosa.display
import matplotlib
import matplotlib.pyplot as plt
import time
def draw_tempogram(audio_in, audio_out, offset, duration):
""" Make PNG file for specified MP3 file using LibRosa tools.
"""
document.onkeyup = function(e) {
var btn = { 37: 'Назад', 39: 'Вперёд' };
var el = function(title) {
return document.querySelector(['a[title="', title, '"]'].join(''));
};
Object.keys(btn).forEach(function(code) {
if (e.ctrlKey && e.keyCode == code) {
var link = el(btn[code]);
if (link) link.click();
}
@nomolosvulgaris
nomolosvulgaris / index.html
Last active December 11, 2015 21:39 — forked from bobuk/index.html
<html>
<head>
<title>Girls gone wild!</title>
<link rel="stylesheet" type="text/css" href="/static/style.css">
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost:8080/application.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var jug = new Juggernaut;
jug.subscribe('babes', function (data) {