sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Numeric#clamp
Max and minimum bound - will clamp other to a value below other and above -1 * other
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/core.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Numeric-clamp-for-pr
# Commit to gitgit add app/server/ruby/core.rbgit commit -m "better docs for Numeric#clamp"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Numeric-clamp-for-pr
hub pull-request
# Celebrate!