You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Theres a consistent crash when attempting to append any effects to a Pedalboard instance in a Windows 11 environment. This issue occurs specifically when using the append() method of the Pedalboard class. It crashes without throwing any Python exceptions or messages, just a 2 second delay before crashing entirely.
Error reproducing: 1. Run a script on Windows 11 that appends an effect (e.g., Reverb) to a Pedalboard object and processes a simple audio file.
2. Observe Behavior: The script crashes during the execution of the append() method.
This works perfectly fine on Arch/Ubuntu/Debain Linux, but for some reason it doesn't for windows.
import soundfile as sf
import sounddevice as sd
from pedalboard import Pedalboard, Reverb
import numpy as np
def read_and_process_audio(file_path):
# Read audio file
audio_data, sample_rate = sf.read(file_path)
print("Audio file read successfully.")
# Create a Pedalboard object, add a Reverb effect
board = Pedalboard()
reverb = Reverb(room_size=0.5, damping=0.5, wet_level=0.3, dry_level=0.7)
board.append(reverb)
print("Reverb effect added to the pedalboard.")
# Process the audio file with the pedalboard
processed_audio = board(audio_data, sample_rate)
print("Audio processed with reverb effect.")
return processed_audio, sample_rate
def play_audio(audio_data, sample_rate):
# Play processed audio
print("Starting playback...")
sd.play(audio_data, sample_rate)
sd.wait() # Wait until the audio has finished playing
print("Playback finished.")
if __name__ == "__main__":
file_path = "file.flac"
processed_audio, sample_rate = read_and_process_audio(file_path)
play_audio(processed_audio, sample_rate)
The text was updated successfully, but these errors were encountered:
g7gg
changed the title
Crash on Appending Effects to Pedalboard on Windows
Crash when Appending Effects to Pedalboard Object on Windows 11
Jul 16, 2024
Theres a consistent crash when attempting to append any effects to a Pedalboard instance in a Windows 11 environment. This issue occurs specifically when using the append() method of the Pedalboard class. It crashes without throwing any Python exceptions or messages, just a 2 second delay before crashing entirely.
Error reproducing:
1. Run a script on Windows 11 that appends an effect (e.g., Reverb) to a Pedalboard object and processes a simple audio file.
2. Observe Behavior: The script crashes during the execution of the append() method.
This works perfectly fine on Arch/Ubuntu/Debain Linux, but for some reason it doesn't for windows.
The text was updated successfully, but these errors were encountered: