Giter VIP home page Giter VIP logo

tegridydev / mid-sec Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joeszeles/wave-files-to-midi-composition

0.0 0.0 0.0 2.45 MB

This script loads an audio file, filters out high frequencies, and converts each window of audio to a MIDI note based on the volume of the window. The MIDI notes are added to a MIDI track, and the resulting MIDI file is saved.

License: The Unlicense

Python 100.00%

mid-sec's Introduction

Wave-files-to-Midi-composition

This script loads an audio file, filters out high frequencies, and converts each window of audio to a MIDI note based on the volume of the window. The MIDI notes are added to a MIDI track, and the resulting MIDI file is saved.

Here are the main steps of the script:

Load the audio file using the PyDub library.
Set the tempo and window size for the MIDI file, and set the sample rate for the audio data.
Convert the audio data to mono and filter out high frequencies using a low-pass filter.
Create a MIDI file and track, and set the time signature and tempo.
Convert each window of audio to a MIDI note based on the volume of the window.
Add the MIDI note to the MIDI track, and set the instrument to use for the track.
Save the resulting MIDI file.

The script also includes some code to print progress and to adjust the velocity of the MIDI notes based on their volume.

mid-sec's People

Contributors

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