Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
roux george buciu authored Nov 25, 2018
1 parent ac46c45 commit 39b89f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ It should be noted that all data types conform to `Codable`, `CustomStringConver

- All keys can be defined with `Key` struct. It has a `KeyType` where you can set the base key like C, D, A#, or Fb. All keys must be initialised with an `Accidental` which can be `.natural`, `.flat`, `sharp` or something more custom such as`.sharps(amount: 3)`.
- `Pitch`es are created with with a `Key` and octave. You may also create `Pitch`es with MIDI note number. `rawValue` of a pitch is its MIDI note number.
- The `Pitch`, `Key`, `Accidental` structs have had custom operators defined for equatable, `+` and `-` in order to make calulations easier.
- The `Pitch`, `Key`, `Accidental` structs have had custom operators defined for `==`, `+` and `-` in order to make calulations easier.
- Finally, these both of these structs can be defined with strings as well, though, for specificity's sake, it is advisable to not do so.

``` swift
Expand Down

0 comments on commit 39b89f5

Please sign in to comment.