Introduction
As digital musicology expands, researchers are increasingly confronted with a classic "information overload" problem. While thousands of symbolic music scores are now available in formats like MusicXML, MEI, and Humdrum, navigating these collections remains a significant challenge. Traditional search engines typically prioritize metadata—such as title or composer—leaving users who wish to explore the actual musical content (notes, intervals, and rhythms) without effective tools. Existing solutions often suffer from being locked into proprietary databases or relying on regular expression (regex) searches that are prohibitively slow, sometimes taking minutes to return results for a single query.
To address these limitations, the FACETS system introduces a scalable, content-based search engine designed to navigate massive collections of symbolic music scores with unprecedented speed and flexibility.
System Architecture and Methodology
FACETS is built on a decoupled architecture consisting of a REST API back-end and a web-based graphical user interface (GUI). This modularity allows the system to remain format-agnostic, supporting a wide range of symbolic formats including MusicXML, MEI, Humdrum, and ABC.
The core of the system's efficiency lies in its feature extraction process. Musical sequences are converted into n-grams—short, overlapping sequences of melodic intervals (chromatic and diatonic) and rhythmic ratios. By treating these musical sequences similarly to how a text search engine treats words, FACETS can leverage mature, high-performance technologies like Elasticsearch. This integration allows the system to achieve retrieval speeds approximately 200 times faster than traditional regex-based tools, processing queries in as little as 1 ms.
Faceted Navigation and Discovery
The defining feature of the tool is its "faceted" navigation system. Unlike standard search engines that simply return a list of matches, FACETS encourages a "discovery mode" where users can refine their search based on the characteristics of the results themselves. The system utilizes two types of facets:
- Pre-computed Facets: These include standard metadata such as composer, time signature, and musical key.
- Dynamic Facets: These are computed at runtime. For instance, if a user searches for a specific melodic fragment, the system analyzes the resulting set and suggests filters—such as identifying that a high percentage of matches occur in works by a specific composer or within a certain historical period.
This approach allows researchers to uncover hidden relationships within data. For example, a query for a specific melodic pattern might reveal a surprising concentration in organ works from the 17th century, prompting new musicological inquiries that would be difficult to initiate with metadata search alone.
User Experience and Performance
To ensure accessibility for non-technical users, FACETS includes a piano keyboard interface for melodic input, removing the need for complex query strings or coding knowledge. In a survey of 16 participants, including amateur and professional musicians, the tool received high marks for accuracy (4.56/5) and response time (4.31/5). Users particularly noted the value of the faceted search for refining large result sets into manageable, meaningful data.
Conclusion and Future Directions
FACETS represents a significant leap forward in symbolic music retrieval, combining the speed of text-search technology with the analytical depth required for musicological research. While the current implementation is highly effective, future work will focus on enhancing the user experience by adding MIDI playback for immediate result auditioning and expanding the library of complex musical patterns available as facets. By lowering the barrier to entry and drastically reducing search times, FACETS enables researchers to spend less time querying and more time discovering.
Summary updated