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

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



Loading…
Cancel
Save