diff --git a/main.py b/main.py index 7187afc..36d74ea 100644 --- a/main.py +++ b/main.py @@ -13,7 +13,7 @@ def main(): offset = timing.offset print(beatmap.audio_filename) - timings, amplitudes = sound_process.process_song(beatmap.audio_filename, bpm, offset0=offset, n_iter_2=-1) + timings, amplitudes = sound_process.process_song(beatmap.audio_filename, bpm, offset=offset, n_iter_2=-1) # NOTE : remove n_iter_2 to map the whole music beatmap._hit_objects = place.greedy(bpm, offset, timings, amplitudes) diff --git a/sound_process.py b/sound_process.py index 0ea12c5..4958373 100755 --- a/sound_process.py +++ b/sound_process.py @@ -103,8 +103,7 @@ def get_freq(song_name, offset, step, songlen, data, display=False): times = [] current_time = offset k = 0 - - subprocess.run(["ffmpeg", "-ss", str(offset), "-t", str(offset+songlen), "-i", song_name, "crop.wav"]) + subprocess.run(["ffmpeg", "-ss", str(offset), "-t", str(offset+songlen),"-i",song_name, "crop.wav"]) sample_rate, global_data = wavfile.read("crop.wav") #blit = int(len(global_data) / len(data))