Code Monkey home page Code Monkey logo

soundtouch.net's People

Contributors

owoudenberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

soundtouch.net's Issues

How to play sound in a loop without hearable gap

Hi,
I tryed to find out how to play a file in a loop without gap. Unfortunately the PlaybackStopped event seams to imply a Stop() on the player so a new Play() is hearable.

Thanks for providing me the right solution concept.

Licensing

Hi.
I couldn't find another way to contact you so posting a message here.
Could you email me via https://sonicviz.com/contact-us/ as I'd like to ask about alternative licensing of soundtouch? ty!

mp3 support and usage for unity

Is it possible to make SoundStretch to support mp3 instead of wav? and does it support cross platform (android & ios) for Unity?

BPM Detection example

Hi, can you please show me an example for BpmDetect?
I'm making a tool for analyzing Key and BPM of WAV files but I can't figure out how to use this library for BPM detection
I will be very grateful if you can help me

Index was outside the bounds of the array.

Hi,
SoundStretch.exe 001.wav "" -bpm
Index was outside the bounds of the array.

and my project
SoundTouch.PeakFinder.GetPeakCenter(ReadOnlySpan1& data, Int32 peakPosition) в d:\a\1\s\src\SoundTouch.Net\PeakFinder.cs:Line 293 SoundTouch.PeakFinder.DetectPeak(ReadOnlySpan1& data, Int32 minPos, Int32 maxPos) в d:\a\1\s\src\SoundTouch.Net\PeakFinder.cs:Line 77
SoundTouch.BpmDetect.GetBpm() в d:\a\1\s\src\SoundTouch.Net\BpmDetect.cs:Line 277

file
https://www.dropbox.com/s/wo2n9w94gziwfur/001.wav?dl=0
Thx.

Can not run in android xamarin

public bool OpenFile(WaveStream stream, double tempo = 1)
{
    Close();

    try
    {
        var inputStream = new WaveChannel32(stream) { PadWithZeroes = false };

        ProcessorStream = new SoundTouchWaveStream(inputStream);

        ProcessorStream.Tempo = tempo;

        _waveOut = new WaveOutEvent() { DesiredLatency = 200 };

        _waveOut.Init(ProcessorStream);
        _waveOut.PlaybackStopped += OnPlaybackStopped;

        return true;
    }
    catch (Exception exp)
    {
        // Error in opening file
        _waveOut = null;
        StatusMessage.Write("Can't open file: " + exp.Message);
        return false;
    }
}

Error:
_waveOut.Init(ProcessorStream); throw
winmm.dll assembly:<unknown assembly> type:<unknown type> member:(null)

Index out of range in SoundTouch.PeakFinder

At line 155 of the code is says:
while ((position >= _minPosition) && (position < _maxPosition))
but one line later
data[position + direction]
is tested, which is out of range. Test should take direction into account.

Implementation in Unity

Hi there

I'm trying to implement the soundtouch.net code in Unity, as I have problems implementing the DLL File in an Android build.

But I`m still getting an error message:

MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "SoundTouch.Assets.Strings.resources" was correctly embedded or linked into assembly "Assembly-CSharp-firstpass" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Could you help me understand what I'm missing?

Hard to figure out which package to use for which NAudio version

It's not clear enough that SoundTouch.Net.NAudioSupport and SoundTouch.Net.NAudioSupport.Core are compatible with different NAudio versions. I found SoundTouch.Net.NAudioSupport via Google, so I didn't even know that SoundTouch.Net.NAudioSupport.Core existed until I dug into this repository.

This is what the NuGet.org dependencies look like for SoundTouch.Net.NAudioSupport:

image

I suggest the following:

  1. Constrain the NAudio package reference in SoundTouch.Net.NAudioSupport.csproj using this version range: [1.9,2) This constraint will be displayed nicely on NuGet.org, and the incompatibility will be surfaced in a more explicit way in the IDE and during build.
  2. Add documentation which is visible on NuGet.org stating which package is compatible with which series (1.x vs 2.x).

mp3

Does it support mp3-files?
Something like mp3InFile instead of WavInFile.
I need only DetectBpm() function

Any possibility of making the licensing more relaxed?

Hi,

I love the lib! I'd like to use it in a commercial app, and unfortunately I need to recompile it (and I can't do it with the current licensing), since I need to use it in UWP, and I've tweaked naudio for my needs.

Would that be possible?

Best,
John

System.OutOfMemoryException

If I'm changing the pitch repeatedly on the SoundTouchWaveStream (using NAudio), eventually I'm getting a System.OutOfMemoryException

SoundTouch.Net.dll!SoundTouch.FifoSampleBuffer.EnsureCapacity(int capacityRequirement) Line 233	C#

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.