Old 05-12-2017, 01:43 AM   #1
bFooz
Human being with feelings
 
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
Default Real time RMS algorithm for Lua

Hi, can someone please advise me some code in Lua that would calculate real time rms for metering purposes.

I have found some snippets, particularly this one http://forum.cockos.com/showpost.php...8&postcount=10 but I was not able to succefully rewrite it to Lua.

Thanks in advance.
bFooz is online now   Reply With Quote
Old 05-12-2017, 12:05 PM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

RMS need to be strongly calculated from sample level in terms of resolution.
Defer cycle in Lua (and also in EEL although it is JSFX also) has dynamic rate (about 30 times a second depending on CPU usage) so calculating RMS with lua seems impossible in a adequate way.
mpl is offline   Reply With Quote
Old 05-12-2017, 12:19 PM   #3
bFooz
Human being with feelings
 
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
Default

Quote:
Originally Posted by mpl View Post
RMS need to be strongly calculated from sample level in terms of resolution.
Defer cycle in Lua (and also in EEL although it is JSFX also) has dynamic rate (about 30 times a second depending on CPU usage) so calculating RMS with lua seems impossible in a adequate way.
Thanks, I was afraid of this.
bFooz is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.