Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am looking for python library to find out a key and tempo of the song recorded in MP3 format. I've found the music21 lib that allows doing that. But it seems like it works only with midi files.
Does somebody know how to parse MP3 files using music21 and get the required sound characteristics? If it is impossible, please suggest another library.
No, this is not possible. Music21 can only process data stored in musical notation data formats, like MIDI, MusicXML, and ABC.
Converting a MP3 audio file to notation is a complex task, and isn't something that software can reliably accomplish at this point.
There are ways of doing this in music21 (audioSearch module) but it's more of a proof of concept and not for production work. There are much better software packages for analyzing audio (try sonic visualizer or jMIR or a commercial package). Music21's strength is in working with scores.
Check out librosa. It can read mp3s and give some basic info such as tempo.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I was thinking of building a piece of software that would be able to encrypt specific fields in a data file. So I started to consider writing some code in Python using cryptographic libraries. However I wonder: is it really safe? Should I rather use existing cryptographic tools?
If so, do you know a good cryptographic tool I could rely on? The only tools I find only encrypt entire files or disks. Thank you!
This greatly depends (obviously), on how you write it.
There are libraries like cryptography which already provide this solution though and are considered very safe.
https://github.com/fugue/credstash, for instance, which is widely used, uses cryptography.
https://github.com/lyft/confidant uses it also.
I implemented a locally usable secret store using cryptography (which you could use to encrypt any type of data) - https://github.com/nir0s/ghost which you could use as a reference implementation or simply use it (hope I'm not breaking any rules here)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 months ago.
Improve this question
I'm new to animating and I've started using Apple Motion 5
http://www.apple.com/au/final-cut-pro/motion/
The interface can be a bit annoying by not letting me do things in bulk or automate things. Since it saves files in a nice xml format I've been kinda hacking it to do things I like.
e.g setting Fixed Resolution off for hundreds of assets wasn't possible in the app without doing each one manually so I wrote a short script to find and replace this line in the file setting value to 0
<parameter name="Fixed Resolution" id="113" flags="8606711808" default="1" value="0"/>
Are there any python libraries that parse/script .motn files? (other than generic xml parsers)
Try Awesome Python at https://github.com/vinta/awesome-python
Maybe you'll find there what you're looking for.
But if you really want to use cool app try The Foundry Nuke or Blackmagic Fusion instead of Apple Motion or Adobe After Effects. Nuke and Fusion are node-based flexible and powerful compositing applications that support python scripting and programming. There are non-commercial free versions:
https://www.thefoundry.co.uk/products/nuke/
https://www.blackmagicdesign.com/products/fusion
Hope this helps.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a Python library that will allow me to record, manipulate, and merge audio files. Most of the ones I've seen don't support Windows and/or are outdated. Does anyone have any suggestions for libraries or how these functions could be implemented with the standard python library?
Recording and Manipulating are generally different problems. For both of these, I stick with .wav file formats since (at least in their simpler forms) they are basically just the raw data with a minimal header and are easy to work with.
Recording: I use pyaudio, which provides bindings to the portaudio library.
Manipulation: For simple things I use audioop which is included in the basics Python installation, and for more complex things I go straight to scipy (which can read in many .wav files with scipy.io.wavfile.read) and then manipulate the data like any other time-series data. scipy is powerful and fast, but doesn't offer many audio specific tools nor does it present things in an audio specific terminology.
There are other things out there, though less well established, such as Snack, Audiere, and AudioLazy, are tools I've heard of bet never used, and I don't know which are still available, or their level of development, etc.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a library for gathering "runtime statistics" in python, by which I mean an interface for outputting structured log files. A good example of what I would like is Twitter's ostrich project in Scala, wherein one simply executes a statement notifying the logger of an event. Ideally, this would then be automatically aggregated into a suitable visualization for application monitoring.
Does anyone know if such a library exists? Alternatively, does anyone know a more generic way of combining traditional message logging with some simply graphing for runtime analytics?
Thanks!
Graphite is one such system, written in Python.
I'm not familiar with ostrich, but a quick look at the readme suggests that the python project mmstats might be close to what you're looking for.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Know of any good libraries for this? I did some searches and didn't come across anything. Someone somewhere must have done this before, I hate to reinvent the wheel.
I would look at:
http://vobject.skyhouseconsulting.com/usage.html (look under "Usage examples")
Very easy parsing and generation of both vCal and vCard.
PyCoCuMa appears to have a VCF parser built into it, and it'll generate VCard output. You might have some luck with it. I played around with it a bit; it parsed some VCF files I have lying around without any problems. You'll most likely have to poke through the source to figure out how to use it, though.
See:
http://www.srcco.de/v/pycocuma
http://pycocuma.sourcearchive.com/documentation/0.4.5-6-5/vcard_8py-source.html