Key words: beat spectrum analysis and rhythm detection.
This well-known Python library may contain a solution for your question:
https://github.com/aubio/aubio
I also recommend that you check this page for other libraries:
https://wiki.python.org/moin/PythonInMusic
Finally, this project offers a Python-friendly solution and an easy way to get started:
https://github.com/librosa/librosa
Librosa ( ) :
from __future__ import print_function
import librosa
filename = librosa.util.example_audio_file()
y, sr = librosa.load(filename)
tempo, beat_frames = librosa.beat.beat_track(y=y, sr=sr)
print('Estimated tempo: {:.2f} beats per minute'.format(tempo))
beat_times = librosa.frames_to_time(beat_frames, sr=sr)
print('Saving output to beat_times.csv')
librosa.output.times_csv('beat_times.csv', beat_times)
, , . , .
:
Web API, Gracenote:
https://developer.gracenote.com/web-api#python
Python:
https://github.com/cweichen/pygn
, , . - Ruby Python;
Ruby:
https://github.com/JDiPierro/tmsapi
require 'tmsapi'
tms = TMSAPI::API.new :api_key => 'API_KEY_HERE'
movie_showings = tms.movies.theatres.showings({ :zip => "78701" })
movie_showings.each do |movie|
movie.showtimes.each do |showing|
puts "#{movie.title} is playing at '#{showing.theatre.name}' at #{showing.date_time}."
end
end
Ruby Ruby on Rails, - Python.