Administrator approval is now required for registering new accounts. If you are registering a new account, and are external to the University, please ask the repository owner to contact ServiceLine to request your account be approved. Repository owners must include the newly registered email address, and specific repository in the request for approval.

Commit 37b2859b authored by Ed Rogers's avatar Ed Rogers
Browse files

Convert SoundLibrary.freqs to return numpy array (rather than dict_keys)

parent b78596a1
......@@ -19,7 +19,7 @@ class SoundLibrary:
@property
def freqs(self):
return self._data.keys()
return np.array(list(self._data.keys()))
def play(self, freq: float, volume: float=1) -> None:
sd.play(self[freq]*volume, self.fs, blocking=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment