DB_IEC_MINUS_4 = 0.9 DB_IEC_MINUS_6 = 0.85 DB_IEC_MINUS_10 = 0.75 DB_IEC_MINUS_12 = 0.70 DB_IEC_MINUS_20 = 0.5 DB_IEC_MINUS_40 = 0.15 PEAK_FRAMES = 14 OVER_FRAMES = 30 # Colors METER_BG_COLOR = (0.15, 0.15, 0.15) OVERLAY_COLOR = (0.70, 0.70, 0.70) #utils.get_cairo_color_tuple_255_rgb(63, 145, 188)#59, 140, 174) #(0.7, 0.7, 1.0) # Color gradient used to draw "LED" colors rr, rg, rb = utils.get_cairo_color_tuple_255_rgb(219, 69, 69) RED_1 = (0, rr, rg, rb, 1) RED_2 = (1 - DB_IEC_MINUS_4 - 0.005, rr, rg, rb, 1) YELLOW_1 = (1 - DB_IEC_MINUS_4 - 0.005 + 0.001, 1, 1, 0, 1) YELLOW_2 = (1 - DB_IEC_MINUS_12, 1, 1, 0, 1) gr, gg, gb = utils.get_cairo_color_tuple_255_rgb(86, 188, 137) GREEN_1 = (1 - DB_IEC_MINUS_12 + 0.001, gr, gg, gb, 1) GREEN_2 = (1, gr, gg, gb, 1) LEFT_CHANNEL = "_audio_level.0" RIGHT_CHANNEL = "_audio_level.1" MONITORING_AVAILABLE = False # GUI compoents displaying levels _monitor_window = None
DB_IEC_MINUS_10 = 0.75 DB_IEC_MINUS_12 = 0.70 DB_IEC_MINUS_20 = 0.5 DB_IEC_MINUS_40 = 0.15 PEAK_FRAMES = 14 OVER_FRAMES = 30 # Colors METER_BG_COLOR = (0.15, 0.15, 0.15) OVERLAY_COLOR = ( 0.70, 0.70, 0.70 ) #utils.get_cairo_color_tuple_255_rgb(63, 145, 188)#59, 140, 174) #(0.7, 0.7, 1.0) # Color gradient used to draw "LED" colors rr, rg, rb = utils.get_cairo_color_tuple_255_rgb(219, 69, 69) RED_1 = (0, rr, rg, rb, 1) RED_2 = (1 - DB_IEC_MINUS_4 - 0.005, rr, rg, rb, 1) YELLOW_1 = (1 - DB_IEC_MINUS_4 - 0.005 + 0.001, 1, 1, 0, 1) YELLOW_2 = (1 - DB_IEC_MINUS_12, 1, 1, 0, 1) gr, gg, gb = utils.get_cairo_color_tuple_255_rgb(86, 188, 137) GREEN_1 = (1 - DB_IEC_MINUS_12 + 0.001, gr, gg, gb, 1) GREEN_2 = (1, gr, gg, gb, 1) LEFT_CHANNEL = "_audio_level.0" RIGHT_CHANNEL = "_audio_level.1" MONITORING_AVAILABLE = False # GUI compoents displaying levels _monitor_window = None
DEFAULT_VIEW = 0 START_TRIM_VIEW = 1 END_TRIM_VIEW = 2 ROLL_TRIM_RIGHT_ACTIVE_VIEW = 3 ROLL_TRIM_LEFT_ACTIVE_VIEW = 4 SLIP_TRIM_RIGHT_ACTIVE_VIEW = 5 SLIP_TRIM_LEFT_ACTIVE_VIEW = 6 FRAME_MATCH_VIEW = 7 TC_LEFT_SIDE_PAD = 172 TC_RIGHT_SIDE_PAD = 28 TC_HEIGHT = 27 MATCH_FRAME = "match_frame.png" MONITOR_INDICATOR_COLOR = utils.get_cairo_color_tuple_255_rgb(71, 131, 169) MONITOR_INDICATOR_COLOR_MATCH = utils.get_cairo_color_tuple_255_rgb(21, 71, 105) FRAME_MATCH_VIEW_COLOR = (0.3, 0.3, 0.3) # Continuos match frame update CONTINUOS_UPDATE_PAUSE = 0.2 _last_render_time = 0.0 _producer = None _consumer = None _frame_write_on = False _widget = None def _get_match_frame_path(): return userfolders.get_cache_dir() + appconsts.TRIM_VIEW_DIR + "/" + MATCH_FRAME