Generate the sound of a note as an array if float elements.
Play a file with name soundfile or an array soundfile. (The array is first written to file using the write function so the data type can be arbitrary.) The player is chosen by the programs ‘open’ on Mac and ‘start’ on Windows. On Linux, try different open programs for various distributions. If keyword argument ‘player’ is given, only this spesific commands is run.