The MDT is an adaptive test of the ability to discriminate melodies.
When using the MDT in your own research, you can cite the original MDT research paper:
Harrison, P. M. C., Collins, T., & Müllensiefen, D. (2017). Applying modern psychometric techniques to melodic discrimination testing: Item response theory, computerised adaptive testing, and automatic item generation. Scientific Reports, 7, 1–18. https://doi.org/10.1038/s41598-017-03586-z.
and this implementation:
Harrison, P. M. C., & Müllensiefen, D. (2018). Melodic Discrimination Test (MDT), psychTestR implementation. Zenodo. https://doi.org/10.5281/zenodo.1300950
We also advise mentioning the software versions you used,
in particular the versions of the
You can find these version numbers from R by running the following commands:
library(mdt) library(psychTestR) library(psychTestRCAT) if (!require(devtools)) install.packages("devtools") x <- devtools::session_info() x$packages[x$packages$package %in% c("mdt", "psychTestR", "psychTestRCAT"), ]
We are grateful to the following individuals for translating the MDT into new languages:
If you don't have R installed, install it from here: https://cloud.r-project.org/
Install the ‘devtools’ package with the following command:
You can demo the melodic discrimination test at the R console, as follows:
# Load the mdt package library(mdt) # Run a demo test, with feedback as you progress through the test, # and not saving your data demo_mdt() # Run a demo test, skipping the training phase, and only asking 5 questions demo_mdt(num_items = 5, take_training = FALSE)
standalone_mdt() function is designed for real data collection.
In particular, the participant doesn't receive feedback during this version.
# Load the mdt package library(mdt) # Run the test as if for a participant, using default settings, # saving data, and with a custom admin password standalone_mdt(admin_password = "put-your-password-here")
You will need to enter a participant ID for each participant. This will be stored along with their results.
Each time you test a new participant,
and a new participation session will begin.
You can retrieve your data by starting up a participation session, entering the admin panel using your admin password, and downloading your data. For more details on the psychTestR interface, see http://psychtestr.com/.
The MDT currently supports English (EN), French (FR), German (DE), and Russian (RU).
If you would like to add a new language to this list, please contact us.
You can select one of these languages by passing a language code as
an argument to
standalone_mdt(languages = "DE"),
or alternatively by passing it as a URL parameter to the test browser,
eg. http://127.0.0.1:4412/?language=DE (note that the
p_id argument must be empty).
Please note that the demo version of the test (
demo_mdt) only supports English.
The main output from the MDT is an
corresponding to the ability estimate for the participant.
It is computed from the underlying item response model and ranges approximately from -4 to +4.
A secondary output is an
corresponding to the standard error of measurement for the ability estimate;
again, it is computed from the underlying IRT model.
For most applications you would only use the
unless using a statistical analysis technique that allows you to specify measurement error explicitly.
For more information about item response theory, see the Wikipedia article;
for more information about MDT scores, see
Harrison et al. (2017).
psychTestR provides several ways of retrieving test results (see http://psychtestr.com/). Most are accessed through the test's admin panel.
compile_trial_by_trial_results()from the R console (having loaded the MDT package using
?compile_trial_by_trial_results()for more details.
readRDS(). Detailed results are stored as the 'metadata' attribute for the ability field. You can access it something like this:
x <- readRDS("output/results/id=1&p_id=german_test&save_id=1&pilot=false&complete=true.rds") attr(x$MDT$ability, "metadata")
sudo mkdir mdt
Make a text file in this folder called
specifying the R code to run the app.
To open the text editor:
sudo nano mdt/app.R
library(mdt) standalone_mdt(admin_password = "put-your-password-here")
Save the file (CTRL-O).
Change the permissions of your app directory so that
can write its temporary files there.
sudo chown -R shiny mdt
shiny is the username for the Shiny process user
(this is the usual default).
Versions <= 1.3.0 of this package experimented with weighted likelihood ability estimation for item selection. However, current versions of the package revert to Bayes modal ability estimation for item selection, for consistency with the original MDT paper.
If you use the test in your own research, you could use the following paragraphs as a template for describing the test in your subsequent write-up.
We tested melodic working memory using the melodic discrimination test of Harrison, Collins, and Müllensiefen (2017). This test uses a three-alternative forced-choice (3-AFC) paradigm. In each trial, the participant is played three versions of a new and unfamiliar melody, with successive versions being transposed a semitone higher in pitch. In one of these versions, a note has been altered, making that version the 'odd one out'. The participant's task is to identify which melody was the odd one out. The melodic discrimination task is argued to rely heavily on auditory working memory, as melodies must be held in working memory if they are to be compared and discriminated (Dowling, 1978; Harrison & Mülllensiefen, 2016; Harrison et al., 2017).
We used an implementation of the melodic discrimination test provided by the original researchers and available at https://doi.org/10.5281/zenodo.1300951. Participants complete the test at a computer, using a mouse to select responses. The test uses an adaptive item selection procedure, administering harder items to higher-ability participants and easier items to lower-ability participants. Participant abilities are estimated using Item Response Theory (de Ayala, 2009). We used the test with default settings: length of 20 items, computing intermediate and final abilities with weighted-likelihood estimation, and using Urry's rule for item selection (Magis & Gilles, 2012).
de Ayala, R. J. (2009). The theory and practice of item response theory. New York, NY: The Guilford Press.
Dowling, W. J. (1978). Scale and contour: Two components of a theory of memory for melodies. Psychological Review, 85(4), 341–354.
Harrison, P. M. C., Musil, J. J., & Müllensiefen, D. (2016). Modelling melodic discrimination tests: Descriptive and explanatory approaches. Journal of New Music Research, 45(3), 265–280. https://doi.org/10.1080/09298215.2016.1197953
Harrison, P. M. C., Collins, T., & Müllensiefen, D. (2017). Applying modern psychometric techniques to melodic discrimination testing: Item response theory, computerised adaptive testing, and automatic item generation. Scientific Reports, 7, 1–18. https://doi.org/10.1038/s41598-017-03586-z
Magis, D., & Gilles, R. (2012). Random generation of response patterns under computerized adaptive testing with the R package catR. Journal of Statistical Software, 48(8), 1–31.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.