As documented in the Lilypond manual, when I place a \midi { ... } command in a .ly source file LilyPond will generate a MIDI file.
When I started using LilyPond/Frescobaldi, just days ago (Windows 7, Lilypond 2.16.2 , Frescobaldi 2.12) the .mid file was written in the same directory as the .ly source file.
Now, just days later (Lilypond 2.18, Frescobaldi 2.13), when a .mid file is generated it isn't written in the obvious place; alongside the .ly source file.
It so happens that I can still retrieve the MIDI file; Frescobaldi writes a copy of the MIDI file in a subdirectory of the temp/ directory that Frescobaldi is using.
To rescue the file I go to:
c:/users/%username%/appdata/local/temp/frescobaldi-pgsxxu/tmp74o0jt/
I'm guessing this is not a Lilypond issue. Lilypond does generate the MIDI file, and Frescobaldi does catch the Lilypond output. But in my case the generated MIDI file isn't written alongside the .ly source file.
Am I overlooking something? I checked the Frescobaldi preferences, and I don't see one that I could have inadvertendly changed to cause this.