sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
WaveFile::Reader#initialize
Returns a Reader object that is ready to start reading the specified file's sample data.
file_name - The name of the wave file to read from.
format - The format that read sample data should be returned in
(default: the wave file's internal format).
Returns a Reader object that is ready to start reading the specified file's sample data.
Raises Errno::ENOENT if the specified file can't be found
Raises InvalidFormatError if the specified file isn't a valid wave fileEdit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/wavefile-0.8.1/lib/wavefile/reader.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WaveFile--Reader-initialize-for-pr
# Commit to gitgit add app/server/ruby/vendor/wavefile-0.8.1/lib/wavefile/reader.rbgit commit -m "better docs for WaveFile::Reader#initialize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WaveFile--Reader-initialize-for-pr
hub pull-request
# Celebrate!