Skip to content

Commit

Permalink
Correction to API tutorial #36
Browse files Browse the repository at this point in the history
  • Loading branch information
olivecha committed Feb 2, 2023
1 parent 83c762a commit 973a705
Show file tree
Hide file tree
Showing 2 changed files with 780 additions and 1 deletion.
779 changes: 779 additions & 0 deletions docs/API_Tutorial.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion guitarsounds/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def sounds_from_files(self, sound_files, names=None, fundamentals=None):
"""
# Make the default name list from sound filenames if none is supplied
if (names is None) or (len(names) != len(sound_files)):
names = [file[:-4] for file in sound_files] # remove the .wav
names = [os.path.split(file)[-1][:-4] for file in sound_files] # remove the .wav

# If the fundamentals are not supplied or mismatch in number None is used
if (fundamentals is None) or (len(fundamentals) != len(sound_files)):
Expand Down

0 comments on commit 973a705

Please sign in to comment.