fix(cw): show the correct original tone frequency in the waterfall label
The Canvas marker was fixed to draw at estimatedPitch, but the overlay Text still computed its label from estimatedPitch + toneShiftHz, which showed the shifted position (800 Hz) instead of the original tone (e.g. 1500 Hz).
This commit is contained in:
1 parent
8fbc639a82
commit
9367878702
1 file changed
+1
-2
@@ -244,9 +244,8 @@ internal fun CwWaterfallView(
|
||||
|
||||
// Frequency labels overlaid on the waterfall.
|
||||
if (toneShiftHz != 0f && estimatedPitch != null && estimatedPitch > 0f) {
|
||||
val origPitch = estimatedPitch + toneShiftHz
|
||||
Text(
|
||||
text = "${origPitch.toInt()} Hz",
|
||||
text = "${estimatedPitch.toInt()} Hz",
|
||||
fontSize = 9.sp,
|
||||
color = Color(0xFFFF9500),
|
||||
modifier = Modifier
|
||||
|
||||
Reference in new issue
Block a user