Puzzled about bit of code

I looked thru the midi source, and I also couldn't find anything.

The midi.read function couldn't be interfering with interrupts, because a call to the setFreq function outside the if statement works.