Skip to content

Instantly share code, notes, and snippets.

View ferrihydrite's full-sized avatar

ferrihydrite

  • Purdue University
View GitHub Profile
@ferrihydrite
ferrihydrite / morphagene_audacity_old.py
Last active December 13, 2023 13:07
morphagene_audacity
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Used to convert Audacity labels in .txt form on .WAV files into
single 32-bit float .WAV with CUE markers within the file, directly
compatible with the Make Noise Morphagene.
Does not require input file to be 48000Hz, only that the Audacity label matches
the .WAV file that generated it, and that the input .WAV is stereo.
See the Morphagene manual for naming conventions of output files:
@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)