The script produces MIDI chords for every note played. By default it produces the major triad chord, but you customize it by setting the CHORD_SEMITONES environment variable to a comma separated list of positive or negative semitone numbers in /etc/pimidipy.conf. For example:
CHORD_SEMITONES=-12,0,3,7
