Adding grace notes that are completely movable in the piano roll within a range of the primary note they are an ornament to would allow for the rhythmic notation in the bar to maintain its accuracy without condensing to accommodate a rhythmic value for the grace note.