mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-08-20 07:25:59 +00:00
Remove wonky Spectrogram code
This commit is contained in:
parent
a32bebb009
commit
398b2e386e
|
@ -1237,11 +1237,6 @@ class ChartEditorState extends HaxeUIState
|
|||
*/
|
||||
var gridGhostEvent:Null<ChartEditorEventSprite> = null;
|
||||
|
||||
/**
|
||||
* The waveform which (optionally) displays over the grid, underneath the notes and playhead.
|
||||
*/
|
||||
var gridSpectrogram:Null<PolygonSpectogram> = null;
|
||||
|
||||
/**
|
||||
* The sprite used to display the note preview area.
|
||||
* We move this up and down to scroll the preview.
|
||||
|
@ -1480,7 +1475,6 @@ class ChartEditorState extends HaxeUIState
|
|||
this.updateTheme();
|
||||
|
||||
buildGrid();
|
||||
// buildSpectrogram(audioInstTrack);
|
||||
buildNotePreview();
|
||||
buildSelectionBox();
|
||||
|
||||
|
@ -1881,16 +1875,6 @@ class ChartEditorState extends HaxeUIState
|
|||
}
|
||||
}
|
||||
|
||||
function buildSpectrogram(target:FlxSound):Void
|
||||
{
|
||||
gridSpectrogram = new PolygonSpectogram(FlxG.sound.music, FlxColor.RED, FlxG.height / 2, Math.floor(FlxG.height / 2));
|
||||
gridSpectrogram.x += 170;
|
||||
gridSpectrogram.scrollFactor.set();
|
||||
gridSpectrogram.waveAmplitude = 50;
|
||||
gridSpectrogram.visType = UPDATED;
|
||||
add(gridSpectrogram);
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the group that will hold all the notes.
|
||||
*/
|
||||
|
@ -4857,8 +4841,6 @@ class ChartEditorState extends HaxeUIState
|
|||
gridPlayheadScrollArea.setGraphicSize(Std.int(gridPlayheadScrollArea.width), songLengthInPixels);
|
||||
gridPlayheadScrollArea.updateHitbox();
|
||||
}
|
||||
|
||||
buildSpectrogram(audioInstTrack);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue