-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (16 loc) · 682 Bytes
/
main.py
File metadata and controls
22 lines (16 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from audio import Audio
from postprocessing.volume_postprocessing import VolumePostprocessing
from postprocessing.channel_sine_postprocessing import ChannelSinePostprocessing
import pyaudio
paudio = pyaudio.PyAudio()
audio = Audio("MenuTheme2_final.wav", 2048, paudio)
# Append postprocessing effects
# audio.postprocessing.append(VolumePostprocessing(0.5))
# audio.postprocessing.append(ChannelSinePostprocessing(0.5))
# The pitch processor is variable and can be changed if needed
# The default processor is the linear pitch-processor. This method
# might lead to sabertooth like audio data.
audio.pitchprocessor.pitch = 0.9
while True:
audio.update()
paudio.terminate()