Git Product home page Git Product logo

image2sound's Introduction

Image2Sound

Initiallly created January 2023 when the Fourier transform and this spectrogram app https://musiclab.chromeexperiments.com/spectrogram/ were mentioned in class and I wanted a very visceral demonstration of the math.

Simple python notebook to encode images in sound files using an inverse fourier transform

TODO / Current Progress

  • Currently working through formalizing this as a more robust script.
  • The numpy version "Image2Sound.py" is currently in a basic working state, but I need to add command line arguments to specify the target input/output. This is currently hard coded in the script.
  • Working through finishing the torch version of the script. currently correcting some of the warping operations which allow for the image to correctly fit inside the transformed output spectrum.

Disclaimer:: This was designed specifically for use with https://musiclab.chromeexperiments.com/spectrogram/ and thus will likely not display with proper proportions out of the box on other spectrograms.

venv setup commands (linux)

this is at least how I would set up to use the project

python -m venv venv
source ./venv/bin/activate
pip install torch matplotlib scipy numpy
pip install --upgrade pip

image2sound's People

Contributors

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