Code for computing Instantaneous Information Content (IIC), as described in Controlling Surprisal in Music Generation via Information Content Curve Matching.
pip install .A Jupyter notebook demo is presented in IIC.ipynb, showing how to compute IICs using MidiTok's implementation of the Structured MIDI Encoding with token Information Content precomputed by a PIA model.
To run the demo, install the package with:
pip install "./[demo]"