-
-
Save ology/9687be7a34916f2a2c17b31ac5ffb148 to your computer and use it in GitHub Desktop.
No fills
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use 5.012; | |
| use strict; | |
| use warnings; | |
| use Music::SimpleDrumMachine; | |
| my $groove = { | |
| closed => [qw(1 1 0 1 1 1 1 1 1 1 1 0)], | |
| open => [qw(0 0 1 0 0 0 0 0 0 0 0 1)], | |
| kick => [qw(1 0 0 0 0 0 0 0 1 0 1 0)], | |
| snare => [qw(0 0 0 0 1 0 0 0 0 0 0 0)], | |
| }; | |
| my $dm = Music::SimpleDrumMachine->new( | |
| port_name => 'fluid', | |
| bpm => 120, | |
| chan => 9, | |
| parts => { | |
| Part_A => sub { return 'Part_A', $groove }, | |
| }, | |
| next_part => 'Part_A', | |
| filling => 0, | |
| verbose => 1, | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| my $dm = Music::SimpleDrumMachine->new( | |
| port_name => 'through', | |
| bpm => $bpm, | |
| chan => $chan, | |
| parts => { | |
| Part_A => sub { | |
| return 'Part_A', $groove{groove}; | |
| }, | |
| }, | |
| next_part => 'Part_A', | |
| filling => 0, | |
| verbose => 1, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment