Giter Club home page Giter Club logo

Comments (4)

justinsalamon avatar justinsalamon commented on May 24, 2024 1

This is by design: when you specify an event-time distribution, it can occur anywhere in the range spanned by the distribution.

Right now there is no "flag" to tell scaper to avoid overlapping events, so you need to ensure this yourself by specifying event times that don't overlap. You can do this either by explicitly setting the time for each event, or by setting your distribution ranges such that they don't overlap.

An alternative option is to simply sample soundscapes in a loop until you get one that meets your requirements. If you set no_audio = True when you call generate() it's extremely fast to generate a soundscape, so you could just generate soundscapes in a loop and check them for overlapping sounds, and when you get a soundscape without overlapping sounds you can save the jams file and then call generate_from_jams to obtain the corresponding audio.

In the future I may add an explicit option to control the overlap, but I don't foresee having time to do this in the near future.

from scaper.

sreenivasaupadhyaya avatar sreenivasaupadhyaya commented on May 24, 2024 1

@justinsalamon Thanks for the information. I was looking for this as well :)

from scaper.

cdxie avatar cdxie commented on May 24, 2024

Thanks,one point that I don't understand, how to explicitly set the time for each event in the tools?

from scaper.

justinsalamon avatar justinsalamon commented on May 24, 2024

Please read the scaper tutorial and documentation, it's explained there.

from scaper.

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.