Discussion:
[Freetel-codec2] cohpsk in java
Steve
2015-11-07 20:30:09 UTC
Permalink
I tried valiantly to use the C method of complex variables in Java, but all
I got was some really nasty audio. Finally, last night I threw in the
towel, and went back to using a complex class. Poof, I started getting
reasonable modem audio immediately.

Well, reasonable, but there are some audible problems (bugs) that are left.

There is something about Java that I haven't figured out yet (or never),
concerning complex math. Although the vocoder program seems to work fine,
there is very little complex math in that.

I've thought about two algorithms using the same math function at the same
time. I suspect if I wrapped each math function in a synchronizer it would
work fine. To heck with that, might as well just use a class. I miss
Fortran :-)

The only problem with complex classes is that it is a flurry of class
creation and deletion. Not really a problem in my host, as I have plenty of
memory and speed. Still though, you'd rather just have a speedy algorithm
like in C.

73, Steve

Loading...