timestretch | Simple audio timestretch OLA algorithm | Audio Utils library

 by   danigb JavaScript Version: Current License: MIT

kandi X-RAY | timestretch Summary

kandi X-RAY | timestretch Summary

timestretch is a JavaScript library typically used in Telecommunications, Media, Media, Entertainment, Audio, Audio Utils, Nodejs applications. timestretch has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Yet another library to timestretch audio on the browser.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              timestretch has a low active ecosystem.
              It has 28 star(s) with 1 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              timestretch has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of timestretch is current.

            kandi-Quality Quality

              timestretch has 0 bugs and 0 code smells.

            kandi-Security Security

              timestretch has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              timestretch code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              timestretch is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              timestretch releases are not available. You will need to build from source code and install.
              timestretch saves you 3 person hours of effort in developing the same functionality from scratch.
              It has 10 lines of code, 0 functions and 5 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed timestretch and discovered the below as its top functions. This is intended to give you an instant insight into timestretch implemented functionality, and help decide if they suit your requirements.
            • Return the value of the x bits integer .
            • local require function
            Get all kandi verified functions for this library.

            timestretch Key Features

            No Key Features are available at this moment for timestretch.

            timestretch Examples and Code Snippets

            No Code Snippets are available at this moment for timestretch.

            Community Discussions

            QUESTION

            How to use superpowered time stretching class on audio process
            Asked 2020-Jul-06 at 22:23

            I'm having a problem changing the rate of my audio with superpowered time stretching. I know that I need to process the time stretching rate times the number of frames due to output the number of frames.

            Ex: If I set the time-stretching rate to 1.5 (increase 50% of original speed) and the number of frames is 144, my number of frames needed is 1.5144=216. The problem happens when I set the time-stretching rate to 1.3 (increase 30% of original speed): 1.5144=187.2 - a decimal amount.

            My audio processing method is the following:

            ...

            ANSWER

            Answered 2020-Jul-06 at 22:23

            I changed my approach of time stretching to the advanced audio player playback rate attribute.

            Source https://stackoverflow.com/questions/62678497

            QUESTION

            How does one allocate memory in an Audio Unit extension (realtime process) for audiofile playback?
            Asked 2020-Apr-20 at 15:02

            I am working on creating an audio unit v3. I have made decent progress up to this point, I made a host app that loads all my 3rd party plugins. I created an auv3 plugin that processes audio and can be loaded by other hosts.

            I now want to make an au that loads audio data from disk and scans the data at random positions with sample precision (timestretch, granular stuff, etc). I thought it would be a cool sample playback addittion for contributing to AudioKit.

            So this would be making something at the level of AKSampler in the AudioKit framework. While looking through AK source, I feel like I am missing something.

            While browsing github, I ended up at places like here: https://github.com/AudioKit/AudioKit/tree/118affee65f4c9b8d4780ef1a03a6d03004bbcee/AudioKit/Common/Nodes/Playback/Samplers

            then I looked in here: https://github.com/AudioKit/AudioKit/blob/118affee65f4c9b8d4780ef1a03a6d03004bbcee/AudioKit/Common/Nodes/Playback/Samplers/Disk%20Streamer/AKDiskStreamerAudioUnit.mm

            which brought me here: https://github.com/AudioKit/AudioKit/blob/d69dabf090a5e78d4495d938bf6c0aea9f672630/AudioKit/Common/Nodes/Playback/Samplers/Disk%20Streamer/AKDiskStreamerDSPKernel.hpp

            and then eventually here: https://github.com/AudioKit/AudioKit/blob/d69dabf090a5e78d4495d938bf6c0aea9f672630/AudioKit/Core/Soundpipe/modules/wavin.c

            I am not looking for info about AKSampler, specifically, just how in general audio files are being loaded and how it makes sense with the realtime nature of the au extension process..

            I couldn't find any IPC/XPC code anywhere, so I am guessing that its not about circular buffers connecting to other processes or something.

            Does AudioKit allocate memory in the realtime process for audiofile playback? This would seem to go against all the warnings from experienced audio programmers(articles like http://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing), but I can't figure out what is being done in AudioKit and generally in iOS..

            what am I just not understanding or finding? :D

            ...

            ANSWER

            Answered 2020-Apr-20 at 15:02

            Opening files and allocating memory for file reads should be done outside the real-time audio context, perhaps during UI file selection, never inside an Audio Unit callback.

            One way to get random access to samples inside an AU callback is to memory map the file (mmap C API), and then touch every sample in the memory map before passing the memory pointer (unsafe raw etc.) and file length (mapped bounds) to the audio unit. Then you can do virtual random access file reads inside the callback with a fixed latency.

            One way to touch every sample in an array by doing a checksum (and perhaps discarding the result later). This memory read is required to get the iOS virtual memory system to swap blocks from the file VM into RAM, so that storage system reads won't happen in the real-time context.

            Source https://stackoverflow.com/questions/61281973

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install timestretch

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/danigb/timestretch.git

          • CLI

            gh repo clone danigb/timestretch

          • sshUrl

            git@github.com:danigb/timestretch.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Audio Utils Libraries

            howler.js

            by goldfire

            fingerprintjs

            by fingerprintjs

            Tone.js

            by Tonejs

            AudioKit

            by AudioKit

            sonic-pi

            by sonic-pi-net

            Try Top Libraries by danigb

            soundfont-player

            by danigbJavaScript

            note-parser

            by danigbJavaScript

            music-scale

            by danigbJavaScript

            scorejs

            by danigbJavaScript

            sample-player

            by danigbJavaScript