Skip to content

Commit

Permalink
Removed clipping as well as made each individual note have it's own v…
Browse files Browse the repository at this point in the history
…olume so an instrument can have different volumes throughout the song.
  • Loading branch information
Cody Lundquist committed Sep 30, 2013
1 parent 21ef993 commit c4ac51a
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 26 deletions.
4 changes: 2 additions & 2 deletions build/band.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion examples/mario-bros-overworld/js/app.js
Expand Up @@ -9,6 +9,8 @@ app.controller('AppController', function($scope) {
leftHand = gameMusic.createInstrument('triangle', 'oscillators'),
drum = gameMusic.createInstrument('white', 'noises');

drum.setVolume(50);

/**
* Intro
*/
Expand Down Expand Up @@ -478,7 +480,7 @@ app.controller('AppController', function($scope) {

rightHand.finish();
leftHand.finish();
drum.setVolume(10).finish();
drum.finish();

gameMusic.end();

Expand Down

0 comments on commit c4ac51a

Please sign in to comment.