From ca9f42fedfedcbc1b64702ddab436d6026676609 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 29 Nov 2023 01:43:59 -0500 Subject: [PATCH] waveform in progres --- source/funkin/ui/debug/charting/ChartEditorState.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 1794a3b7e..19bb9223b 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -110,6 +110,7 @@ import haxe.ui.events.UIEvent; import haxe.ui.events.UIEvent; import haxe.ui.focus.FocusManager; import openfl.display.BitmapData; +import funkin.audio.visualize.PolygonSpectogram; using Lambda; @@ -1793,6 +1794,8 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState menuBG.zIndex = -100; } + var oppSpectogram:PolygonSpectogram; + /** * Builds and displays the chart editor grid, including the playhead and cursor. */ @@ -5012,6 +5015,10 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState gridPlayheadScrollArea.setGraphicSize(Std.int(gridPlayheadScrollArea.width), songLengthInPixels); gridPlayheadScrollArea.updateHitbox(); } + + var vis:PolygonSpectogram = new PolygonSpectogram(audioInstTrack); + vis.generateSection(0, 4); + add(vis); } else {