Replace query to operations with voice limit
Remove function declaration in wrong header
Fix MIDI tests compilation