EventHelper

class EventHelper : NSObject

Helper class for managing SequenceEvent logic

  • Determines if the SequencerCell with the specified note, timeDivision, and row should be enabled

    Declaration

    Swift

    static func isEnabled(note: Note, timeDivision: TimeDivision, row: Int) -> Bool

    Parameters

    note

    Note that should be check in sequence event state

    timeDivision

    TimeDivision for what a ‘row’‘s beat would translate into an audio position

    row

    Int representing the sequencer ‘row’ or ‘column’

    Return Value

    A bool representing if the note at the specified row should be enabled in UI due to the backing SequenceEvent state