From 599faede623217f7e5eb49e87010fc89c682f45a Mon Sep 17 00:00:00 2001 From: guylamar2006 Date: Mon, 2 Dec 2024 17:15:38 -0600 Subject: [PATCH] Added rendering logic. --- neothesia-core/src/render/waterfall/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neothesia-core/src/render/waterfall/mod.rs b/neothesia-core/src/render/waterfall/mod.rs index 2342210f..9dd01db7 100644 --- a/neothesia-core/src/render/waterfall/mod.rs +++ b/neothesia-core/src/render/waterfall/mod.rs @@ -81,10 +81,13 @@ impl WaterfallRenderer { self.notes_pipeline.instances().push(NoteInstance { position: [key.x(), note.start.as_secs_f32()], - size: [key.width() - 1.0, h - 0.01], // h - 0.01 to make a little gap bettwen successive notes + size: [key.width() - 1.0, h - 0.01], // h - 0.01 to make a little gap between successive notes color: color.into_linear_rgb(), radius: key.width() * 0.2, }); + // Add note label + let label_position = [key.x(), note.start.as_secs_f32()]; + self.notes_pipeline.add_label(¬e.to_string(), label_position); } else { longer_than_range = true; }