Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jwosty
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
I reinvented the wheel last week, and here's why
(goq2q.net)
3 points
by
jwosty
5y ago
|
0 comments
2.
▲
by
jwosty
5y ago
It's usually gonna be easier to tell what went wrong in an ASCII string array than a raw float[]. It's for the human reading/fixing the test.
3.
▲
by
jwosty
5y ago
> I'm also curious what the state-of-the-art is for these sorts of tests. Does anyone have insight into what e.g., appleton's test suite looks like? I don't know, but if I were to make an educated guess, maybe rendering st
4.
▲
by
jwosty
5y ago
I've added an fssnip for the ASCII renderer. It uses NAudio. Should be pretty easy to use. http://www.fssnip.net/85g
5.
▲
by
jwosty
5y ago
I just might have to try this next.
6.
▲
by
jwosty
5y ago
In short, because text is much easier to deal with than bitmaps, and there is much more tooling that "just works" for text than actual graphics, like Expecto's textual diffing in assertations. @MayeulC said it well: https:&#
7.
▲
by
jwosty
5y ago
Fair points here. Unfortunately adding more vertical resolution starts to get a little unwieldy to navigate through. Maybe it could start using different characters to multiply the resolution to something sufficiently less forgiving of erro
8.
▲
by
jwosty
5y ago
That’s interesting. Do you think sixels could work for the baseline tests? Would it be feasible to have them display nicely in an IDE, like VS Code or Visual Studio?
9.
▲
by
jwosty
5y ago
That looks right up my alley, thanks for the link!
10.
▲
by
jwosty
5y ago
Thanks, I like to think so! I didn't see other people doing much audio programming in F#, so I figured someone would be interested in seeing what it can look like.
11.
▲
by
jwosty
5y ago
That's true that it quantizes (aka bins) the samples, so it isn't right for tests that need to be 100% sample-perfect, at least vertically speaking. I suppose it is a compromise between a few tradeoffs - easy readability just from
12.
▲
by
jwosty
5y ago
Not yet, but it certainly could be. Would it be useful to publish the helper classes that render the waves out to ASCII? That's really the guts of the thing. After that, you just use whatever testing framework you want to do the actual
13.
▲
Using ASCII waveforms to test real-time audio code
(goq2q.net)
121 points
by
jwosty
5y ago
|
70 comments