rt_note_analysis.py : Change to support stereo signals.
This commit is contained in:
parent
b4b0973e9a
commit
011606c5cf
@ -30,10 +30,14 @@ class RT_Analyzer:
|
||||
|
||||
if result:
|
||||
|
||||
|
||||
sigV = result.value
|
||||
|
||||
# convert the audio signal vector to contain only the first (left) channel
|
||||
if len(sigV.shape)>1:
|
||||
sigV = sigV[:,0].squeeze()
|
||||
|
||||
anlArgs = types.SimpleNamespace(**anlArgD)
|
||||
|
||||
|
||||
rmsDbV, rms_srate, binHz = audio_harm_rms( audioDev.srate, np.squeeze(sigV), anlArgs.rmsWndMs, anlArgs.rmsHopMs, anlArgs.dbLinRef, midi_pitch, anlArgs.harmCandN, anlArgs.harmN )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user