forked from beneggett/music_theory
-
Notifications
You must be signed in to change notification settings - Fork 0
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
745f8c7
commit 2ad3cd3
Showing
2 changed files
with
20 additions
and
4 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
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 |
---|---|---|
|
@@ -2,10 +2,13 @@ | |
|
||
class TestNote < MiniTest::Test | ||
def setup | ||
# @pitch_object_note = MusicTheory::Note.new(frequency: (:B, 4), duration: 1.0, distort: false) | ||
@pitch_object_note = MusicTheory::Note.new(frequency: Pitch.new(:B, 4), duration: 1.0, distort: false) | ||
@frequency_note = MusicTheory::Note.new(frequency: 493.883, duration: 1.0, distort: false) | ||
end | ||
|
||
def test_note_accepts_pitch_object_input | ||
# assert_equal @pitch_object_note.sine_wave_cycle, @frequency_note.sine_wave_cycle | ||
puts @pitch_object_note.class | ||
This comment has been minimized.
Sorry, something went wrong.
scottmacphersonmusic
Author
Owner
|
||
puts @frequency_note.class | ||
This comment has been minimized.
Sorry, something went wrong.
scottmacphersonmusic
Author
Owner
|
||
end | ||
end |
What confuses me here is that even before I substituted the above line,
MusicTheory::Note.new(frequency: 493.883, duration: 1.0, distort: false)
from implement_pitch_test.rb was evaluating to Nil.