

import * as actionTypes from "./actionTypes";

export function sequencerQueued(sequencerId) {
  return {
    type: actionTypes.SEQUENCER_QUEUED,
    payload: {
      sequencerId
    }
  };
}

export function sequencerPlaying(sequencerId) {
  return {
    type: actionTypes.SEQUENCER_PLAYING,
    payload: {
      sequencerId
    }
  };
}

export function sequencerStopped(sequencerId) {
  return {
    type: actionTypes.SEQUENCER_STOPPED,
    payload: {
      sequencerId
    }
  };
}

export function sequencerStopQueued(sequencerId) {
  return {
    type: actionTypes.SEQUENCER_STOP_QUEUED,
    payload: {
      sequencerId
    }
  };
}

export function sequencerPropChangeQueued(sequencerId, props = {}) {
  return {
    type: actionTypes.SEQUENCER_PROP_CHANGE_QUEUED,
    payload: {
      sequencerId,
      props
    }
  };
}
