Skip to content

Commit

Permalink
Update Track.cs
Browse files Browse the repository at this point in the history
Issue #297 Fix bug in the return of trqack start and end times.
  • Loading branch information
towsey committed Apr 21, 2020
1 parent 07ac99f commit a76b248
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/AudioAnalysisTools/Events/Tracks/Track.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ public Track(

public int PointCount => this.Points.Count;

public double StartTimeSeconds => this.converter.SegmentStartOffset + this.Points.Min(x => x.Seconds.Minimum);
//public double StartTimeSeconds => this.converter.SegmentStartOffset + this.Points.Min(x => x.Seconds.Minimum);
public double StartTimeSeconds => this.Points.Min(x => x.Seconds.Minimum);

public double EndTimeSeconds => this.converter.SegmentStartOffset + this.Points.Max(x => x.Seconds.Maximum);
//public double EndTimeSeconds => this.converter.SegmentStartOffset + this.Points.Max(x => x.Seconds.Maximum);
public double EndTimeSeconds => this.Points.Max(x => x.Seconds.Maximum);

public ISet<ISpectralPoint> Points { get; }

Expand Down

0 comments on commit a76b248

Please sign in to comment.