Coder Social home page Coder Social logo

Comments (2)

DBraun avatar DBraun commented on September 28, 2024

Sorry for the issues and thanks for reporting. Now that I've updated libfaust I really want to fix these kinds of issues.

  • Use a normal block size of 256 or 512 in case you're using something extreme like 1
  • Have you tried time.sleep(5) in between calls to render?
  • Have you tried starting the notes with a minor time offset, like starting the note at 1 second instead of 0 seconds?

Have you tried preset_names = ['MT Tailwhip Lead']*100 but saving each one to a different file?

from dawdreamer.

malekinho8 avatar malekinho8 commented on September 28, 2024

No problem, thanks so much for the prompt response. Here's what I've found from experiments based on your guidance:

  • I am using a normal block size, 512
  • I tried time.sleep(5) between calls and the behavior did not change
  • Starting the MIDI notes with a minor time offset fixed the issue, or at least I can hear the expected audio from all 3 instruments at the right time. Interestingly with the MT Tailwhip Lead instrument, I hear a quiet sound at the very beginning of the rendered audio, not sure what to make of that. You can listen to it here if you are curious.
  • I just tried the repeated list idea, and it also worked in that the first wav file was basically silent (though I could hear a small unrelated sound at the beginning), and all the other wav files were contained rendered audio. However, upon playing them back, I did notice slight variations in the sound timbre even though the preset has no random parameters or settings. You can hear all of the files for yourself here if needed.
  • I also performed the repeated list idea + starting midi note 1 second later and rendering 2 seconds of audio. I expected there to be no differences between the audio files, but basically the same behavior as the repeated list idea performed with the original settings is occurring (i.e. the first audio sample has a weird silent sound at the beginning and the other sounds work fine but have slight timbral variations).

Still not sure if I trust the audio rendering process enough right now to close this issue. If you have any other suggestions or guidance on things I could try, I would greatly appreciate it, but I also understand you have probably put a tremendous effort to getting this code base working so if I have to be patient it's no big deal. Good luck and if there's anything else I can do to help fix this, please let me know.

from dawdreamer.

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.