Skip to content

Commit

Permalink
Add $bpm var
Browse files Browse the repository at this point in the history
  • Loading branch information
ology authored Jan 19, 2022
1 parent 96a4250 commit 761fa12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ex-03-02.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

use MIDI::Util qw(setup_score set_chan_patch);

my $score = setup_score(bpm => 120);
my $bpm = shift || 120;

my $score = setup_score(bpm => $bpm);

$score->synch(\&bass, \&treble);

Expand Down

0 comments on commit 761fa12

Please sign in to comment.