Use a midi keyboard with my app (with alsa)

Hi!! i want to use a midi keyboard with my app and i got :

ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib seq.c:935:(snd_seq_open_noupdate) Unknown SEQ default

MidiInAlsa::initialize: error creating ALSA sequencer client object.

Failed to create an RtMidi device object. 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

when i start the snap into the command line

my yaml file is :

name: midicompanions3d
summary: Midi Companions 3D
description: |
 A freeware to be accompanied by playing a midi instrument or midi software with the computer. This games application is not multi-user. It is possible to use all midi devices running under linux. A virtual music group is waiting for you! the software will be updated soon with other cool options.
version: "3.4"

parts:
    midicompanions3d:
        source: .
        plugin: dump
        
base: core18

apps:
    midicompanions3d:
        extensions: [gnome-3-34]
        command: MidiCompanions3d.x86_64
        desktop: MidiCompanions3d.desktop
        plugs: [alsa, audio-playback]
        
plugs:
    config-foo:
        interface: system-files
        read: [ /usr/share/alsa/alsa.conf ]
        write: [ /usr/share/alsa/alsa.conf ]

and i need to connect but i have no idea what make this as command line like :

snap connect foo:config-foo.

i tried many thinks to connect but i’m not winning about :

sudo snap connect midicompanions3d:alsa

sudo snap connect midicompanions3d:alsa :alsa

sudo snap connect midicompanions3d:alsa

sudo snap connect midicompanions3d:config-foo :config-foo 

help will be appreciated

i’m giving up, i taken 3 month to find a solution… oooooh i will make other projects… and give up this one. :S