Changed `write` so it will accept pretty much every array, list, tuple, or matrix. However, it does not accept bytes any more, so this is an incompatible change.
Arrays or 1-dimensional data will be treated as mono signal and duplicated to all channels.
Matrices or 2-dimensional data will be extended with zeros if there are fewer channels in the data than in the sound card.