-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9eb9cc5
commit 54dc6e8
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# a quick note about FAIL. FileMIDI is actually of the same unspecified superclass as LiveMIDI. both | ||
# need new, clearer names, but the nonexistent abstract superclass is just a class which takes options | ||
# for args and has a method called play() which takes a note argument. | ||
|
||
class FileMIDI | ||
attr_accessor :clock, :filename | ||
def initialize(options) | ||
raise :hell unless options.is_a? Hash | ||
@clock = options[:clock] | ||
@filename = options[:filename] | ||
end | ||
def play(note) | ||
end | ||
end |