GithubHelp home page GithubHelp logo

sound-rnn's Introduction

sound-rnn

Generating sound using recurrent neural networks.

For more details, see my blog post: http://www.johnglover.net/blog/generating-sound-with-rnns.html

Requirements

This code is written in Lua and requires Torch. See the Torch installation documentation for more details.

The following packages are also required (and can be installed using luarocks):

$ luarocks install nngraph
$ luarocks install optim
$ luarocks install nn

Also install the following (see the respective repositories for installation instructions):

Usage

Run train.lua with no parameters to get a list of arguments. The audio file that you pass in should be a single-channel wav file. For example (using the included sine tone):

$ th train.lua -audio audio/sine_440.wav -model_file sine_440.t7 -batch_size 10 -seq_length 10 -rnn_size 100 -num_partials 10 -mdn_components 1 -num_layers 1

To generate audio, run sample.lua (again no parameters for an argument list). For example:

$ th sample.lua -model sine_440.t7 -length 3000 -output sine_resynth.wav

Thanks

This code is based on a number of great examples:

License

MIT

sound-rnn's People

Contributors

johnglover avatar jfsantos avatar

Watchers

James Cloos avatar  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.