Giter Club home page Giter Club logo

Comments (5)

jemsMIT avatar jemsMIT commented on September 6, 2024

@sunwell1994 Yes, it should be closely aligned. Under normal circumstances, there is no appreciable latency between the visible collision and the impact sound being generated.

Are you experiencing situations where this is not the case?

from tdw.

sunwell1994 avatar sunwell1994 commented on September 6, 2024

@sunwell1994 Yes, it should be closely aligned. Under normal circumstances, there is no appreciable latency between the visible collision and the impact sound being generated.

Are you experiencing situations where this is not the case?

It seems good. How can I control the delay between the collision and the impact sound?

from tdw.

jemsMIT avatar jemsMIT commented on September 6, 2024

I'm not sure I understand your question. The goal of the physics-driven impact sound synthesis is to provide realistic and plausible impact sounds when objects collide. Why would you want to introduce a delay between the collision and the impact sound?

However if that is required for some reason, I guess you could add a sleep() or similar delay:

            # Use PyImpact to generate audio from the output data and then convert the audio to TDW commands.
            # If no audio is generated, then `commands` is an empty list.
            commands = p.get_audio_commands(resp=resp, floor=floor, wall=wall)
            # Add delay here.....
            # Send the commands to TDW in order to play the audio.
            resp = self.communicate(commands)

from tdw.

sunwell1994 avatar sunwell1994 commented on September 6, 2024

I'm not sure I understand your question. The goal of the physics-driven impact sound synthesis is to provide realistic and plausible impact sounds when objects collide. Why would you want to introduce a delay between the collision and the impact sound?

However if that is required for some reason, I guess you could add a sleep() or similar delay:

            # Use PyImpact to generate audio from the output data and then convert the audio to TDW commands.
            # If no audio is generated, then `commands` is an empty list.
            commands = p.get_audio_commands(resp=resp, floor=floor, wall=wall)
            # Add delay here.....
            # Send the commands to TDW in order to play the audio.
            resp = self.communicate(commands)

Thanks for your example. It seems that the delay is not related to the collision directly in this method. Considering the distance of impact, the audio sensor may take some time to receive the sound.

from tdw.

alters-mit avatar alters-mit commented on September 6, 2024

@sunwell1994 Please provide an example control of the delay so we can test it.

from tdw.

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.