Each row in this table represents a musical instrument used in the most recent version of a project shared on the Scratch website at the point of data collection.
Instruments could be set either by selecting the type of instrument form a list of available instruments (each one identified by a number), or programmatically (e.g., by reading a variable or the value of the horizontal position of the mouse). Instrument types included recognizable instruments like pianos, guitars, and flutes. Mappings of numbers to instruments follow the General MIDI Level 1 Instrument Patch Map.
This table includes 128,571 observations. Each row of this table corresponds to a single midi instrument along with a parameter that defines or alters said instrument.
| Variable | Type | Description |
|---|---|---|
| project_id | integer | Unique identifier for the project (see the projects table). |
| instrument | factor | Type of instrument (given as a number that represents each type of instrument, e.g., the number 1 for piano). This field is missing when the instrument is set programmatically, in which case the variable_instrument field is used. |
| variable_instrument | factor | This value is defined when instrument type is set programmatically, this value represents how it is being set. For example, it can be set with a random number generator block or linked to a variable. |
The distribution (log-scale) of instrument is as follows:

The distribution (log-scale) of variable_instrument is as follows:

Like the MIDI specification, the official version of Scratch only supported instruments numbered 1-128. We have included 19 observations with instrument set to a number outside this range. These are likely due to invalid or corrupt data.
We omit 57,956 observations because they refer to observations in older, non-public, versions of projects that were replaced on the site. Additionally, we omit 28,766 observations from projects which are not included in our projects table (e.g., they were removed from the site by their creators).
These data are access restricted. Details on gaining access are provided in the "Permission to Use Datasets" section of the overview page.