Skip to content

Instantly share code, notes, and snippets.

View matbra's full-sized avatar

Matthias Brandt matbra

  • Bremen, Germany
View GitHub Profile
@matbra
matbra / sineModel.py
Last active December 14, 2015 17:25
This gist contains code that is part of a programming assignment (Peer Assessment 10a) for the Coursera course "Audio Signal Processing for Music Applications".
def sineModelMultiRes(x, fs, w, N, t, B):
"""
Analysis/synthesis of a sound using the sinusoidal model, without sine tracking
x: input array sound, w: analysis window, N: size of complex spectrum, t: threshold in negative dB
returns y: output array sound
This is an extension of the original sineModel() function that supports different DFT
resolutions/window lengths in different subbands.
w is assumed to be a Python list of N_w windows