Before rewrite

This commit is contained in:
Joppe Blondel
2026-10-05 10:07:47 +02:00
parent d7150ef2eb
commit 36b77d9cf6
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class FSKWriter:
self.space(1.0)
def space(self, time:float = 0.03):
self.samples.extend(b'\0'*int(time*self.sample_rate))
self.samples.extend(b'\0\0'*int(time*self.sample_rate))
def _tone(self, frequency: float, sample_count: int) -> None:
phase_step = 2.0 * math.pi * frequency / self.sample_rate
@@ -75,7 +75,7 @@ class FSKWriter:
l = len(data)
self.byte(l>>8)
self.byte(l&0xff)
self.samples.extend(b'\0'*int(self.samples_per_low*8))
#self.samples.extend(b'\0'*int(self.samples_per_low*8))
self.bytes(data)
self.byte(self.chsum(data))
self.space(self.block_spacing)