Skip to content

Instantly share code, notes, and snippets.

View ferrihydrite's full-sized avatar

ferrihydrite

  • Purdue University
View GitHub Profile
ClrHome
Menu("WHAT FORMULA<S>?","SLOPE",A,"PYTHAGOREAN",B,"QUADRATIC",C,"DIST./MAGNIT.",D,"MIDPOINT",E,"AREAS/OTHER",F,"EXIT",G
Lbl A
ClrHome
Disp "((ENTER COORDS))"
Disp "","-X1-"
Input A
Disp "","-Y1-"
Input B
Disp "","-X2-"
@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
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_audacity3.py -w <inputwavfile> -l <inputlabels> -o <outputfile>'
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Usage:
morphagene_onset3.py -w <inputwavfile> -o <outputfile> -s <splicecount>
Use the Superflux onset detection algorithm with backtracking to generate
splice locations.
Use these splice locations with a converted WAV (to 32-bit float / 48000Hz)
to make Morphagene reels.
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 4 19:52:52 2019
Read an image, and read rows in a simplified grayscale version of an image to generate a wavetable of specified number of tables and wavelength.
Additionally reverse alternating rows of simplified image to prevent sharp changes in resulting wavetable.
"""
import matplotlib.pyplot as plt
import numpy as np
from scipy.io.wavfile import write
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Usage:
morphagene_onset.py -w <inputwavfile> -o <outputfile>
Use the Superflux onset detection algorithm with backtracking to generate
splice locations.
Use these splice locations with a converted WAV (to 32-bit float / 48000Hz)
to make Morphagene reels.
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 25 21:15:52 2018
@author: ferri
updated version of mor.py with wavio functions
Reads 8, 16 bit wav or aiff files, mono or stereo.
# -*- coding: utf-8 -*-
"""
Read 24 bit WAV files with markers from Logic Pro, extract markers, and resave
file as a 32 bit float file with cue markers, directly compatible with
the Make Noise Morphagene.
Does not require input file to be 48000Hz, only that the .WAV file
has cue markers correct to its sampling rate, and that the input
.WAV is stereo.
Usage:
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_audacity.py -w <inputwavfile> -l <inputlabels> -o <outputfile>'
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.
# -*- coding: utf-8 -*-
"""
Created on Sun Nov 25 21:15:52 2018
@author: ferri
updated version of mor.py with wavio functions
Reads 8, 16 bit wav files, mono or stereo.