@@ -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)) | |||