A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
973 B

  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "Kismet/BlueprintFunctionLibrary.h"
  5. #include "Sound/SoundWave.h"
  6. #include "Engine/CanvasRenderTarget2D.h"
  7. #include "Engine/Canvas.h"
  8. #include "ProceduralMeshComponent.h"
  9. #include "RenderWaveform.generated.h"
  10. /**
  11. *
  12. */
  13. UCLASS()
  14. class MEDIOCREMAPPER_API URenderWaveform : public UBlueprintFunctionLibrary
  15. {
  16. GENERATED_BODY()
  17. public:
  18. UFUNCTION(BlueprintCallable, meta = (DisplayName = "Render Spectrogram"), Category = "Render Spectrogram")
  19. static void BP_RenderWaveform(USoundWave* InSoundWaveRef, UProceduralMeshComponent* Mesh, float InSongPosition, int SizeX);
  20. UFUNCTION(BlueprintCallable, meta = (DisplayName = "Generate Spectrogram Mesh"), Category = "Render Spectrogram")
  21. static void BP_GenerateSpectrogramMesh(UProceduralMeshComponent* Mesh, int SizeX, int SizeY);
  22. private:
  23. static int To1D(int x, int y, int sizeX);
  24. };