Read the manual

The API documentation is the first step to understanding how mididings work.