forked from Minki/OffiTracker
offitracker.py aktualisiert
This commit is contained in:
parent
478ad98720
commit
f81956bed7
@ -17,7 +17,6 @@ stop_signal = False
|
|||||||
def play_square_waves(output_stream, frequencies, effects, duration, amplitude=1, noise_amplitude=0, sample_rate=44100):
|
def play_square_waves(output_stream, frequencies, effects, duration, amplitude=1, noise_amplitude=0, sample_rate=44100):
|
||||||
if stop_signal == True:
|
if stop_signal == True:
|
||||||
output_stream.stop()
|
output_stream.stop()
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
num_waves = len(frequencies)
|
num_waves = len(frequencies)
|
||||||
t = np.linspace(0, duration / 1000, int(sample_rate * duration / 1000), endpoint=False)
|
t = np.linspace(0, duration / 1000, int(sample_rate * duration / 1000), endpoint=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user