Better HN
topnewbestaskshowjobs
Log inSign up

magnusson

123 karma · joined Oct 18, 2012 (14y ago) · 26 submissions

Submissions

1.

Show HN: From web dev to shipping my first native app(expo.dev ↗)

3 points · by magnusson · 2y ago · discuss

comment 10y ago · link · parent

FWIW redux-form v6 changes this: https://github.com/erikras/redux-form/releases

I've been using redux-form in large production app, btw, and have mostly found it nice, but am looking forward to migrating to the new version.

comment 11y ago · link · parent

I implemented local caching for all the API calls, so it shouldn't be exceeding the rate limit as much now, plus load times should generally be quicker.

comment 11y ago · link · parent

FYI for anyone still coming in, this has been up and down all day due to the fact that Uber's API is rate limited to 1000 requests/hour. I contacted support and asked for an increase but they haven't gotten back to me yet. So if you want to see it and it's not working, check back on the next hour. Sorry about that and thanks for looking!

5.

Show HN: Charting live Uber data in multiple cities with React/Redux/d3(resistorsings.com ↗)

5 points · by magnusson · 11y ago · 2 comments

comment 11y ago · link · parent

Yes! Tis truly an exciting time to be playing synthesizers on the web!

comment 11y ago · link · parent

Hm, yeah, that would be a cool thing to publish separately. The MIDI mapping code is pretty much isolated to these two objects [1] [2], but I'd have to do a little thinking about how people would want to use it, and separating it from Backbone would take some work.

[1] https://github.com/stevengoldberg/juno106/blob/master/js/vie...

[2] https://github.com/stevengoldberg/juno106/blob/master/js/mod...

comment 11y ago · link · parent

Very cool, thanks for sharing!

comment 11y ago · link · parent

Well, the real 106 doesn't have an arpeggiator either (without mods anyway) -- only the 6/60 do. I don't think it'd be too hard to implement one though, so I may do that soon.

comment 11y ago · link · parent

If you have links to other websynths with similar "MIDI learn" functionality, I'd love to see them!

comment 11y ago · link · parent

Ha, thank you Paul! Glad to know it's probably not my fault ;)

comment 11y ago · link · parent

There are lots of websynths that respond to MIDI note messages, and I've seen some that respond to CCs as well -- e.g. the midi-synth [1] by Chris Wilson (editor of the WebAudio and WebMIDI specs) -- but in that case, the CC messages are hardcoded to the UI. (It also doesn't support 14-bit messages.)

In 106.js, every UI control is arbitrarily assignable to any MIDI CC message, so you can map it to your device however you like. That's a feature I'm used to ("MIDI learn") from desktop DAWs, but haven't seen in any other websynths yet.

You won't be able to see the UI for this feature at all unless you've got a MIDI controller plugged in, though.

[1] https://github.com/cwilso/midi-synth

comment 11y ago · link · parent

In Firefox the envelope release is broken, and overall performance seems worse compared to Chrome, for reasons I haven't really bothered to investigate deeply. It mostly works in Safari, but Safari does something different with garbage collection of audio nodes, so the note-stealing behavior doesn't work right.

Basically, use Chrome for now if you want it to play nice. WebMIDI is only supported in Chrome anyhow.

Also, 100% agreed on TAL U-NO-LX, it's one of my favorite plug-ins and the price is great!

comment 11y ago · link · parent

Re the 0-127 range, you may be familiar with this, but many devices are capable of sending 14-bit MIDI messages by combining 2 different MIDI CCs, allowing for much finer control. 106.js supports both 7 and 14-bit messages.

comment 11y ago · link · parent

Ha! I dunno, what occurs to me is how cool it is that we can still get so much use out of MIDI, a standard adopted in 1983.

16.

Show HN: The first websynth that's 100% mappable to a MIDI controller(github.com ↗)

122 points · by magnusson · 11y ago · 46 comments

17.

Show HN: Play an 80s synth in your browser with 106.js (Chrome/Desktop only)(resistorsings.com ↗)

3 points · by magnusson · 11y ago · discuss

comment 12y ago · link · parent

From the first citation in the above comment:

>De novo lipogenesis in humans: metabolic and regulatory aspects. http://www.ncbi.nlm.nih.gov/pubmed/10365981

"Eucaloric replacement of dietary fat by CHO does not induce hepatic DNL to any substantial degree. Similarly, addition of CHO to a mixed diet does not increase hepatic DNL to quantitatively important levels, as long as CHO energy intake remains less than total energy expenditure (TEE)."

comment 13y ago · link · parent

http://nutritiondata.self.com/facts/cereal-grains-and-pasta/...

http://nutritiondata.self.com/facts/sweets/5606/2

comment 13y ago · link · parent

White rice is a starch, which is a complex carb, and does not have "a nutrition profile closely related to table sugar." Other than that, this is on-target. All of longest-lived populations eat primarily carb-based diets.

comment 13y ago · link · parent

Fat-burning stops when you consume fat, not just when you consume carbs.

Effects of an oral and intravenous fat load on adipose tissue and forearm lipid metabolism. http://www.ncbi.nlm.nih.gov/pubmed/9950782

"Six subjects were fasted overnight and were then given 40 g of triacylglycerol either orally or as an intravenous infusion over 4 h. Intracellular lipolysis (hormone-sensitive lipase action; HSL) was suppressed after both oral and intravenous fat loads (P < 0.001). Insulin, a major regulator of HSL activity, showed little change after either oral or intravenous fat load, suggesting that suppression of HSL action occurred independently of insulin."

comment 13y ago · link · parent

>a very limited amount of dietary fat can be stored as body fat

In the complete absence of insulin, maybe, which is almost never the case in normal dietary conditions, since both protein and carbohydrate stimulate insulin secretion. But dietary fat is nonetheless the primary source of body fat; direct conversion of dietary carbohydrate to body fat is not a quantitatively significant process in humans except for in extreme conditions. See De novo lipogenesis in humans: metabolic and regulatory aspects. http://www.ncbi.nlm.nih.gov/pubmed/10365981

"Only when CHO energy intake exceeds TEE does DNL in liver or adipose tissue contribute significantly to the whole-body energy economy."

comment 13y ago · link · parent

Acylation Stimulating Protein

comment 13y ago · link · parent

As a practicing internet commenter I will go out on a limb and say that's nonsense. Sugar tends to promote overeating because it makes foods highly palatable and rewarding to eat, but it doesn't cause fat gain independently of an energy surplus. See Surwit et al, Metabolic and behavioral effects of a high-sucrose diet during weight loss. http://www.ncbi.nlm.nih.gov/pubmed/9094871

Obese women consuming a hypocaloric diet with 71% of their daily energy as carbohydrate and 43% of it as sucrose had no trouble losing fat. "Results showed that a high sucrose content in a hypoenergetic, low-fat diet did not adversely affect weight loss, metabolism, plasma lipids, or emotional affect."

Moreover, all carbohydrates, as well as protein, stimulate insulin release, and insulin is not in itself problematic: http://weightology.net/weightologyweekly/?page_id=319

Reducing carbohydrate intake can be an effective weight loss method, but that doesn't mean that carbohydrates intake is uniquely responsible for obesity to begin with. http://wholehealthsource.blogspot.com/2011/08/carbohydrate-h...

All of the world's longest-lived populations consume carbohydrate as their primary macronutrient.

comment 13y ago · link · parent

>(One study found that a group of people who lost 10% of their weight through dieting had their resting metabolism decline by an average of 15%.)

Can you post a link to this study?

>We don't actually know how TDEE reacts to weight loss in general

I don't think this is something "we don't actually know." Lots of weight loss studies have been done in which energy expenditure has been carefully measured, so there's plenty of data on this.