Code Monkey home page Code Monkey logo

floop's People

Contributors

ffont avatar g-roma avatar

Watchers

 avatar  avatar  avatar

Forkers

ffont

floop's Issues

Reduce number of requests to the FS API

If I understand correctly, when a new bpm is selected, floop makes 1 new request to the Freesound API for each of the sounds previously calculated to be in that bpm. This can mean too many queries :) These queries are to get sound name, preview URL and a couple more metadata items. I'd suggest that:

  • Either all this data is downloaded and stored locally in the app (just like descriptors for the graph)
  • Number of queries is optimized by requesting info for multiple sounds at once. This can be done using the filter parameter in the Freesound API. You can do something like "search for sounds with id 1, id 3, id 1003, and id 54". The limit is basically the length of the query, you can probably safely request info for 50 sounds at once. Doing this, the number of queries would be reduced by 50... and floop load bpms much faster! :)

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.