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

refactor!(cent): ♻️ rename redundant unitSymbol static constant #345

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/src/tuning/cent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ final class Cent {
/// Creates a new [Cent] from [value].
const Cent(this.value);

/// The unit symbol for cent.
static const centUnitSymbol = '¢';
/// The unit symbol for [Cent].
static const unitSymbol = '¢';

/// The number of cents in an [Interval.P8].
static const int octaveCents = chromaticDivisions * 100;
Expand All @@ -24,7 +24,7 @@ final class Cent {
Ratio get ratio => Ratio(math.pow(2, value / octaveCents));

@override
String toString() => '$value $centUnitSymbol';
String toString() => '$value $unitSymbol';

/// The negation of this [Cent].
///
Expand Down