psambit9791 / jdsp

A Java Library for Digital Signal Processing
https://jdsp.dev
MIT License
240 stars 45 forks source link

Real-Time "Processor" Adapter for Transformation #66

Closed DonHorrell closed 7 months ago

DonHorrell commented 1 year ago

It would be great to have an adapter class ("Processor") to wrap, for example, the ShortTimeFourier class and provide a more real-time streaming interface. There are examples of this style in "Digital Audio with Java" by Craig A Lindley. The wrapper would mean that the full input signal would not need to be loaded into memory, but could be streamed through the processor. We could use it for real-time sound affects such as pitch shifting/tempo changing (there is another suggestion for time-based pitch shifting/tempo changing using WSOLA - https://github.com/psambit9791/jdsp/issues/18). I am not sure if older phones/tablets have enough processing power for this, but it would be great to try!

psambit9791 commented 10 months ago

This is not something I am actively looking at. But I can try for the releases after the upcoming one.