Browse Source

Soundbug behoben

master
Heiko Ommert 4 years ago
parent
commit
542c102436
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      TinnitusAnalyse/SoundGenerator.py

+ 0
- 2
TinnitusAnalyse/SoundGenerator.py View File

@@ -118,11 +118,9 @@ class Sound:
# Sinus ins Array schreiben: f(t) = A * sin(2 * pi * f * t)
for x in range(frames):
# links:
if self.tinnitus.linksLautstaerke:
outdata[x][0] = self.tinnitus.linksLautstaerke * np.sin(2 * np.pi * self.tinnitus.linksFrequenz *
((x + self.start_idx) / self.framerate))
# rechts:
if self.tinnitus.rechtsLautstaerke:
outdata[x][1] = self.tinnitus.rechtsLautstaerke * np.sin(2 * np.pi * self.tinnitus.rechtsFrequenz *
((x + self.start_idx) / self.framerate))


Loading…
Cancel
Save