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