András Veres-Szentkirályi
9bf312ca85
added SSTV.on_init() hook
2013-11-22 18:19:00 +01:00
András Veres-Szentkirályi
4d56f34a72
gen_values: fixed FM sample repetition bug
...
In the previous version, the FM modulator issued the last sample of the
previous frequency-time tuple twice, once as the last sample of the
previous tuple, once as the first sample (sample = 0) of the next one.
2013-11-22 17:00:53 +01:00
András Veres-Szentkirályi
18dab4e0d3
gen_values: initialize local variable 'sample'
...
although in practice, this shouldn't happen -- I tried lowering the
sample rate, and even at 10 samples/sec with Martin M1, it worked, and
SSTV requires at least 4000 samples/sec
(1 sample/sec raises an error though, if you'd like to try)
2013-07-02 15:21:33 +02:00
András Veres-Szentkirályi
10c85423d4
removed unused import math.floor
2013-07-02 15:18:12 +02:00
András Veres-Szentkirályi
3e49c90394
moved freq * factor outside sampling loop
2013-07-02 15:12:43 +02:00
András Veres-Szentkirályi
33c983ac8f
gen_samples: replaced int(round()) with int()
2013-07-02 15:06:05 +02:00
András Veres-Szentkirályi
c29f696489
gen_values: siplified increment operation
2013-07-02 14:05:07 +02:00
András Veres-Szentkirályi
92fda0cd1f
replaced int(floor()) with int()
2013-07-02 13:51:06 +02:00
András Veres-Szentkirályi
649a4b2140
simplified and optimized offset calculation
2013-07-02 11:55:16 +02:00
András Veres-Szentkirályi
dcb194a5f0
gen_values: precalculate sin() param factor
2013-07-02 11:46:01 +02:00
András Veres-Szentkirályi
f0a2076a68
moved multichannel logic to write_wav
2013-07-01 23:14:28 +02:00
András Veres-Szentkirályi
30ec459a22
precalculate additive noise
2013-07-01 20:36:28 +02:00
András Veres-Szentkirályi
1f5e2963ef
avoid min/max function calls per sample
2013-07-01 16:32:00 +02:00
András Veres-Szentkirályi
7560c8f37f
replaced struct with array
2013-06-26 11:22:30 +02:00
András Veres-Szentkirályi
808a47fa6d
use integer division to avoid float amplitude
2013-06-26 11:21:04 +02:00
András Veres-Szentkirályi
4ce9d15b39
added option for multiple channels
2013-06-24 17:05:21 +02:00
András Veres-Szentkirályi
391377551c
moved source to pysstv directory
2013-06-24 13:40:57 +02:00