Yeraze's Domain 3.0

Supercomputers, Programming, and Life in Mississippi

Entries Tagged ‘python’

A Python Code That Makes Any Song Swing

Found this on Gizmodo, a python code that warps music to make any song “swing”.  It does it by time compression/expansion of the individual beats, expanding the first half and compressing the later half.  The results are impressive, but not perfect. Sweet Child O’ Mine (Swing Version) by plamere Don’t Stop Believin’ (Swing Version) by [...]

Python’s ‘with’ statement – my new best friend

While working on FreezerBurn, I’ve had alot of difficulty figuring out how to manage SQLite Database Connection objects.  The story so far has been: Write a “MasterDBConnection” function that either creates a connection, or returns the existing connection (maintained in a global variable). #1 didn’t work because I use multiple threads, so improve it to [...]