public async void AdjustPitchForCutEffect() { return; Logger.log.Error("AdjustPitchForCutEffect"); player.SetPitch(1f); //must initialize IDifficultyBeatmap diffBeatmap = BS_Utils.Plugin.LevelData.GameplayCoreSceneSetupData.difficultyBeatmap; CustomPreviewBeatmapLevel customPreviewBeatmapLevel = diffBeatmap.level as CustomPreviewBeatmapLevel; if (customPreviewBeatmapLevel != null) { string customLevelPath = customPreviewBeatmapLevel.customLevelPath; string songFileName = customPreviewBeatmapLevel.standardLevelInfoSaveData.songFilename; string filepath = customLevelPath + "\\" + songFileName; Logger.log.Error("custom level path = " + filepath); AudioClipController customSong = new AudioClipController(); await customSong.LoadAudioClipWithWebRequest(filepath, AudioType.OGGVORBIS); } }
private void AdjustTapKey(AudioClip audioClip, CutEffectPlayer cutEffect) { float pitch = KeyFinder.AdjustPitch(audioClip, 21); //KeyFinder側に定数マクロを持つべきだが... cutEffect.SetPitch(pitch); }