-
Notifications
You must be signed in to change notification settings - Fork 2
Scope of musiccat
ProjectRevoTPP edited this page Mar 19, 2016
·
14 revisions
Scope: Wrapper for Winamp and Music library. Necessary info passed to musiccat on initializing (library path, winamp playlist storage directory (default to tempfile made directory), etc)
- on init, combine metadata in recursive music library folders into a big metadata (library path passed via argument), store as named tuples on MusicCat object (song_id -> song_tuple), pass this tuple to tpp
- play(song_id)
- search() for songs matching arbitrary string query
- get metadata of specific song
- set_volume(volume) from 0.0 to 1.0
- pause()
- resume()
- command-line access to all of the above functionality (also command to print the number of songs and per-category number of songs)
No database access.
No file access other than metadata reading, winamp playlist generation and checking that each song file exists.
Categories don't matter to you.
There's no such thing as a "next song".
search
method should accept a string query provided by a human and yield each result (score, song_id) in order from most likely match to least likely.