Skip to content
Snippets Groups Projects
Commit c2d40d28 authored by moon2's avatar moon2 :speech_balloon:
Browse files

bl00mbox: plugins: multipitch lower limit bugfix

parent b666bda8
No related branches found
No related tags found
1 merge request!671bl00mbox: plugins: multipitch lower limit bugfix
Pipeline #12802 passed
...@@ -36,7 +36,7 @@ static inline int32_t pitch_limit(int32_t pitch, int32_t min, int32_t max){ ...@@ -36,7 +36,7 @@ static inline int32_t pitch_limit(int32_t pitch, int32_t min, int32_t max){
} else if(pitch < min){ } else if(pitch < min){
int32_t estimate = (13891*(min - pitch))>>25; int32_t estimate = (13891*(min - pitch))>>25;
pitch += 2400 * estimate; pitch += 2400 * estimate;
while(pitch < max) pitch += 2400; while(pitch < min) pitch += 2400;
} }
return pitch; return pitch;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment