Don’t know what anvil is, but it seems the issue is that the computer isnt connected to any sound producing components, so it’s getting the MIDI but doesn’t know what to do with it. Earlier you mentioned the keyboard to daw then Daw back to keyboard route if you have reaped as you mentioned, it certainly can take in midi and send it out, not sure about anvil, but I suspect it can too. Your problem seems the routing. As I don’t use anvil or reaper I can’t help with that process. If at all possible I’d suggest using only sounds inside the computer, your Yamaha isnt known for unique sounds, so almost everything it can do can be done even better with VSTi type instruments nowadays and simplifies the system so much