Search papers, labs, and topics across Lattice.
This paper introduces GraphIDyOM, a graph-native Python reimplementation of the Information Dynamics of Music (IDyOM) model, which enhances the accessibility and functionality of musical expectation modeling. By representing predictive memories as explicit graph objects, GraphIDyOM allows for detailed analysis and interaction with internal memory structures while maintaining the original model's architecture. Validation against the original IDyOM demonstrates its effectiveness, revealing new avenues for exploring musical expectation through memory and network analysis.
GraphIDyOM transforms musical expectation modeling by making predictive memory structures transparent and interactive, enabling deeper insights into musical dynamics.
The Information Dynamics of Music model (IDyOM) has played a central role in computational accounts of musical expectation by providing event-by-event estimates of uncertainty and surprise from symbolic musical sequences. However, its reference implementation is difficult to integrate with contemporary Python workflows, and its internal memory structures are not easily accessible for inspection or modification. We introduce GraphIDyOM, a graph-native Python reimplementation of IDyOM that represents long-term and short-term predictive memories as explicit graph objects while preserving the model's variable-order, multiple-viewpoint architecture. GraphIDyOM returns event-wise information content and entropy, exposes internal memory structures for analysis and export, and supports access through a local server. We validate the implementation against the original Lisp IDyOM across single, projected, and multiple-viewpoint configurations, and benchmark its coverage and computational performance against a recent reimplementation. We then demonstrate how the explicit memory representation supports network analysis of learned memories, projection of expectation values onto musical networks, recency-sensitive memory retrieval, and interactive applications. GraphIDyOM therefore provides both a faithful and accessible reimplementation of a widely used model and a platform for studying musical expectation through memory, topology, and interaction.