Performs a Musipedia/Melodyhound search.<br>
Parameters:<br>
username: Your Musipedia user name.<br>
q123hash: Should equal md5(your_musipedia_password.q1collection.q2query.q3keywords). If you don't have an md5 function at hand and don't care about sending your password in clear text, you can also set q123hash to your Musipedia login password.<br>
q1collection: can be "Musipedia" or "Web", with "Musipedia" as default if it is blank or set to some invalid value.<br>
q2query: a short melody or rhythmic pattern. Its format determines the search algorithm. Possibilities are:<br>
- rhythm: a sequence of onset times, e. g. "3.2,3.4,3.6,4,5,6"<br>
- melody: a sequence of triplets of onset time, MIDI pitch, duration, e. g. "3.2,82,0.3;3.8,82,0.2;4,64,1"<br>
- contour: a Parsons code string, e. g. "UDUR"<br>
q3keywords: optional: some words that have to be contained in the composer or title field of any returned result<br>
q4pitch: optional: for melody searches, the importance of the pitch component. Default 0.6. Ignored for non-melody searches.<br>
q5rhythm: optional: for melody searches, the importance of the rhythm component. Default 0.4. Ignored for non-melody searches.<br>
q6items: optional: the maximum number of items to return. Default: 10. Values higher than 100 are set to 100.<br>
q7offset: optional: how many items to skip from the beginning (useful for browsing without downloading too much information at once). Default: 0.<br>
Output fields are:<br>
q8categories: optional: one or more letters for categories (C/F/P/...)<br>
message: 'OK' or an error message<br>
items: an array of the items found. Every item contains these fields:<br>
- url: a URL pointing to the Musipedia record<br>
- distance: the distance of this record to the query<br>
- composer<br>
- title<br>
- category<br>
- offset: the number of seconds from the beginning where the matching part begins<br>
- duration: the duration (in secods) of the part that matches the query<br>
requests: the number of requests you have used so far.Adds the item to the index, or updates the index for the item if it already is indexed.<br>
Parameters:<br>
username: Your Musipedia user name.<br>
tidhash: Should equal md5(your_musipedia_password.tid). If you don't have an md5 function at hand and don't care about sending your password in clear text, you can also set tidhash to your Musipedia login password.<br>
tid: the ID of the melody in question.<br>
Output fields are:<br>
message: 'OK' or an error message<br>