IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
mpcABX - ABX client for mpd
Mark0
post May 11 2013, 14:04
Post #1





Group: Members
Posts: 69
Joined: 15-August 02
From: Venice
Member No.: 3068



Out of necessity, I quickly coded a super simple ABX comparator for mpd.
It does the absolute minimum, with a textual interface, no errors checking, etc., so another mpc application is needed to setup the playlist, set outputs, volumes, etc.
But the nice thing is that, being written in plain Python, that it can work just about anywhere.
I tested on Linux & Win on PC, as well as on Android with SL4A.

Here's a sample of the "interface":
CODE
mpcABX - super simple ABX client for mpd - by Marco Pontello
mpd address? localhost
mpd port? (6600)
number of trials? (10) 5
test description? ADPCM 4bit
Connecting with mpd...
OK
trial 1 of 5
  play menu:
    a: play track A
    b: play track B
    x: play track X
    s: set start position
    r: ready to answer
    ?


And this is the final mpcabx.log produced:
CODE
05/11/2013 01:47:42 PM mpcABX - 'ADPCM 4bit'
05/11/2013 01:47:43 PM trial 1/5
05/11/2013 01:49:06 PM trial 2/5
05/11/2013 01:49:09 PM trial 3/5
05/11/2013 01:49:11 PM trial 4/5
05/11/2013 01:49:14 PM trial 5/5
05/11/2013 01:49:17 PM correct answers: 3/5
05/11/2013 01:49:17 PM probability of randomly guessing: 34%


I used it, for example, on an Android smartphone, to control a player built with a Raspberry Pi & a cheap USB audio card with digital outputs, connected to the main audio system of a couple of friends. I prepared some FLAC tracks with the originals, and some variations of lossy compressed, resampled, etc. From test to test I used DroidMPD to setup the desired two-tracks playlists, fired up the scripts, and proceed to test.
In end, it worked well enough, even with the primitive interface, so I tought it may come handy to someone other.

Here's the script:
http://mark0.net/download/mpcabx.zip (less than 2KB).

Just for the records, here's the player used.
http://i.imgur.com/sJ80xIU.jpg

This post has been edited by Mark0: May 11 2013, 14:10
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 01:40