music.print_peal

music.print_peal(peal, hunts=(0, 1))[source]

Prints a peal with colored numbers. Hunts have also colored background.

Parameters:
peallist

The peal to print.

huntslist, optional

The indices of hunted elements. Defaults to [0, 1].

Notes

There are eight colours, so from the ninth bell on they repeat. A ninth bell used to raise an IndexError instead.

Examples

>>> peal = PlainChanges(4)
>>> print_peal(peal.peal_direct[:2], hunts=(0, 1))
0123
1023