Skip to content

Instantly share code, notes, and snippets.

View danagilliann's full-sized avatar

Dana danagilliann

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
======================================================================
ERROR: test_util.test_match_events_onesided(False, False, array([-1, 15, 25]))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dana/anaconda3/envs/env1/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/Users/dana/Dana-Files/Codes/MARL/librosa/tests/test_util.py", line 424, in __test
left=left, right=right)
librosa.util.exceptions.ParameterError: Cannot match events with left=right=False and events_from is not contained in events_to
if not (left or right) and not ((set(events_to) & set(events_from)) == len(events_from)):
raise ParameterError('Cannot match events with left=right=False '
'and events_from is not contained '
'in events_to')
---------------------------------------------------------------------------
ConstantInferenceError Traceback (most recent call last)
<ipython-input-53-efa761b33867> in <module>()
----> 1 numba_match_events(s_from, s_to)
~/anaconda3/envs/env1/lib/python3.5/site-packages/numba/dispatcher.py in _compile_for_args(self, *args, **kws)
305 argtypes.append(self.typeof_pyval(a))
306 try:
--> 307 return self.compile(tuple(argtypes))
308 except errors.TypingError as e:
def match_events(events_from, events_to, left=True, right=True):
if len(events_from) == 0 or len(events_to) == 0:
raise ParameterError('Attempting to match empty event list')
# If we can't match left or right, then only strict equivalence
# counts as a match.
if not (left or right) and events_to.searchsorted(events_from).size != events_to.size:
raise ParameterError('Cannot match events with left=right=False '
'and events_from is not contained '
'in events_to')
======================================================================
ERROR: Failure: ImportError (cannot import name 'KnownFailureTest')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dana/anaconda3/envs/env1/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/Users/dana/anaconda3/envs/env1/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/Users/dana/anaconda3/envs/env1/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
(env1) dana@Dana ~/Dana-Files/Codes/MARL/librosa (match_events) $ nosetests --with-coverage --cover-package=librosa -w tests/
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
(venv) dana@Dana ~/Dana-Files/Codes/MARL/librosa (master) $ pip3 install librosa
Collecting librosa
Requirement already satisfied: numpy>=1.8.0 in ./venv/lib/python3.4/site-packages (from librosa)
Collecting resampy>=0.1.2 (from librosa)
Requirement already satisfied: joblib>=0.7.0 in ./venv/lib/python3.4/site-packages (from librosa)
Requirement already satisfied: scipy>=0.13.0 in ./venv/lib/python3.4/site-packages (from librosa)
Requirement already satisfied: audioread>=2.0.0 in ./venv/lib/python3.4/site-packages (from librosa)
Requirement already satisfied: six>=1.3 in ./venv/lib/python3.4/site-packages (from librosa)
Requirement already satisfied: decorator>=3.0.0 in ./venv/lib/python3.4/site-packages (from librosa)
Requirement already satisfied: scikit-learn>=0.14.0 in ./venv/lib/python3.4/site-packages (from librosa)
let audioContext = new (window.AudioContext || window.webkitAudioContext)();
let note = new Sound(audioContext);
let now = audioContext.currentTime;
note.play(100, ‘sawtooth’, 0.5, now, now + 20);
note.play(1056, ‘square’, 0.5, now, now + 20);