(sequence, delta_time)
return retimed_sequence
Adjusts note and total NoteSequence times by `delta_time`.
Adjusts note and total NoteSequence times by `delta_time`.
Adjusts note and total NoteSequence times by delta_time .
def adjust_sequence_times(sequence, delta_time):
  """Adjusts note and total NoteSequence times by `delta_time`."""
  retimed_sequence = music_pb2.NoteSequence()
  retimed_sequence.CopyFrom(sequence)

  for note in retimed_sequence.notes:
    note.start_time += delta_time
    note.end_time += delta_time
  retimed_sequence.total_time += delta_time
  return retimed_sequence
def adjust_sequence_times ( sequence , delta_time ) : retimed_sequence = music_pb2 . NoteSequence ( ) retimed_sequence . CopyFrom ( sequence ) for note in retimed_sequence . notes : note . start_time += delta_time note . end_time += delta_time retimed_sequence . total_time += delta_time return retimed_sequence