breakfastquay / rubberband

Official mirror of Rubber Band Library, an audio time-stretching and pitch-shifting library.
http://breakfastquay.com/rubberband/
GNU General Public License v2.0
580 stars 93 forks source link

Output sample range can be beyond [-1, 1] #14

Closed AmyXS closed 5 years ago

AmyXS commented 5 years ago

Hi There,

I've come across a behaviour where the samples I get from retrieve can be above 1. I thought I could assume the range to be [-1, 1], if not, is there a way I can find the range? I'm running the stretcher in real time mode, providing getSamplesRequired number of samples to process. I'm using a loud pop song. Could you please advise if this is expected and if I can set the range of sample values?

Cheers,

Amy

AmyXS commented 5 years ago

I'm using these options: RubberBand::RubberBandStretcher::OptionProcessRealTime | RubberBand::RubberBandStretcher::OptionPitchHighConsistency)

AmyXS commented 5 years ago

Sorry,I realised my decoded audio is clipping, so it wasn't RubberBand's fault. I will close this issue.