Giter Site home page Giter Site logo

432Hz Batch Converter - "Shift pitch" text fields max out at 4 digits (technically 5 if you include a value of 10000) about hanumaninstituteapps HOT 10 CLOSED

NintendoManiac64 avatar NintendoManiac64 commented on May 27, 2024
432Hz Batch Converter - "Shift pitch" text fields max out at 4 digits (technically 5 if you include a value of 10000)

from hanumaninstituteapps.

Comments (10)

mysteryx93 avatar mysteryx93 commented on May 27, 2024

What's the actual problem, and what would you suggest as a solution?

from hanumaninstituteapps.

NintendoManiac64 avatar NintendoManiac64 commented on May 27, 2024

the exact ratio for that would be shifting pitch from 480000Hz to 491491Hz which requires 6 digits of precision, and 432Hz Batch Converter only allows for 4 digits of precision

I'm just looking for more than 4 digits of precision is all, ideally up to something like, I don't know... 9? (even though, for this use-case, I only need 6).

Interestingly, the actual text box automatically expands to accommodate more digits despite it truncating to 4 digits (again, the maximum accepted value currently being 10000).

from hanumaninstituteapps.

mysteryx93 avatar mysteryx93 commented on May 27, 2024

It might be a display-only limitation. I could allow displaying more digits. I suspect it's parsing your 9 digits anyway.

from hanumaninstituteapps.

NintendoManiac64 avatar NintendoManiac64 commented on May 27, 2024

Well shoot, if it's only a display limitation, then it'd make more sense to not just limit it to 9 digits but to instead limit it to whatever it is actually internally limited to (unless it's some giant number with 100 digits or something which, for all I know, could cause other problems).

from hanumaninstituteapps.

NintendoManiac64 avatar NintendoManiac64 commented on May 27, 2024

I just did some tests and I can definitely say that it's not just a visual issue and it is in fact limited to 4 digits of precision.

I simply generated a sine wave in Audacity with a length of 491491 samples which, in the aforementioned scenario, should have the resulting sped-up audio have a length of 480000 samples... but it does not.

By contrast, if I generate a sine wave in Audacity with a length of 491400 samples, then the aforementioned scenario does indeed give the resulting sped-up audio a length of exactly 480000 samples due to the fact that 491491 gets truncated to 4914.

from hanumaninstituteapps.

mysteryx93 avatar mysteryx93 commented on May 27, 2024

I looked at the Shift Pitch box, it allows any digits of precision you need.

Do you need to put a value above 10000Hz?? What for? That would just result in a super high-pitch noise.

from hanumaninstituteapps.

NintendoManiac64 avatar NintendoManiac64 commented on May 27, 2024

That would just result in a super high-pitch noise.

That's only if you have auto pitch-detection enabled.

The issue is that I have that function unchecked and so I'm specifying both the input and the output pitch, and I'm putting in a source value that is definitely higher than the actual pitch in order to have greater precision.

For example, the automatic pitch detection can detect values like 441.4 so, in order to manually recreate that, I have to put in a source value of 4414 (without decimal) and an output pitch of 4320. But that's all the more I can do—I can't put in even more precision, like from 441325 to 432000 where 441325 represents a pitch of 441.325Hz.

from hanumaninstituteapps.

mysteryx93 avatar mysteryx93 commented on May 27, 2024

If it's only the ration between the 2 values that matter, why can't you put decimals in both values?

from hanumaninstituteapps.

NintendoManiac64 avatar NintendoManiac64 commented on May 27, 2024

...holy bananas, I had no idea it accepted up to 14 decimal places!

In the past, gosh, uh... decade? In order to test how many digits a text field accepts in a program or a website, I always just first type 12345678901234567890... and, when I did that, it truncated the result to only 4 digits.

It never even crossed my mind that it'd truncate digits differently if you used a decimal point!

I guess my problem is solved then, but Isn't this sort of inconsistent behavior in the UI?

from hanumaninstituteapps.

mysteryx93 avatar mysteryx93 commented on May 27, 2024

Values that are too far out could cause problems, no guarantee that they'd play properly, and it's not the intended purpose. As for decimals, I have no reason for rounding. Higher precision can end up useful sometimes.

So I'll close this.

from hanumaninstituteapps.

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.