ModalityTeam/Modality-toolkit

Problems with Note events coming from Ableton Push 2

moogah opened this issue · 2 comments

I'm trying to work through the basic setup of a Push 2 and I've found that note events from the pads and the touch encoders are not recognized. At the moment I'm stumped on where to continue debugging, so any guidance is appreciated! I'm running SC 3.10.2 on OSX 10.15, installed Modality through quarks and on the master branch, commit cf6aa3f34b555387ba7dabb694ddcbb7a3d64e61 (May 30th 2019)

k = MKtl('push', "ableton-push-2", multiIndex: 0);
// use Index 0, which is the Live Port and the the one it sends notes over by default (confirmed in their docs and checked myself with a MIDI monitor)
/*
-> MKtl('push')
*/

k.mktlDevice;
/*
WARNING: Called from Interpreter:interpretPrintCmdLine, method MKtl:mktlDevice is deprecated and will be removed.
The definition of 'MKtl:mktlDevice' is to be found here: '/Users/jefffarr/Library/Application Support/SuperCollider/downloaded-quarks/Modality-toolkit/Modality/Classes/MKtl/MKtl.sc'
*/

MKtl.postLoadedDescs;
/*
*** MKtlDesc - loaded descs: ***
MKtlDesc.at('ableton-push-2') // Ableton Push 2
******

-> MKtl
*/

k.trace(true);
// pressing the top right pad once
/*
MKtl('push') : unknown 'noteOn' element found at midiNum: 99,  midiChan 0.
	Please add it to the description file. E.g. for a button:<bt>: (midiMsgType: 'noteOn', elementType: <'button'>, midiChan: 0, midiNum: 99, spec: <'midiBut'>, mode: <'push'>)


MKtl('push') : unknown 'noteOff' element found at midiNum: 99,  midiChan 0.
	Please add it to the description file. E.g. for a button:<bt>: (midiMsgType: 'noteOff', elementType: <'button'>, midiChan: 0, midiNum: 99, spec: <'midiBut'>, mode: <'push'>)
*/

k.elAt(\pad, \1, \8);
/*
-> MKtlElementGroup('8', MKtl('push'), 'mixed', [ 'pad_1_8_on', 'pad_1_8_off', 'pad_1_8_touch' ])
*/

k.dictAt('pad_1_8_on');
/*
-> MKtlElement('pad_1_8_on', 'pad')
*/

k.dictAt('pad_1_8_on').enabled;
/*
true
*/

k.dictAt('pad_1_8_on').elemDesc;
/*
-> ( 'elemKey': pad_1_8_on, 'key': on, 'midiMsgType': noteOn, 'spec': midiVel )
*/

k.elAt('pad').elAt(0).elAt(7);
/*
-> MKtlElementGroup('8', MKtl('push'), 'mixed', [ 'pad_1_8_on', 'pad_1_8_off', 'pad_1_8_touch' ])
*/

k.elAt('pad').elAt(0).elAt(7).elemDesc;
/*
-> ( 'shared': ( 'style': ( 'column': 9, 'row': 4 ), 'midiNum': 99 ) )
*/

I am having the same problem with Arturia BeatStep pads, running SC 3.10.3 on OSX 10.14.5.

fixed with #333