musicflower.plotting.key_colors
- musicflower.plotting.key_colors(pcds, alpha=False)[source]
Given an array of PCDs, returns a corresponding array of RGB or RGBA colors.
- Parameters:
pcds (
ndarray
) – array of shape (…, 12) where … can be any number of leading dimensionsalpha – whether to return alpha values (i.e. RGBA colours) or just RGB
- Return type:
ndarray
- Returns:
array of shape (…, 3) or (…, 4) with RGB/RGBA colors