oops, sorry for my "bad" attachement!
This should work:
#N canvas 171 198 872 572 12; #X msg 239 133 record; #X msg 407 388 edit; #X obj 246 427 noteout; #X msg 239 219 restop; #X msg 371 354 readd 144 $1 $2 1; #X obj 370 428 xeq_record $0-x; #X msg 235 258 mfwrite asd.mid; #X msg 452 389 rewind; #X msg 240 179 60 100; #X msg 303 179 60 0; #X text 33 23 XEQ-Problem:; #X text 59 177 2) play a little bit:; #X text 101 132 1) start record:; #X text 107 218 3) stop record:; #X text 59 257 4) try to write file:; #X text 29 68 I think it should work this way...; #X text 328 511 ... but it doesn't !!!; #X text 369 257 -> I get error: "request to write empty midifile ignored" ; #X text 394 286 but the midi file isn't empty !!?; #X connect 0 0 5 0; #X connect 1 0 5 0; #X connect 3 0 5 0; #X connect 4 0 5 0; #X connect 6 0 5 0; #X connect 7 0 5 0; #X connect 8 0 4 0; #X connect 8 0 2 0; #X connect 9 0 4 0; #X connect 9 0 2 0;