diff --git a/src/AudioAnalysisTools/AudioAnalysisTools.csproj b/src/AudioAnalysisTools/AudioAnalysisTools.csproj
index 1a234ae2d..a324fb75c 100644
--- a/src/AudioAnalysisTools/AudioAnalysisTools.csproj
+++ b/src/AudioAnalysisTools/AudioAnalysisTools.csproj
@@ -36,4 +36,7 @@
+
+
+
\ No newline at end of file
diff --git a/src/AudioAnalysisTools/Events/Drawing/EventDrawer.cs b/src/AudioAnalysisTools/Events/Drawing/EventDrawer.cs
index 2a1d40536..a6c7af275 100644
--- a/src/AudioAnalysisTools/Events/Drawing/EventDrawer.cs
+++ b/src/AudioAnalysisTools/Events/Drawing/EventDrawer.cs
@@ -28,11 +28,9 @@ public static void DrawScoreIndicator(this SpectralEvent @event, IImageProcessin
return;
}
- // TODO: add a Interval ScoreRange property to EventCommon
- // so we can properly normalize this value to the unit value.
- // For now, we just assume it is normalized to [0,1].
- //var clampedScore = @event.Score.Clamp(0, 1);
- var normalisedScore = @event.ScoreNormalised;
+ // Although an Interval ScoreRange property has been added to EventCommon,
+ // this does not clamp values. For now, we clamp before drawing.
+ var normalisedScore = @event.ScoreNormalised.Clamp(0, 1);
if (normalisedScore == 0)
{
@@ -45,7 +43,7 @@ public static void DrawScoreIndicator(this SpectralEvent @event, IImageProcessin
graphics.NoAA().DrawLines(
options.Score,
- new PointF(rect.Left, rect.Bottom - 1), // TODO minus one is a hack! just to make it work!
+ new PointF(rect.Left, rect.Bottom - 1), // minus one is to bring bottom of score line within event frame.
new PointF(rect.Left, rect.Bottom - scaledHeight));
}
diff --git a/src/AudioAnalysisTools/Events/EventCommon.cs b/src/AudioAnalysisTools/Events/EventCommon.cs
index bd7ec23f2..404504f1d 100644
--- a/src/AudioAnalysisTools/Events/EventCommon.cs
+++ b/src/AudioAnalysisTools/Events/EventCommon.cs
@@ -55,7 +55,7 @@ public abstract class EventCommon : EventBase, IDrawableEvent
/// Up to user to determine a suitable range maximum.
/// Minimum of range assumed to be zero.
///
- public double ScoreNormalised => Math.Min(1.0, this.Score / this.ScoreRange.Maximum);
+ public double ScoreNormalised => this.Score / this.ScoreRange.Maximum;
///
/// Draw this event on an image.
diff --git a/src/AudioAnalysisTools/Events/Tracks/PointData.cs b/src/AudioAnalysisTools/Events/Tracks/PointData.cs
deleted file mode 100644
index 8ab54a03d..000000000
--- a/src/AudioAnalysisTools/Events/Tracks/PointData.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (formerly MQUTeR, and formerly QUT Bioacoustics Research Group).
-//
-
-namespace AudioAnalysisTools
-{
- using System.Collections.Generic;
- using System.Linq;
- using AudioAnalysisTools.Events.Drawing;
- using SixLabors.ImageSharp;
- using SixLabors.ImageSharp.Processing;
-
- public class PointData
- {
- public ISet Points { get; }
-
- public void DrawPointsAsFill(IImageProcessingContext graphics, EventRenderingOptions options)
- {
- // overlay point data on image with 50% opacity
- // TODO: a much more efficient implementation exists if we derive from Region and convert
- // our set to a region.
- foreach (var point in this.Points)
- {
- var area = options.Converters.GetPixelRectangle(point);
- graphics.Fill(options.Fill, area);
- }
- }
-
- public void DrawPointsAsPath(IImageProcessingContext graphics, EventRenderingOptions options)
- {
- // visits each point once
- // assumes each point describes a line
- // assumes a SortedSet is used (and that iteration order is signficant, unlike with HashSet)
- var path = this.Points.Select(x => options.Converters.GetPoint(x)).ToArray();
-
- // note not using AA here
- // note could base pen thickness off ISpectralPoint thickness for a more accurate representation
- graphics.DrawLines(
- options.Border,
- path);
- }
- }
-}
\ No newline at end of file
diff --git a/src/AudioAnalysisTools/Events/Types/ChirpEvent.cs b/src/AudioAnalysisTools/Events/Types/ChirpEvent.cs
index 1c6c80bfe..ec4ca357a 100644
--- a/src/AudioAnalysisTools/Events/Types/ChirpEvent.cs
+++ b/src/AudioAnalysisTools/Events/Types/ChirpEvent.cs
@@ -16,8 +16,6 @@ namespace AudioAnalysisTools
public class ChirpEvent : SpectralEvent, ITracks