Skip to content

Instantly share code, notes, and snippets.

View ferrihydrite's full-sized avatar

ferrihydrite

  • Purdue University
View GitHub Profile
@ferrihydrite
ferrihydrite / morphagene_ableton3.py
Last active April 29, 2023 07:59 — forked from knandersen/morphagene_ableton.py
Allows you to use Ableton projects and exports as reels for the Make Noise Morphagene eurorack module.
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_ableton3.py -w <inputwavfile> -l <inputlabels> -o <outputfile>'
Instructions in Ableton:
Insert locators as splice markers in your project (Create > Add Locator)
Export Audio/Video with
Sample Rate: 48000 Hz
Encode PCM: enabled
@ferrihydrite
ferrihydrite / wavfile.py
Last active May 2, 2019 17:05 — forked from josephernest/wavfile.py
wavfile.py (enhanced)
# wavfile.py (Enhanced)
# Date: 2017/01/11 Joseph Basquin
#
# URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476
# Source: scipy/io/wavfile.py
#
# Added:
# * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch
# See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl
# * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser)