Skip to content

Commit

Permalink
siag.save allow to pass subtype
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld committed Jul 21, 2023
1 parent 810f9c0 commit 1cd6d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spaudiopy/sig.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def copy(self):
"""Return an independent (deep) copy of the instance."""
return copy.deepcopy(self)

def save(self, filename):
def save(self, filename, subtype='FLOAT'):
"""Save to file."""
io.save_audio(self, os.path.expanduser(filename))
io.save_audio(self, os.path.expanduser(filename), subtype=subtype)

def trim(self, start, stop):
"""Trim audio to start and stop in seconds."""
Expand Down

0 comments on commit 1cd6d08

Please sign in to comment.