Git Product home page Git Product logo

Comments (4)

bmcfee avatar bmcfee commented on August 30, 2024

Currently, JAMS objects are being used via the top-level sandbox to ferry data through deformation pipelines. This is a little clunky for a few reasons, some more obvious than others. For my part, a big one is transforming JAMS without audio / transforming audio without JAMS.

Transforming jams without audio is technically no problem, though I forget if it actually works. (I think it should.)

Transforming audio without JAMS is also possible, in that you can have the jams pipe construct a dummy jams object.

I'd be keen to encapsulate audio and annotation data as separate attributes of a Payload object (or what have you) that can pass through the deformer pipeline agnostically. Putting some smarts into the different containers will also make it easier to introduce other audio deformations later, like stereo / spatialization, and keep good records on applied deformations.

This will need some thought, but I'm not totally opposed to it in principle.

And, as another win (in my book at least), it could allow us to leverage different audio reading/writing backends, which can be justifiable in different scenarios.

Ehhhhh i think we should just use pysoundfile for everything. Given everything else that it offers, I'm content to drop mp3 support.

from muda.

ejhumphrey avatar ejhumphrey commented on August 30, 2024

Transforming audio without JAMS is also possible, in that you can have the jams pipe construct a dummy jams object.

yes, but you have to make sure you set jam.file_metadata.duration or things go to hell for time-stretching.

Ehhhhh i think we should just use pysoundfile for everything. Given everything else that it offers, I'm content to drop mp3 support.

At the risk of sparking a holy war, some scenarios justify using a sox or ffmpeg backend. If we're encapsulating things properly, I don't think it has to be gross.

from muda.

bmcfee avatar bmcfee commented on August 30, 2024

yes, but you have to make sure you set jam.file_metadata.duration or things go to hell for time-stretching.

That's easy enough.

At the risk of sparking a holy war, some scenarios justify using a sox or ffmpeg backend.

I'm curious what those scenarios are. If we're writing audio, I feel okay forcing people to use ogg, flac, or wav, which don't require ffmpeg. The big win here comes down to dependency management -- I want to absolutely limit the number of non-python dependencies we have to deal with. Zero would be ideal.

Reading audio is another story, and if we want to support mp3, we're kinda stuck with the pile of hack that audioread abstracts away from us. We shouldn't reinvent that functionality. If we don't care so much about mp3, then pysoundfile all the way.

(I'm totally baffled as to why you would want to output to sox though.)

If we're encapsulating things properly, I don't think it has to be gross.

The implementation could be totally pristine, but the dependency management will bite us every time. I'm more than happy to let audioread and/or libsndfile handle codec business.

from muda.

bmcfee avatar bmcfee commented on August 30, 2024

Closing this out, as I think the current containers are here to stay.

from muda.

Related Issues (20)

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.