[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] MIDIFunc to control GUI elements: strange error
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] MIDIFunc to control GUI elements: strange error
- From: sc <mailofdjeho@xxxxxxxxx>
- Date: Sun, 29 Dec 2013 13:56:13 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=IPya1mV40iKtpxsW25gBPDm/QhG3Xxmk1c31smrxkPc=; b=oWVoJwU7MVgEXv7j6tmCcHoMKTCaVOM3T+46R3fd2wxLI3PRdPaoYhgyOSWo1Ucu2u bH0lQjIB/0sNEuK3W84O+AeWMGZFEMkUjd5Tu1xuZEYxSfPDJPxwz8Z7i+KyrtmH2gRC 9TrcI20TaL5ITP7SOl6doTy8BTRYrTQ2ghhsr4rVlslAnCP8cTi+whzVD/Utar3NOhjN 3UJyU7kevtP/jb5rx6J53eqsrnMeuigF3gF1X5ByZLkrr9mJTMvk7HLdkBUq8gSwirNe vHSNmAyulHucCdCQh/n7xv6BX1BDmw74/FZMQn3UNNUG4MIZIQ610f8wocGPqUBkck6B T5RQ==
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
Hello,
I don't understand why if I evaluate this line manually,
~myButton.valueAction = 0
~myButton.valueAction = 1
it works perfectly fine, my GUI button will go off/on and my synth
associated with that button will play and free.
BUT
if I do this:
~cc33 = MIDIFunc.cc({|val|
if(val == 127, {~myButton.valueAction = 1}, {~myButton.valueAction
= 0})
}, 33, 0);
it gives me this:
ERROR: Qt: You can not use this Qt functionality in the current thread.
Try scheduling on AppClock instead.
ERROR: Primitive '_QObject_SetProperty' failed.
Failed.
current thread? that's strange. both actions are purely SC lang side
operations, no?
Why AppClock? I'm not scheduling anything here, I just map a simple
function to midi control.
how you guys deal with this error? it must be possible to control QT gui
with midi controllers, no?
thanks!
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/