kylemcdonald / audionotebooks Goto Github PK
View Code? Open in Web Editor NEWCollection of notebooks and scripts related to audio processing and machine learning.
License: Other
Collection of notebooks and scripts related to audio processing and machine learning.
License: Other
I'm attempting to execute the wrapper for bh-t-sne
, but it's erroring out. Wanted to examine the output so flipped on verbose=True
, but no apparent output is being generated. This is running inside jupyter notebook
with a python 2 kernel
I'm guessing I need to grab it from the job somehow?
https://stackoverflow.com/questions/44555210/multiprocessing-pool-job-output
Looking for advice on the audio sample length, so far I have some larger samples and not getting any duration.txt
output..
Parameters for processing :
sr = 48000
max_length = sr*400 # ignore samples longer than 400 seconds
fixed_length = sr # trim all samples to 250 milliseconds
limit = None # set this to 100 to only load the first 100 samples
Output shows I am seeing all the samples
Processed 33 samples
Next output
Saved 0 samples
When running the Fingerprints to t-SNE notebook on Linux I get a major crash because bh_tsne is a macho binary which makes sense. However when I try to swap the binary by a compiled version for linux I get an error with exit code -11:
ERROR: Call to bh_tsne exited with a non-zero return code exit status, please refer to the bh_tsne output for further details
I tried a few versions of the library, including https://github.com/kylemcdonald/bhtsne but I don't seem to have the right version (or there is another issue). @kylemcdonald any pointers would be very much appreciated!
def job(fn):
return load_sample(fn, sr=sr,
max_length=max_length, fixed_length=fixed_length)
pool = Pool()
%time results = pool.map(job, files[:limit])
can you explain what is going on with that line %time
please?
Hi.
I hope it's ok to submit this issue. I really like these notebooks, but wanted them to run in python3 in order to keep them alive and useful. I created a fork, where I'm slowly rewriting the notebooks and utility functions for python3. If anyone wants to contribute, simply clone the fork and checkout the python3 branch. I'll make a pull request once I've made it through all notebooks.
Thanks for your tremendous work, Kyle.
Frederik
I've got the audio notebook running but getting:
ModuleNotFoundError Traceback (most recent call last)
in ()
1 import numpy as np
2 from os.path import join
----> 3 from utils import *
4 from multiprocessing import Pool
~/AudioNotebooks/utils/init.py in ()
----> 1 from list_all_files import list_all_files
2 from ffmpeg_load_audio import ffmpeg_load_audio
3 from ffmpeg_save_audio import ffmpeg_save_audio
4 from show_array import show_array
5 from make_mosaic import make_mosaic
ModuleNotFoundError: No module named 'list_all_files'
in collect samples. I'm new to Python so could be something very simple. Thanks!
How to compile it ?
noticed a variable that was never defined inside Fingerprints to Spritesheet.ipynb
I'm thinking this needs to point to... the tsne/
fingerprints folder? not grid/
? and p
should be the perplexity? or are you just loading the single fingerprints.npy
numpy file ?
Edit : Ah, now I see you mention a cloud grid at the top of the NB.. not clear which other NB that's referring to, but I'll look around
while attempting to install requirements I got tripped up looking for samplerate
Guessing it's an issue with me running python 3.5 , see cournape/samplerate#8
~/Dev/gitroot/EMCP/kylemcdonald/AudioNotebooks (master)$ pip3 install -r requirements.txt
Collecting jupyter (from -r requirements.txt (line 1))
Using cached jupyter-1.0.0-py2.py3-none-any.whl
Collecting librosa (from -r requirements.txt (line 2))
Using cached librosa-0.4.3.tar.gz
Requirement already satisfied: numpy in /usr/local/lib/python3.5/site-packages (from -r requirements.txt (line 3))
Collecting scikits.samplerate (from -r requirements.txt (line 4))
Using cached scikits.samplerate-0.3.3.tar.gz
Complete output from command python setup.py egg_info:
SamplerateInfo:
libraries samplerate not found in /usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib
libraries samplerate not found in /usr/local/lib
libraries samplerate not found in /usr/lib
Traceback (most recent call last):
File "scikits/samplerate/setup.py", line 15, in configuration
sf_config = sf_info.get_info(2)
File "/usr/local/lib/python3.5/site-packages/numpy/distutils/system_info.py", line 578, in get_info
raise self.notfounderror(self.notfounderror.__doc__)
numpy.distutils.system_info.NotFoundError: Some third-party program or library is not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/2c/c_kpmrvd0kd4m84wqgj28lj00000gn/T/pip-build-mx_tg_v6/scikits.samplerate/setup.py", line 74, in <module>
classifiers = CLASSIFIERS,
File "/usr/local/lib/python3.5/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "/private/var/folders/2c/c_kpmrvd0kd4m84wqgj28lj00000gn/T/pip-build-mx_tg_v6/scikits.samplerate/setup.py", line 59, in configuration
config.add_subpackage(DISTNAME)
File "/usr/local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "/usr/local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "/usr/local/lib/python3.5/site-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scikits/samplerate/setup.py", line 20, in configuration
[samplerate].""")
numpy.distutils.system_info.NotFoundError: SRC (http://www.mega-nerd.com/SRC/) library not found. Directories to search
for the libraries can be specified in the site.cfg file, in section
[samplerate].
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/2c/c_kpmrvd0kd4m84wqgj28lj00000gn/T/pip-build-mx_tg_v6/scikits.samplerate/
~/Dev/gitroot/EMCP/kylemcdonald/AudioNotebooks (master)$
Not sure this is an issue with the AudioNotebooks, but I am a novice python user and have scoured google to fix my problem with no luck. I was able in the past to use this awesome set of tools, but now I can't seem to get the final step working. When running the last chunk of code in Fingerprints to t-SNE I get the following error. Any help would be much appreciated and thanks so much for sharing this amazing project!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.