Giter Club home page Giter Club logo

stsa's Introduction

Short-Time Spectral Attenuator and process reversion for musical effects

Description

In this work, we implemented a STSA and tested its main configurations: as adapting Wiener Filter, as Spectral Attenuator and as Power Spectral Attenuator. After that we tried to see if it was possible to get a musical effect out of it. And we did it by inverting the suppresion rule and by applying the algorithm to clean signals instead of those with global degradations. In the OLA phase, instead of reconstructing the signal, we resynthesized it with the use of sinusoidal oscillators.

Prerequisities

  • To have installed on your local machine, the libraries imported at the beginnig of the notebooks if you don't use Colab
  • MatLab

How to use

Python Case

  • Upload in your Colab Notebook all the Audio Files;

  • Save a copy of both notebooks in your Drive

  • Use Hiss folder if you want to test the STSA. Try to experiment by changing the values of the "a, b, c" parameters

  • Use Clean folder if you want to test the Music Effect. Try to experiment by changing the values of the "a, b, c" parameters.

MatLab Case

  • Download All the MatLab and Audio files. Place them all in the same folder without any sub-folder division

  • Use audio files that start with "Source" if you want to test the STSA. Try to experiment by changing the values of the "a, b, c" parameters

  • Use audio files that end with "clean" or "dehissed "if you want to test the Music Effect. Try to experiment by changing the values of the "a, b, c" parameters.

Source Codes

All the codes are based on the theory explained by Godsin and Reiner in their paper and book of late 90's. (Also the audio files come from their site).

Here I'll talk about Python files, but the structure for the MatLab ones is the same. The only difference is that in MatLab functions are defined in different files. But that won't change the execution. The scripts has the following structure:

  • Imports of requried libraries;

  • Methods definitions. The Music Effect file in this point has also the definition of a sinusoidal oscillator and of the resynthesizer.

  • Loading of the files

  • Initialize the parameters for the Short-Time Fourier Transform (STFT)

  • Noise Estimation

  • Suppression Rule. Here in the Music Effect file we resynthesized the signal

  • Final Results and Plots.

Presentation

A detailed description of our work can be find in our Presentation

Contacts

stsa's People

Contributors

robertoalessandri avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.