HNHacker News
TopNewBestAskShowJobs

ctrager

608 karma · joined July 5, 2009

submissionscomments
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
That's included in "etc"
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
You might enjoy this article: https://stringsmagazine.com/perfect-fifths-a-few-thoughts-on...
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
FFT is configurable at the bottom of the page, but for me it gets unpleasantly laggy if I make it bigger than 4096
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
You must have a very pure voice!
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
Just FYI, notice the configurable "Sensitivity" setting. The default of 12 let's you miss by about a quarter of a tone (half step) either way.
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
I coded for transposing up or down by an octave, but not by other intervals. I imagine it wouldn't be hard for somebody to fork/modify the code to transpose by thirds, etc.
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
Yes, sure. And TBH, even though I wrote this for my wife learning viola, I have since banned her from using it (don't worry - I have no power, she completely ignores my ban). I encourage her to use her ears rather than her eyes for monitoring her pitch, cuz, irl, that's what has to happen.
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
I'm not any sort of scientist - everything I know about the topic I learned from trying to code this thing - but don't think of the sound wave coming from your viola as a simple sine wave. It's way more complex than that, with all the overtones/harmonics happening in addition to the note you think you are playing. The logic for deciding which pitch you are playing is fuzzy, and you can tweak the logic with the settings at the bottom of the page.
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
I think what you are referring to is "temperment", and a TLDR version of that topic would be that for tuning a piano so that it can sound in tune no matter what key, it is tuned to be evenly out of tune everywhere, aka, "equal temperment". This little app follows equal temperment. A string player playing unaccompanied solo might tend to play in a way that sounds better, aka, "just temperment", and so would seem to be out of tune according to this tool.
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
I wrote this for my wife who is learning to play viola (I play violin at a barely endurable amateur level). It was to help her improve her intonation. As you play it draws the notes that you are playing on the musical staff, coloring them black for in tune, red for sharp, blue for flat. It's one single html/javascript file, no server.

This page works on my Thinkpad/Ubuntu laptop, but won't work on my Android phone, I don't know why. It probably won't work if you try to sing into it rather than play an instrument because the human voice is so complex, in terms of its wave form. I guess. I'm a barely endurable amateur in this domain too. But if you have a musical instrument handy, it might entertain you for a few minutes.

ctrager··on Ask HN: Show me your half baked project
my python *script
ctrager··on Ask HN: Show me your half baked project
OMG, they've raised $4 million dollars??!! Clearly I'm not as clever at monetizing my ideas.
ctrager··on Ask HN: Show me your half baked project
See my comment above. The cameras are on my WIFI network. They provide a URL you connect to and that gives you a stream. My python stream connects to that stream so I can watch my birdfeeder by looking at my laptop stream. FYI, VLC also knows how to be a RTSP client.
ctrager··on Ask HN: Show me your half baked project
Amcrest IP2M-841B. This works the best of the three I've tried.

The other two:

The cheap Wyze cameras which special software that gives access to the RTSP stream, but the stream is so jerky it creates too many false alarms to be useful. If you just want to have a cheap security camear, though, these Wyze cameras are fun.

I've also tried using a Reolink camera with Neolink to get at the RTSP stream, but it wasn't super stable. Missing frames. I wonder if that's because my laptops are old and slow. I don't know.

I've also tried using a Raspberry Pi with a camear. Get the camera that you can focus. Here's a video I got with the that combo https://drive.google.com/file/d/1rMmap4fWgj8iTAYCo5eNaTDMLlO... Using this script: https://github.com/ctrager/opencv_py/blob/master/hummingbird...

ctrager··on Ask HN: Show me your half baked project
A birdfeeder, a security camera, and this python script: https://github.com/ctrager/opencv_py/blob/master/red_yellow_...

I want to record visits to my birdfeeder but not all the visits. 99% of the visitors are sparrows, which, no offense to any sparrows reading this, are dull colored. I want to capture the cardinals, bright red birds. The python script monitors the video stream and starts recording when the image gets suddenly redder. But it's configurable to also react to blue (bluejays) and yellow (goldfinches).

This is barely baked, just a script.

A video: https://drive.google.com/file/d/1vUjYrTwJkPVUlWIYQ6_qA9t1tqi...

ctrager··on Why Jira Sucks
When I read the list of reasons "Why Jira Sucks" what came to mine was the Charlie Kaufman movie "Synecdoche, New York". In that movie, a playwright keeps expanding the scope of a play to more and more encompass the scope of reality itself. Likewise, some of the points (1, 2, 3, 5...) in the writer of "Why Jira Sucks" wants Jira to be bigger, to encompass the variety of ways work can flow.
ctrager··on Show HN: Thruhikes – A list of long distance hikes around the world
I do agree that the altitude must be taken seriously. I've gotten sick. That's why I did write to camp the night before near the trailhead, at 9,000/10,000, and to be okay with NOT going over the pass on day one. Maybe that's enough to acclimate, maybe not. If you feel terrible when you wake up for day one, don't hike, go into Bishop and get a steak at the Bowling Alley. If you feel terrible while hiking on day one, turnaround. But for most people, probably, with that one night's sleep at altitude the day before the hike and a slow first day, they will be okay.

We're talking pretty much about the same altitude situation as going to a ski resort in Colorado.

The thing is, I want even the beginner to experience spectacular mountain scenery so in the USA, that usually means hiking at 10,000, above the tree line.

ctrager··on Show HN: Thruhikes – A list of long distance hikes around the world
Regarding remote - I live in Chicago. The nearest decent place to backpack is a 7 hour drive North, and it's nice, but it's the Midwest, not the mountains. For mountains, the last time I went backpacking in the Sierra, it took me about 24 hours and a taxi, an airplaine, a bus, another bus, an uber, and one more bus to get to the trailhead. That's why for me, getting to Bishop, not so bad.
ctrager··on Show HN: Thruhikes – A list of long distance hikes around the world
Regarding "Bishop/Kearsarge passes are quite remote and rugged". I'm not sure what this means, but obviously everybody has their own personal database of experiences.

The town of Bishop would be your base, and you can get there with public transportation from the airport in Reno, NV. Good stores if you need to replace equipment.

The roads to the trailheads are paved - a normal passenger car can handle the roads. Only about an hour from Bishop. There are commercial shuttles too. Even hitchhiking (I've done it, and I'm an ugly old man, and still had no trouble getting rides). The parking lots are already at high altitude, about 10,000 feet, so you only have to go another 2,000 to get over the passes.

The actual trails are in good shape, good surfaces, not narrow, not scary. There are places to camp both before and after the highest point of the passes so you can hike at your own pace. If you wanted to camp at the trailhead the night before to get adjusted to the altitude, then go just, say, just 5 miles and 1200 feet your first day, you could do that, and the trails are beautiful the whole way.

ctrager··on Show HN: Thruhikes – A list of long distance hikes around the world
I just want to add, for actual American-style backpacking, I think the best place for somebody who wants a managable challenge is the Sierra Nevada mountains in California, maybe a trip that would have you enter the mountains via Bishop or Kearsarge passes. Here are things that can make a backpacking trip easier or harder:

* Grizzly Bears - Some great backpacking places - the Winds, Alaska - have grizzly bears which require more discipline about food. In the Sierra, there are bears but no history of them eating people.

* Lightening - Not as likely to make you shit in your pants as the Rockies in Colorado or Wyoming.

* Water - Some great backpacking places - the Grand Canyon - you MUST get from point A to point B that day because you need that water at point B, there's no water along the route. Water sources are plentiful in the Sierra

* Where to camp - Some great backpacking places - the Grand Canyon, the Tetons - are tightly regulated by permit as to where you can camp each night, so you have to know your pace beforehand and then stick to the plan. The permit system in the Sierra is easier - you pretty much just say where you are entering and exiting

* People - if you are a novice, it's good to have other people around, not too many and not too few. There will be more or less the right number of people around in the Sierra

* Logistics - Getting to the trailheads from Bishop, CA, not so hard.

* Reward - So beautiful. You have long distance views. You aren't just in the trees.

* Lyme Disease, etc - Not so bad.

ctrager··on Show HN: Thruhikes – A list of long distance hikes around the world
Consider the Camino de Santiago. I've done the last 300 km. The distance between places to stay is manageable, lots of infrastructure, lots of friendly people who could help you if you get stuck. You don't need to carry much because you sleep indoors and there is food available along the way.

The next step would be doing a hut/refuge to hut/refuge hike in the Alps. A hut/refuge is a hotel with a restaurant, private rooms, dorm rooms. They are hundreds (thousands) of them throughout the Alps. You can arrange them yourself for multiday hikes. There are an infinite number of routes, but a good starting place would be this publisher of guidebooks: https://www.cicerone.co.uk/. Likewise, you only need to carry your lunch, but you do need more clothes because mountain weather can be unpredictable and dangerous.

I've personally done the "Tour de Vanoise" which I think is easy enough for novices and the "Stubai Hohenweg" which was definitely harder and scarier.

Actual backpacking (tent/sleeping bag, etc) is harder because you need more equipment but a good way to start in the United States might be by doing a group trip with The Sierra Club or a local club (meeetup.com) or commercial trip (REI?). I've done many Sierra Club trips.

ctrager··on Ask HN: Favorite Podcast Episode of 2020?
Nice White Parents https://www.nytimes.com/2020/07/23/podcasts/nice-white-paren...
ctrager··on Show HN: Are you playing your violin (viola, guitar, etc.) in tune?
I wrote this for my wife who is learning to play viola (I play violin at a barely endurable amateur level). It was to help her improve her intonation. As you play it draws the notes that you are playing on the musical staff, coloring them black for in tune, red for sharp, blue for flat.

It's one single html/javascript file, no server.

This page works on my Thinkpad/Ubuntu laptop, but won't work on my Android phone, I don't know why. It probably won't work if you try to sing into it rather than play an instrument because the human voice is so complex, in terms of its wave form. I guess. I'm a barely endurable amateur in this domain too. But if you have a musical instrument handy, it might entertain you for a few minutes.

ctrager··on Reverse engineering a camera protocol for fun and profit
I tried using their RTSP for my own motion detection logic (python, opencv, pointing at my birdfeeder) but the stream is too glitchy. So far the Amcrest IP2M-841 is working best for me.
ctrager··on Reverse engineering a camera protocol for fun and profit
I'm a retired software dev. Before the pandemic I hadn't coded in 4 years, but somehow got the itch. One of the things I've been playing with is pointing a security camera at my birdfeeder, but I'm not so interested in clips of boring brown sparrows. Instead I want clips of bright red cardinals and bright yellow goldfinches. So I wrote some python opencv code that reacts to color changes: https://github.com/ctrager/opencv_py/blob/master/red_yellow_...

This is working for me with an Amcrest camera, but I also got a Reolink E1 thinking it supported RTSP and felt cheated when I learned it didn't. I'll be playing with Neolink the rest of the day. Thanks.

ctrager··on FFmpeg 4.3
I've been feeling stupid these past few days because I've been using ffmpeg for the first time. I've been trying to take an rtsp stream from a security camera and transcode it, restream it, to something that can be viewed in an html video tag. It works, with poor quality, in Firefox, but in Chrome just a green screen. (I also tried using vlc/cvlc's streaming). I've been feeling stupid because of all the copy/pasting from the web into the command line without understanding what I was doing.
ctrager··on AudioMass – free, open source, web-based Audio and Waveform editor
I had tried it briefly because my favorite youtube violin teacher Beth Blackerby recommended it in one of her videos, and it's great. But, I wanted the experience of coding something myself (I'm retired, hadn't coded in four years, lockdown has made me antsy) and I wanted something that was a standalone single HTML file, and I wanted something that felt easier. So, I ignore the time dimension and paint the notes on the staff the way a player is used to reading them rather than Intonia's interface which looks more technical.
ctrager··on AudioMass – free, open source, web-based Audio and Waveform editor
All the tools have links at the bottom to their respective github repos, so contact via github.
ctrager··on AudioMass – free, open source, web-based Audio and Waveform editor
I can't really make it work with singing either, but it works well when I play violin. My motivation is just pitch, to give feedback to me playing violin or my wife trying to learn viola.
ctrager··on AudioMass – free, open source, web-based Audio and Waveform editor
Please forgive me for being self-centered. I DO think AudioMass is great. I'm running it locally and I even contributed by posting a legit issue in github. But here's the self-centered part: The other day I posted a "Show HN" for something web audio related that I wrote and got crickets so I'd like to try again: https://ctrager.github.io/music_tools. Especially check out "Pitch Detector". All three tools are standalone single HTML files that don't need a server.
← PreviousPage 2 of 5Next →