Skip to content

Instantly share code, notes, and snippets.

View matpalm's full-sized avatar
🎯
Focusing

mat kelcey matpalm

🎯
Focusing
View GitHub Profile
#!/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.
@diogo149
diogo149 / gradient_reversal.py
Created November 7, 2015 00:10
Gradient Reversal in Theano
from theano.compile import ViewOp
class GradientReversalOp(ViewOp):
def grad(self, inputs, output_gradients):
return [-output_gradients[0]]