filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.15k stars 451 forks source link

How do I speed up/slow down audio using CScore? #198

Open ADAMPOKE111 opened 7 years ago

ADAMPOKE111 commented 7 years ago

How do I speed up/slow down audio using CScore? Similar Audacity's Effect -> Change Speed, I was wondering if this is possible in CScore to automate things and make everything easier for me so I don't have to use Audacity.

filoe commented 7 years ago

I'm sorry. It is definitly a todo but not implemented yet.

ArizonaInkStudios commented 6 years ago

I wrote a custom EffectSource wrapping SoundTouch DLL to change tempo and pitch without changing the audio sound. With that EffectSource, I can change the tempo without it sounding like chipmunks and I can change the pitch without distortion. Might be a solution for you to try until CSCore supports it natively?

filoe commented 6 years ago

Sounds great. Maybe you could include a sample via pull request?

ArizonaInkStudios commented 6 years ago

Yes I could, but I was not sure about including SoundTouch as it is someone else's library. I will see what I can do though.

ArizonaInkStudios commented 6 years ago

I submitted a pull request. The files may not be where you would put them in your project (all developers organize differently) but you can see what I did. I also added a post build command to get the SoundTouch.dll copied over. Let me know if you have any questions.