Traditionally gamelan music is not notated, and began as an oral tradition. However, in the 19th century the kratons of Yogyakarta and Surakarta developed distinct notations for transcribing the reportoire. These were not used to read the music, which was memorized, but to preserve pieces in the court records. The Yogyanese notation is a checkerboard notation, which uses six vertical lines to represent notes of higher pitch in the balungan (core melody), and horizontal lines which represent the series of beats, read downward with time. The fourth vertical line and every fourth horizontal line (completing a gatra) are darkened for legibility. Symbols on the left indicate the colotomic structure of gongs and so forth, while specific drum features are notated in symbols to the right. The Solonese notation reads horizontally, like Western notation, but does not use barlines. Instead, note values and rests are squiggled between the notes.
Today this notation is relatively rare, and has been replaced by kepatihan notation, which is a cipher system. Kepatihan notation developed around 1900 at the kepatihan in Surakarta. The pitches are numbered (see the articles on the scales slendro and pélog for an explanation of how), and are read across with dots and lines indicating the note values. Like the palace notations, however, they record only the balungan part, and to a large extent what is heard relies on memorized patterns the performers call upon during performance. However, teachers have also devised certain notations, generally using kepatihan principles, for the cengkok (melodic patterns) of each elaborating instrument. In ethnomusicological studies, transcriptions are often made onto a Western staff, sometimes with unusual clefs.