News for hackers. Stuff that matters.

magnusson

Re:A SoundCloud client in React and Redux on Monday June 13, 2016 @02:11PM (#11895905)
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.

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.
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!
Yes! Tis truly an exciting time to be playing synthesizers on the web!
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...

Very cool, thanks for sharing!
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.
If you have links to other websynths with similar "MIDI learn" functionality, I'd love to see them!
Ha, thank you Paul! Glad to know it's probably not my fault ;)
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

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!

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.
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.
Re:Hard Science About Diet on Saturday August 23, 2014 @04:02PM (#8216740)
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)."

Re:The drab stupidity of Soylent on Tuesday August 13, 2013 @10:27AM (#6205890)
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.
Re:The Obesity Era on Wednesday June 26, 2013 @05:30PM (#5949238)
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."

Re:The Obesity Era on Friday June 21, 2013 @10:08AM (#5918073)
>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."

Re:The Obesity Era on Friday June 21, 2013 @08:43AM (#5917742)
Acylation Stimulating Protein
Re:The Obesity Era on Friday June 21, 2013 @08:40AM (#5917729)
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.

Re:The Obesity Era on Friday June 21, 2013 @08:32AM (#5917695)
>(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.