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

docs(README): 📖 remove unit symbol from Frequency examples #402

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ Note.f.sharp.majorTriad.add9().diminished; // F♯ dim. (F♯ A C G♯)
Get the `Frequency` of a `Pitch`:

```dart
Note.a.inOctave(4).frequency(); // 440 Hz
Note.a.inOctave(4).frequency(); // 440
Note.b.flat.inOctave(4).frequency(
referenceFrequency: const Frequency(256),
tuningSystem:
EqualTemperament.edo12(referencePitch: Note.c.inOctave(4)),
); // 456.1401436878537 Hz
); // 456.1401436878537
```

Get the closest note from a given `Frequency`:
Expand Down
4 changes: 2 additions & 2 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ void main() {
Note.f.sharp.majorTriad.add9().diminished; // F♯ dim. (F♯ A C G♯)

// Frequencies
Note.a.inOctave(4).frequency(); // 440 Hz
Note.a.inOctave(4).frequency(); // 440
Note.b.flat.inOctave(4).frequency(
referenceFrequency: const Frequency(256),
tuningSystem:
EqualTemperament.edo12(referencePitch: Note.c.inOctave(4)),
); // 456.1401436878537 Hz
); // 456.1401436878537

const Frequency(432).closestPitch(); // A4-32
const Frequency(314).closestPitch(); // E♭4+16
Expand Down