Coder Social home page Coder Social logo

Comments (1)

askeksa avatar askeksa commented on August 31, 2024

Thank you for the bug report.

As I explained in a separate email, the limiting factor here is not burden as such, rather it is the total memory needed for sample precalculation for the instrument. This memory usage is proportional to the number of notes times the length of the longest note (i.e. the last two factors of the four that constitute the burden).

The version of nasm that is included in the distribution as part of the easy_exe setup has a bug that makes it unable to reserve more than 256MB of uninitialized space in a single declaration. When a larger size is requested, only the bottom 28 bits of the size in bytes are used. A sufficiently large sample precalculation buffer will hit this bug, causing the sample precalculation to overwrite other buffers, resulting in broken sound.

The bug can be worked around by splitting the declaration of the sample buffer into more declarations with smaller sizes. But I would rather just upgrade the included nasm (don't know why I put such an old version in the first place) and then change the declaration in oidos.asm to use reso. This is what makes most sense anyway (allocating a number of 16-byte units) and has the side effect of requiring a nasm which is new enough not to have the bug. ;)

Some action items:

  • Change reservation directive to use reso.
  • Update the included nasmw.exe (on next release).
  • Clarify sample generation process (all tones at maximum note length) in the documentation.
  • Output memory usage from the converter.

from oidos.

Related Issues (2)

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.