MIDI only session imported at 96khz now exports at 0.5 speed [Solved]

I have a MIDI file that was somehow loaded or converted to 48khz instead of my system standard which is set to 96khz (for a few years now, using Jack/Pipewire). No idea how that happened but I have been working on this file for a month. Of course it tells me when loading the session but I load it anyway and it has always worked. No idea how it ended up at 48k and it loads fine and I can edit and mix it just fine, but now exporting the mix to a flac file ends up playing at half speed. It has exported correctly previously but suddenly it will not. What do I need to do to fix this?

EDIT: The only difference I can think of, I had a MIDI keyboard connected when it exported at the correct speed. Now I don’t. Should not be related, but I can think of nothing else different.

MIDI-data doesn’t have a sample frequency, it only has beats-per-minute, so it’s a bit unclear what you mean by “a MIDI file that was somehow loaded or converted to 48khz”.
Are you talking about the actual samples the MIDI file is playing?

If the sound of the track is playing in the correct octave but just a lot slower then maybe you’ve changed the current tempo setting, which is below the primary (leftmost) clock.

Yes, but Ardour sessions always have a sample rate associated, since you can always add audio tracks or instantiate instrument plugins.

I thought that Ardour previously would refuse to load if the session did not match the JACK sample rate.
Have you confirmed that your pipewire-jack configuration still is running at 96k?

Do you have any audio tracks, or only MIDI/audio with software instruments?
If you do not have any pre-recorded audio which would be affected, then you could edit the project .ardour files and change the sample rate there, it is just a single value near the top of the project file.
That will not work if you already recorded audio because then none of the recorded audio files would match the session sample rate and the audio would play twice as fast and twice the pitch it should.

Instead of saying a MIDI file that was somehow loaded or converted to 48khz I meant to say the Session was loaded/converted to 48khz. Sorry for the awful terminology. :smiley:

The session is MIDI only, there are no audio tracks. All tracks are using the built-in GM player by Robin Gareus.

As I mentioned, it does play at the correct tempo and pitch but exports at half pitch and tempo.
Anyway, while typing this I edited the .ardour file, changed it to 96khz and it exports fine now.
Thank you for the replies and the tip! Fixed!