Code Monkey home page Code Monkey logo

python_equalizer's Introduction

pyequalizer

This repo is a python equalizer which is implemented by scipy.

Install

You can install this package by pip directly.

pip install pyequalizer

Use

And, the following code is the main one you will use in this package.

import pyequalizer.Filter as Filter
type_f = "parabola"
input_file="data/bass.wav"
y, sr = librosa.load(input_file, sr=44100)
y = Filter.equalizer(y, sr, start_iv=200, end_iv=8000, num_iv=100, peak_scale=20, peak_iv = 20, type=type_f)

where start_iv, end_iv is the frequencys equalizer starts to work and ends; num_iv is the number how many interval will be in. Generally, it means how smooth the equalize curve is. peak_scale is how much will the signal be enhanced. peak_iv is the interval where the peak of equalizing curve is type means the equalizing curve shape. We currently provide "parabola" and "linear".

Demo

By the mentioned code, we enhance the frequency between 200-8000. In the following figure, it looks like we supress other bands because of librosa spectrum display function.

image Top one is the original spectrum and bottom one is processed spectrum.

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

python_equalizer's People

Contributors

tw40210 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.