def color(self): """Return color of instrument in palette.""" return { 'choir': Palette.choir(self.identifier), 'dolan': Palette.dolan(self.identifier), 'instrument': Palette.instrument(self.identifier), 'monochrome': Palette.monochrome() }.get(self.palette, Palette.monochrome()) # default to monochrome