Setting event id from annotation

Hi,

To prepare epoching continuous data (EEG), I want to create equally spaced event with an id (ex: 0) on most of the raw signal but I would like another event id (ex: 1) during the annotated signal portions. I thought about 2 ways to do it but always block on something:

  1. Add event 0 on the full signal with make_fixed_length_events, but how can I change the event id occuring during annotations ?
  2. Add type 1 events on annotated portions of signal only with events_from_annotations but how to add the type 0 events on the remaining signal excluding the annotations ?
  3. other nice way ?
    Thank you for your help