We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed42b4 commit 17d3502Copy full SHA for 17d3502
src/Spectrogram/SpectrogramGenerator.cs
@@ -47,7 +47,7 @@ public class SpectrogramGenerator
47
/// <summary>
48
/// Index of the pixel column which will be populated next. Location of vertical line for wrap-around displays.
49
/// </summary>
50
- public int NextColumnIndex { get => (FftsProcessed + rollOffset) % Width; }
+ public int NextColumnIndex { get => Width > 0 ? (FftsProcessed + rollOffset) % Width : 0; }
51
52
53
/// This value is added to displayed frequency axis tick labels
0 commit comments