Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For Ableton Push setPadLight messages result in error #330

Open
nasedil opened this issue Jul 14, 2019 · 3 comments
Open

For Ableton Push setPadLight messages result in error #330

nasedil opened this issue Jul 14, 2019 · 3 comments

Comments

@nasedil
Copy link

nasedil commented Jul 14, 2019

Hi, I've tried to run code from the examples from the MPush page in docs:

k = MPush('push');
k.setPadLight(k.elAt(\pad, \8, \1, \on), \green);

That code results in the following error:

ERROR: Message 'asInteger' not understood.
RECEIVER:
   nil
ARGS:
CALL STACK:
	DoesNotUnderstandError:reportError
		arg this = <instance of DoesNotUnderstandError>
	Nil:handleError
		arg this = nil
		arg error = <instance of DoesNotUnderstandError>
	Thread:handleError
		arg this = <instance of Thread>
		arg error = <instance of DoesNotUnderstandError>
	Object:throw
		arg this = <instance of DoesNotUnderstandError>
	Object:doesNotUnderstand
		arg this = nil
		arg selector = 'asInteger'
		arg args = [*0]
	MIDIOut:noteOn
		arg this = <instance of MIDIOut>
		arg chan = 0
		arg note = nil
		arg veloc = 21
	MIDIMKtlDevice:send
		arg this = <instance of MIDIMKtlDevice>
		arg key = 'pad_8_1_on'
		arg val = 21
		var elem = <instance of MKtlElement>
		var elemDesc = <instance of Event>
		var msgType = 'noteOn'
		var chan = 0
		var num = nil
	MKtl:send
		arg this = <instance of MPush>
		arg key = 'pad_8_1_on'
		arg val = 21
	MAbstractElement:trySend
		arg this = <instance of MKtlElement>
	MAbstractElement:value_
		arg this = <instance of MKtlElement>
		arg newval = 21
	ArrayedCollection:do
		arg this = [*1]
		arg function = <instance of Function>
		var i = 0
	MPush:setPadLight
		arg this = <instance of MPush>
		arg elem = <instance of MKtlElement>
		arg color = 'green'
		arg intensity = 'full'
		arg blink = 'steady'
	Interpreter:interpretPrintCmdLine
		arg this = <instance of Interpreter>
		var res = nil
		var func = <instance of Function>
		var code = "k.setPadLight(k.elAt(\pad, \..."
		var doc = nil
		var ideClass = <instance of Meta_ScIDE>
	Process:interpretPrintCmdLine
		arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Message 'asInteger' not understood.
RECEIVER: nil

However, this line works fine:

k.setBtLight(k.elementAt(\bt, 0, 0), 'none');

I've tried some other code examples from the page, it seems that some of them also behave differently then they are suppose to work.

@LFSaw
Copy link
Member

LFSaw commented Jul 17, 2019

are you using the Push2 or Push?

@nasedil
Copy link
Author

nasedil commented Jul 17, 2019

@LFSaw I'm using Push (1st one)

@LFSaw
Copy link
Member

LFSaw commented Jul 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants