-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for slash notation and getRankedChords using circle of 5ths and 4ths #34
Conversation
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
} | ||
for chord in returnArray { | ||
print(chord, chord.accidentalCount) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
if !returnArray.contains(chord) { | ||
returnArray.append(chord) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
@@ -61,7 +61,7 @@ public class ChordTable { | |||
} | |||
} | |||
} | |||
print("generated \(returnChords.count) chords") | |||
//print("generated \(returnChords.count) chords") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment Spacing Violation: Prefer at least one space after slashes for comments. (comment_spacing)
@@ -36,7 +36,7 @@ public class ChordTable { | |||
for chordType in ChordType.allCases { | |||
ChordTable.generateChords(type: chordType, &r) | |||
} | |||
print("generated \(r.count) chords") | |||
//print("generated \(r.count) chords") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment Spacing Violation: Prefer at least one space after slashes for comments. (comment_spacing)
func testC7() { | ||
XCTAssertEqual(Chord(.C, type: .dominantSeventh).description, "C7") | ||
let notes: [Int8] = [60, 67, 70, 76] | ||
let c7 = PitchSet(pitches: notes.map { Pitch($0) } ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing Brace Spacing Violation: Closing brace with closing parenthesis should not have any whitespaces in the middle. (closing_brace)
Identifier Name Violation: Variable name should be between 3 and 40 characters long: 'c7' (identifier_name)
@@ -22,6 +22,15 @@ class ChordTests: XCTestCase { | |||
XCTAssertEqual(Chord.Asus2.description, "Asus2") | |||
XCTAssertEqual(Chord.Bsus2.description, "Bsus2") | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
@@ -12,7 +12,7 @@ final class PerformanceTests: XCTestCase { | |||
index_sum += Note(pitch: Pitch(Int8(i))).intValue | |||
} | |||
if index_sum != 23779 { | |||
print("index_sum: \(index_sum)") | |||
//print("index_sum: \(index_sum)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment Spacing Violation: Prefer at least one space after slashes for comments. (comment_spacing)
No description provided.