Git Product home page Git Product logo

wavfile.py's Introduction

wavfile.py

Initial version of this file comes from Scipy project.

It lacked markers and loops features, so it has been modded by Joseph Ernest as wavefile.py (extended), as explained in this article

It had a few bugs to fix though, and some critical functions were still missing, like the preservation of unsupported chunks.

That's why I had to mod it to bring new features. Here is the list:

  • unsupported chunk read and write
  • LIST-INFO support
  • renamed variables to avoid conflict with python native functions
  • correct bytes error
  • correct write function

And here are the previously added optimizations by Joseph Ernest:

  • read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch
  • read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser)
  • read: added normalized (default False) that returns everything as float in [-1, 1]
  • read: added forcestereo that returns a 2-dimensional array even if input is mono

I'm no python expert, and I may not have tested every scenario. Be very careful while using this script. Make copies of your files to be sure.

Though it objectively has fewer bugs than previous versions, it may still contain some in certain circumstances.

Please test it and report if something is wrong!

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.