mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-12-01 08:37:17 +00:00
Merge pull request #214 from FunkinCrew/bugfix/remove-spectrogram
[BUGFIX] Chart Editor: Remove wonky spectrogram code
This commit is contained in:
commit
2a7c8587af
|
|
@ -1237,11 +1237,6 @@ class ChartEditorState extends HaxeUIState
|
||||||
*/
|
*/
|
||||||
var gridGhostEvent:Null<ChartEditorEventSprite> = null;
|
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.
|
* The sprite used to display the note preview area.
|
||||||
* We move this up and down to scroll the preview.
|
* We move this up and down to scroll the preview.
|
||||||
|
|
@ -1480,7 +1475,6 @@ class ChartEditorState extends HaxeUIState
|
||||||
this.updateTheme();
|
this.updateTheme();
|
||||||
|
|
||||||
buildGrid();
|
buildGrid();
|
||||||
// buildSpectrogram(audioInstTrack);
|
|
||||||
buildNotePreview();
|
buildNotePreview();
|
||||||
buildSelectionBox();
|
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.
|
* 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.setGraphicSize(Std.int(gridPlayheadScrollArea.width), songLengthInPixels);
|
||||||
gridPlayheadScrollArea.updateHitbox();
|
gridPlayheadScrollArea.updateHitbox();
|
||||||
}
|
}
|
||||||
|
|
||||||
buildSpectrogram(audioInstTrack);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue