-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changed Time's value from int to long, added FromTicks method to Time * changed Bpm's value from int to double * fix: bump version to 0.10.0 (#9)
- Loading branch information
1 parent
15a71a0
commit 6b26de5
Showing
3 changed files
with
72 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
namespace DarkMusicConcepts; | ||
|
||
public class Bpm : Unit<int, Bpm> | ||
public class Bpm : Unit<double, Bpm> | ||
{ | ||
public const int MinValue = 0; | ||
public const int MaxValue = int.MaxValue; | ||
public const double MinValue = 0; | ||
public const double MaxValue = double.MaxValue; | ||
|
||
public static Bpm Min { get; } = From(MinValue); | ||
public static Bpm Max { get; } = From(MaxValue); | ||
|
||
protected override int GetMinValue() => MinValue; | ||
protected override int GetMaxValue() => MaxValue; | ||
protected override double GetMinValue() => MinValue; | ||
protected override double GetMaxValue() => MaxValue; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters