3 ms·
fun project! if you arent married to python, or the idea of writing a bunch of superfluous code (:P) fft'ing a sound is pretty trivial, and creating a sound at
by the_cat_kittles 9y ago
fun project! if you arent married to python, or the idea of writing a bunch of superfluous code (:P) fft'ing a sound is pretty trivial, and creating a sound at that frequency is also trivial from command line. i google for 15 seconds, looks like this library https://aubio.org/manual/latest/cli.html https://aubio.org/manual/latest/cli.html would work fine with something like
aubio notes -r $(aubio pitch myfile.wav)
would probably do it. i love python as much as the next person, but sometimes... ah well, cool project anyway!
- danbolt 9y agoAs much as I’d likely end up using some sort of scripting language for something like this, being able to do it via command line is always lovely.
- nurettin 9y ago"doing X in python" titles are a recurring theme in HN. I don't care much about the language, especially because of silly syntax like explicit self on methods (oh yeah, they have the "zen philosophy" of explicit vs implicit where every other thing in the language is implicit except this) and obviously broken tooling that installs an old version of pip when you create a virtual environment.
- jsjohnst 9y ago“complaining about X” when X isn’t your preferred tool of choice also sadly seems to be a recurring theme on HN comments. Where’s your post about doing something similar in your tool of choice?
- nurettin 9y agohere you go: http://blog.nurett.in/post/171958522813/python3-for-frustrated-rubyists http://blog.nurett.in/post/171958522813/python3-for-frustrat...
- abhirag 9y agoI have no intention of starting or getting into a flame war between Ruby and Python, both are great languages but I can help with the Python tooling a bit. The Python equivalent of rvm is pyenv (https://github.com/pyenv/pyenv/blob/master/README.md https://github.com/pyenv/pyenv/blob/master/README.md) and to install dependencies and handle virtual environments after that you can use pipenv (https://github.com/pypa/pipenv https://github.com/pypa/pipenv). Both of them together will get you almost similar experience to the Ruby tooling example you ended the post with. I love why the lucky stiff's writing, I love POODR (http://www.poodr.com/ http://www.poodr.com/) and the two languages have a lot in common if you just keep an open mind about it :)
- nurettin 9y agoI do appreciate the effort you've put into this response, unlike parent. Well done. Next time I have to do something in python, I will try pyenv and pipenv (and maybe write about it, too)
- jsjohnst 9y agoExactly what I expected as a response. Thank you for confirming my suspicion!
- nurettin 9y agoYou provide so much value. Definitely an MVP hackernews user.
- jsjohnst 9y agoWhy should I spend my valuable time to help you when you literally spend no time to help yourself and instead blame tools for your inability to use them? Reread your posts in this thread and your blog post and show me where there’s any sign that wouldn’t be a lost cause effort.
- nurettin 9y ago