def removeChannelDuplicates(queue, channel):
    """
    Remove settings that apply to the current channel. This way
    when you move the slider and generate 100 events only the last
    one gets acted on, but pending events for other channels are not lost.
    """
    final_queue = []
    for item in queue:
        if (item[0] == channel):
            continue
        final_queue.append(item)
    return final_queue