Spent almost half a day and still can `t understand how I get the values ​​of 4 and 4 (4/4) from a midi file using iOS (objective c, CoreMIDI)

I have a midi file 4/4 19 bars 120 bmp 

I tried following code:

```
MusicTimeStamp inBeats;
UInt32 inSubbeatDivisor;
CABarBeatTime outBarBeatTime;
MusicSequenceBeatsToBarBeatTime(aSequence, inBeats, inSubbeatDivisor, &outBarBeatTime);

NSLog(@"%i, %i, %i, %i, %i, %f", outBarBeatTime.bar, outBarBeatTime.beat, outBarBeatTime.reserved, outBarBeatTime.subbeat, outBarBeatTime.subbeatDivisor, inBeats);

```

NSLOG RESULT: 5, 3, 755, 0, 50617, 0.000000

Not sure what to do with this info from NSLog. 

If the midi file will be 6/2 or 4/2 or 5/8. Then I want to simply get this values (second/first)

Can some one help me to calculate it? Thank you!