Skip to content

Commit

Permalink
Merge pull request #21 from dszakallas/reloop_andstop
Browse files Browse the repository at this point in the history
implement reloop and stop
  • Loading branch information
dszakallas authored Mar 25, 2020
2 parents 9ffbdaf + 579565a commit e09b4ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/app/src/App/controls/reloop.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export default (gridPosition: [number, number]) => (deck: ChannelControl) => (mo
type: 'button',
target: gridPosition,
attack: () => {
modes(modifier.getState(), () => deck.reloop_exit.setValue(1))
modes(
modifier.getState(),
() => deck.reloop_exit.setValue(1),
() => deck.reloop_andstop.setValue(1)
)
}
},
control: {
Expand Down
2 changes: 2 additions & 0 deletions packages/mixxx/src/Control.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export type SimpleChannelControlKey =
| 'rate_temp_up'
| 'rate_temp_up_small'
| 'rateRange'
| 'reloop_andstop'
| 'reloop_exit'
| 'repeat'
| 'reset_key'
Expand Down Expand Up @@ -246,6 +247,7 @@ const channelDef = (type: string, i: number) => ({
rate_temp_up: { group: `[${type}${i}]`, name: 'rate_temp_up', type: 'binary' },
rate_temp_up_small: { group: `[${type}${i}]`, name: 'rate_temp_up_small', type: 'binary' },
rateRange: { group: `[${type}${i}]`, name: 'rateRange', type: '0.0..3.0' },
reloop_andstop: { group: `[${type}${i}]`, name: 'reloop_andstop', type: 'binary' },
reloop_exit: { group: `[${type}${i}]`, name: 'reloop_exit', type: 'binary' },
repeat: { group: `[${type}${i}]`, name: 'repeat', type: 'binary' },
reset_key: { group: `[${type}${i}]`, name: 'reset_key', type: 'binary' },
Expand Down

0 comments on commit e09b4ed

Please sign in to comment.