src/XJack.cpp
// sync fresh recorded vector to play position
sync fresh recorded vector to play position
sync fresh recorded vector to play position
inline int XJack::find_pos_for_playtime() noexcept {
    int pos = 0;
    for(std::vector<mamba::MidiEvent>::const_iterator i = rec.play[mmessage->channel].begin();
                                    i != rec.play[mmessage->channel].end(); ++i) {
        if ((*i).absoluteTime >= playPosTime) return pos;
        pos++;
    }
    return pos;
}
inline int XJack :: find_pos_for_playtime ( ) noexcept { int pos = 0 ; for ( std :: vector < mamba :: MidiEvent > :: const_iterator i = rec . play [ mmessage -> channel ] . begin ( ) ; i != rec . play [ mmessage -> channel ] . end ( ) ; ++ i ) { if ( ( * i ) . absoluteTime >= playPosTime ) return pos ; pos ++ ; } return pos ; }
sync fresh recorded vector to play position
sync fresh recorded vector to play position