Adds midi.out-map which immediately calls fn with a live state object.