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
Just installed pysinewave and I'm a huge fan so far but I'm having a problem with sine.set_volume not working. I'm not sure if I'm just not using it correctly but here's the code I'm using:
import time
from pysinewave import SineWave
note = 12
vol = 30
sine = SineWave(pitch=note, pitch_per_second=20)
sine.set_volume(-100)
sine.play()
time.sleep(1)
sine.set_pitch(+14)
time.sleep(1)
sine.set_volume(-10)
time.sleep(0.5)
while True:
sine.set_pitch(+1)
time.sleep(0.075)
sine.set_pitch(-1)
time.sleep(0.075)
Originally, I was going to change the value of the volume with decibels from 30 to 20 or something similar just to test it out but it wasn't working so I went to extremes and tried 0 for the input as well as what I have above.
I'm using PyCharm to write my code on a M1 MacBook Air.
The text was updated successfully, but these errors were encountered:
Just installed pysinewave and I'm a huge fan so far but I'm having a problem with
sine.set_volume
not working. I'm not sure if I'm just not using it correctly but here's the code I'm using:Originally, I was going to change the value of the volume with decibels from 30 to 20 or something similar just to test it out but it wasn't working so I went to extremes and tried 0 for the input as well as what I have above.
I'm using PyCharm to write my code on a M1 MacBook Air.
The text was updated successfully, but these errors were encountered: