Skip to content
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

Merged
merged 4 commits into from
Feb 16, 2024

Conversation

maksutovic
Copy link
Collaborator

No description provided.

}

Copy link

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)

Copy link

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)
}

Copy link

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")
Copy link

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")
Copy link

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) } )
Copy link

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")
}

Copy link

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)")
Copy link

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)

@aure aure merged commit 028bb5e into AudioKit:main Feb 16, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants