Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
a1k0n
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
a1k0n
11y ago
Of course it is. It's actually a lot easier, as there are no envelopes and just one sample per instrument. Firehawk/TDA wrote this excellent player a while back: http://mod.haxor.fi/Purple_Motion/2nd_pm.s3m
92.
▲
by
a1k0n
11y ago
Hmm, I appear to have a sample loading overflow bug somewhere... http://www.a1k0n.net/code/jsxm/#nf-chill.xm Edit: pushed a fix... something is goofy with the sample data in instrument 4.
93.
▲
by
a1k0n
11y ago
It got renamed from JavaScriptNode to ScriptProcessor when it switched from webkitAudioContext to AudioContext, and it seems to be the best-supported way to do it. I don't see why not. But of course IE doesn't support it at all an
94.
▲
by
a1k0n
11y ago
Sorry, haven't worked that in yet...
95.
▲
by
a1k0n
11y ago
Funny, I just wrote one of these for the web. I don't oversample at 3.5MHz though. http://www.a1k0n.net/2015/11/09/javascript-ft2-player.html
96.
▲
by
a1k0n
11y ago
48kHz version, sounds slightly better: https://jsbin.com/zazifecaqe/1/edit?html,output
97.
▲
by
a1k0n
11y ago
FWIW, most of this code is actually contained inside for loop expressions, since you can chain them together with commas and get away without using any braces. Once that's done it's hard to even count "lines".
98.
▲
by
a1k0n
11y ago
I am a big fan of viznut also, and took the liberty of translating this into Javascript so we can all hear it without trying to find a /dev/dsp analog (I used ./viznut | sox -t raw -e unsigned -b 8 -r 8000 - -d): https:/
99.
▲
by
a1k0n
11y ago
Speaking of crazy ascii company logo animations, I never got a chance to golf these down, but I made some with color and signed distance field ray marching: https://github.com/a1k0n/asciitracing
100.
▲
by
a1k0n
11y ago
I transformed the code into something sort of readable, although still somewhat difficult to understand: https://gist.github.com/a1k0n/15f6cc2fc9428d6fd197
101.
▲
by
a1k0n
11y ago
I went ahead and changed the title on my site, because I am also sick of that comment.
102.
▲
by
a1k0n
11y ago
IIRC, Piper is a reimplementation of the perforce backend, in order to handle the code size and the sheer number of "changelists" submitted per second. Nothing to do with code.google.com.
103.
▲
by
a1k0n
11y ago
My theory is that it's also being written to the RPi's serial port console, which runs at 115200 baud by default, so 11520 characters/second or ~7ms to write 80 characters.
104.
▲
by
a1k0n
11y ago
He even has a quadrature (as in, sine and cosine) oscillator for any frequency, using only integer adds and multiplies, which would obviate the lookup table used in this post. It's a bit like masswerk's post above, except with a
105.
▲
by
a1k0n
11y ago
Because the desktop app got a ground-up rewrite and cmd-f didn't make it back in to all views yet.
106.
▲
by
a1k0n
11y ago
I never finished my bachelor's and Google hired me for a senior position. There were several intervening years of experience though. And while I don't regret leaving the college program I was in, do regret not completing a decent
107.
▲
by
a1k0n
11y ago
FWIW, I gave a talk about the Alternating Least Squares algorithm mentioned here (and linked in several comments) and how we implemented it at Spotify: Slides: http://www.a1k0n.net/spotify/ml-madison/ Video (for t
108.
▲
by
a1k0n
11y ago
That's not actually true. The matrix they're talking about inverting here is actually just a square matrix of 8x8 or 128x128 (in their graphed example) to solve the alternating least squares problem, in the paper you linked. What
109.
▲
by
a1k0n
11y ago
Or, more likely, they just use the mobile app.
110.
▲
by
a1k0n
11y ago
And computed gotos, which just jumps to a pointer, which is a gcc extension. That's totally crazy, but sort of awesome.
111.
▲
by
a1k0n
11y ago
> Very lazily, I just normalized all probabilities across each transition so that each transition “mega bar” is kind-of the same height. I’m sure there’s a better way to do it, the community is invited to improve! The size of the bars is
112.
▲
by
a1k0n
12y ago
I'm really confused. It appears to have no HDFS support? So how do you get data in and out of the cluster? I guess the InputFormat just takes care of that magically? Also the code isn't even close to Google style. I guess that
113.
▲
by
a1k0n
12y ago
The VCO (HMC431LP4) seems to be more like $20, though. edit: should have read the rest of the article after the schematic where he says as much
114.
▲
by
a1k0n
12y ago
Take a look at how avrdude works over libusb. That's a pretty good example of bulk-upload and bulk-download and various types of things you're likely to want to do with a microcontroller.
115.
▲
by
a1k0n
12y ago
You could always just use libusb to talk to your device (e.g., an AVR w/ V-USB or another microcontroller with actual USB support) from user space, instead of fooling around with fake COM ports.
116.
▲
by
a1k0n
12y ago
The current network hash rate is ~240e15 hashes/second (240 million gigahashes/sec). So 54282 hashes/second as a fraction of the current network hash rate is 226e-15, which would yield approximately 5.65e-12 bitcoins every 10
117.
▲
by
a1k0n
13y ago
Definitely a plastic rivet. It's too pointy to be a bolt, and you can see the thin 'head' separated from the flange which releases it.
118.
▲
by
a1k0n
13y ago
I didn't see this mentioned in those articles, so I figured I'd mention it: If the level has a lot of geometry, you could also make a BSP tree, and then at runtime you'd just have an O(log n) lookup, plus an O(m log m) runnin
119.
▲
by
a1k0n
13y ago
Just because it doesn't have the ,1 doesn't mean it's written in BASIC; it could still be written in machine language with a BASIC stub that executes the actual code (which is loaded into the BASIC memory area but isn't
120.
▲
by
a1k0n
13y ago
I really dig the chiptune soundtrack on game #5.
More ›