Code Monkey home page Code Monkey logo

audionotebooks's People

Contributors

abhiyerra avatar kylemcdonald avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

audionotebooks's Issues

tuning the audio max size

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

what version of bh_tsne did you compile?

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!

Clarification needed

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?

Rewriting this for Python3

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

list_all_files

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!

error in Fingerprints to Spritesheet nb

noticed a variable that was never defined inside Fingerprints to Spritesheet.ipynb

screen shot 2017-06-22 at 12 29 26 am

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 ?

screen shot 2017-06-22 at 12 33 17 am

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

got it : https://github.com/kylemcdonald/CloudToGrid/

installation failed..

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)$ 

OSError: [Errno 13] Permission denied

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!!!
screen shot 2018-09-30 at 3 09 35 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.