Commits
- Commit:
40c37b5c53a2635cfb1f4cb3a29c2a5f6648a0ea
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
use arc4random
While crappy old rand(3) is fine for this program and uses arc4random(3)
on OpenBSD anyway, the linker spews a warning about it and the noise
during compilation is annoying me.
FWIW, Linux finally got arc4random(3) with glibc >= 2.36 (2022) so it
could actually be considered fairly portable now. However, for the time
being, I'd like to still support older systems. NB, the closest "native"
alternative, getentropy(3), appears in glibc >= 2.25 (2017), so even it is
not exactly ancient, yet. Thur, instead of mucking around with wrappers,
feature flags and conditional compilation, rand() is still it for portable.
- Commit:
7100fec23ecb5b29fc48094dfc0c63b0a9f8f32f
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add coefficient (basemul) for base weight
- Commit:
d01528a063b3d747c9fe5ea5b7e56c7e85fef0a1
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
use overall rate as baseline weight
- Commit:
7e15a2c893e203a68e2edce3688ffbecb938cd8e
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
slightly reorder the code in cwinit
- Commit:
0f4e0bbca959251f256a285d829b6517430e7401
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
clean up return latency code in cwstop
- Commit:
02b03fabec05c9e959d5b89c8a5b06c5e4c1d330
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
remove debug output
- Commit:
237ea00efb38e4f4408ead5b7805aa612769e323
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
reset the clock in cwstart
This is a workaround to guard against the possibility that the onmove
callback is not called at all. This happens if playback has not started
before cwstop(), and hence sio_stop(), is called.
- Commit:
3f64dc1f60040ec3263499bb414cb69aefe967d9
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
fix timing calculation
Measure and take into account the "return latency" of cwstop(), i.e. the time
it took between playback stopping ang cwstop() returning, usually negative.
- Commit:
b232461a63350252e93337c1c0c30e53f2a8cb0a
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
try to figure out proper timing
This is an intermediate commit of some experimental changes:
- playback in synchronous mode (par.xrun = SIO_SYNC)
- tracking of play position via sio_onmove() and total frames written
- (broken/ignored) reporting of "time remaining" from sound() and friends
- debug instrumentation (#ifdef DEBUGTIME)
- Commit:
ed992560fbc706d9790080ef4361e6a48790dd69
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
UI styling
- Commit:
2a60333bac6c807055d7d87aa9eaff5ffd18e587
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
fix two typos
Turns out my times were measured in centiseconds rather than milliseconds
as advertised. Oops.
Only discovered when looking to make them exact for the first time. Had
mostly ignored the values as "probably way off anyway". That appears to
have been an accurate assessment. X)
It does show nicely how the algorithm doesn't care about absolute values.
It operated just fine on centiseconds.
- Commit:
7feee87ca3ff925f86f779cc9e50e989431906c3
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
mention MORSE_LEVEL again in README
- Commit:
658c8904c0678f0c8fbfaf4c752bd5fcf43b4d05
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
fix default values in NOTES
- Commit:
4ff4e76f99c53a244e00f23c1ab69fe22f00b5aa
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add CW_AMPLITUDE variable
- Commit:
a7dafd6f194e81639c91e50d75f205343d02eef2
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add toc section to README
- Commit:
5f021ff44f675e7c361c735a1273cddc9c92d2f9
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
mention portable branch
- Commit:
ecfbbf7a705824c60d0ed4751c2789755116fe18
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
integrate teacher mode in morse.c
- Commit:
1ae907d2e841d807a0de44f703a26a5ec3f410c6
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add missing header
- Commit:
8694a7799833a4543b1015916d34b4592de4d8d5
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
remove unneeded header
- Commit:
abcddb8e72f5c457c9c679c3f7587af349087c51
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
remove .boring
Artefact from darcs past, not used for git/got.
- Commit:
bb9909862e9df2f70d97daf8e741633b29385f13
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
expand notes on G4ILO version
- Commit:
e120e3077e4df9dd212f227021d1ce56cb280770
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
comment
- Commit:
ce0d6424ca093024b516454badfced4c3f5d4d15
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
rename sound() <-> play()
The function sound(char) is now the audio hook required by teach.c and should
"sound" the given character.
The function play(char *) is internal to morse.c for "playing" a sequence
of dits and dahs, given as a string of dots and dashes. The morseplay utility
(as before) exposes the same functionality.
This change also matches function name and signature of play() in the FreeBSD
version of morse.c.
- Commit:
cce21a4d4fb1285fd07ce47c0cc5a57392e09026
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
change default shape to sin rise, exp fall
I don't know what I'm doing. Just going by ear and pictures of purportedly
clean waveforms.
- Commit:
bd861c4e7af4398ec6472f4855e87cc01e0aea74
- From:
- Sven M. Hallberg <pesco@khjk.org>
- Date:
add raised inverted cosine (ric) shape
This is the sigmoid function (1 - cos(pi t)) / 2.
Also rename "icos" to "cos" to avoid confusion.