Notifications
Clear all

How can i read the RMS from the left & right microphones?

1 Posts
1 Users
0 Reactions
1,055 Views
(@michael)
Member Admin
Joined: 8 years ago
Posts: 1
Topic starter  

An example in Python is worth more than a thousand words...

import serial
import QboCmd

#Get mics present RMS values 0 - 32767: 0 - 1V

par_list = HeadCtrl.GetHeadCmd("GET_MIC_REPORT", 0)
if response:
    mic1_rms = (par_list[1] << 8 | par_list[0]) / 32767.0
    mic2_rms = (par_list[3] << 8 | par_list[2]) / 32767.0
    mic3_rms = (par_list[5] << 8 | par_list[4]) / 32767.0

#Switch to mic  1

HeadCtrl.GetHeadCmd("SET_MIC_INPUT", 1)


   
Quote
Share: