Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import {
  2. SELECT_MIDI_CONTROLLER,
  3. SELECT_NUMBER_OF_KEYBOARD_OCTAVES,
  4. SET_WEB_MIDI_SUPPORTED,
  5. } from './action-types';
  6.  
  7. export const selectMidiController = ({ selectedDeviceName }) => ({
  8. type: SELECT_MIDI_CONTROLLER,
  9. selectedDeviceName,
  10. });
  11.  
  12. export const selectNumberOfKeyboardOctaves = ({
  13. numberOfKeyboardOctaves
  14. }) => ({
  15. type: SELECT_NUMBER_OF_KEYBOARD_OCTAVES,
  16. numberOfKeyboardOctaves,
  17. })
  18.  
  19. export const setWebMidiSupported = ({
  20. webMidiSupported,
  21. }) => ({
  22. type: SET_WEB_MIDI_SUPPORTED,
  23. webMidiSupported,
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement