magnusson
magnusson on Hacker News
Posted by
magnusson on Thursday June 20, 2024 @05:13PM
from the show-hn dept.
https://expo.dev/blog/from-web-to-native-with-react-native-and-expo
I wrote this guest post on the expo blog about what it was like to build my first native app — a flexible, offline media library — as someone with a web dev background.
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!
Posted by
magnusson on Monday September 21, 2015 @12:56PM
from the show-hn dept.
Yes! Tis truly an exciting time to be playing synthesizers on the web!
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.
Posted by
magnusson on Monday June 01, 2015 @08:15AM
from the show-hn dept.
Posted by
magnusson on Monday May 18, 2015 @10:12AM
from the show-hn dept.
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)."
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.
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."
>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."
Acylation Stimulating Protein
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/9094871Obese 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.
>(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.