Csound Csound-dev Csound-tekno Search About

sensekey in csoundqt not working

Date2015-08-03 16:07
Fromjoachim heintz
Subjectsensekey in csoundqt not working
Attachmentstest.csd  None  None  
for any usage of sensekey in csoundqt, i get this error:

PERF ERROR in instr 1: read failure in sensekey
key	kd	sensekey	
    note aborted

this is on linux.  it seems to work on the command line, but i am 
wondering whether it is a csoundqt issue, or if cabbage or blue have 
similar problems?  and are there any alternatives?

thanks; a simple example is attached -
	joachim

Date2015-08-03 16:28
FromRory Walsh
SubjectRe: sensekey in csoundqt not working
AttachmentsNone  None  
I don't expect sensekey to work in Cabbage because of window focus and what not. But the texteditor widget can be made to work in a similar way.

On 3 August 2015 at 17:07, joachim heintz <jh@joachimheintz.de> wrote:
for any usage of sensekey in csoundqt, i get this error:

PERF ERROR in instr 1: read failure in sensekey
key     kd      sensekey       
   note aborted

this is on linux.  it seems to work on the command line, but i am wondering whether it is a csoundqt issue, or if cabbage or blue have similar problems?  and are there any alternatives?

thanks; a simple example is attached -
        joachim

------------------------------------------------------------------------------

_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



Date2015-08-03 18:18
FromVictor Lazzarini
SubjectRe: sensekey in csoundqt not working
yes, I think sensekey only works on the terminal for the reasons Rory stated.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 3 Aug 2015, at 16:07, joachim heintz  wrote:
> 
> for any usage of sensekey in csoundqt, i get this error:
> 
> PERF ERROR in instr 1: read failure in sensekey
> key	kd	sensekey	
>   note aborted
> 
> this is on linux.  it seems to work on the command line, but i am wondering whether it is a csoundqt issue, or if cabbage or blue have similar problems?  and are there any alternatives?
> 
> thanks; a simple example is attached -
> 	joachim
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-03 18:37
Fromjoachim heintz
SubjectRe: sensekey in csoundqt not working
well, it used to work (with focus either on the widget panel or the 
output console); this is an old csd which i revise.  but i can imagine 
that it is sort of random whether or not.  probably better to look for 
another solution.
best -
	j


Am 03.08.2015 um 19:18 schrieb Victor Lazzarini:
> yes, I think sensekey only works on the terminal for the reasons Rory stated.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 3 Aug 2015, at 16:07, joachim heintz  wrote:
>>
>> for any usage of sensekey in csoundqt, i get this error:
>>
>> PERF ERROR in instr 1: read failure in sensekey
>> key	kd	sensekey	
>>    note aborted
>>
>> this is on linux.  it seems to work on the command line, but i am wondering whether it is a csoundqt issue, or if cabbage or blue have similar problems?  and are there any alternatives?
>>
>> thanks; a simple example is attached -
>> 	joachim
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-03 21:21
FromAndres Cabrera
SubjectRe: sensekey in csoundqt not working
AttachmentsNone  None  
Hi Joachim,

It's still working, but you have to check for kkeydown. I'm not sure if it used to work any other way. I've added an example in the Realtime Interaction examples menu.

Cheers,
Andrés

On Mon, Aug 3, 2015 at 12:37 PM, joachim heintz <jh@joachimheintz.de> wrote:
well, it used to work (with focus either on the widget panel or the
output console); this is an old csd which i revise.  but i can imagine
that it is sort of random whether or not.  probably better to look for
another solution.
best -
        j


Am 03.08.2015 um 19:18 schrieb Victor Lazzarini:
> yes, I think sensekey only works on the terminal for the reasons Rory stated.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 3 Aug 2015, at 16:07, joachim heintz <jh@joachimheintz.de> wrote:
>>
>> for any usage of sensekey in csoundqt, i get this error:
>>
>> PERF ERROR in instr 1: read failure in sensekey
>> key  kd      sensekey
>>    note aborted
>>
>> this is on linux.  it seems to work on the command line, but i am wondering whether it is a csoundqt issue, or if cabbage or blue have similar problems?  and are there any alternatives?
>>
>> thanks; a simple example is attached -
>>      joachim
>> <test.csd>------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Date2015-08-04 10:36
Fromjoachim heintz
SubjectRe: sensekey in csoundqt not working
hi andrés -

this would be excellent, but where is your example?  i see
Miscellaneous > Keyboard Control
but this shows for me the same error as reported.

does it work for you?  or do you mean another one?

thanks -
	joachim


Am 03.08.2015 um 22:21 schrieb Andres Cabrera:
> Hi Joachim,
>
> It's still working, but you have to check for kkeydown. I'm not sure if
> it used to work any other way. I've added an example in the Realtime
> Interaction examples menu.
>
> Cheers,
> Andrés
>
> On Mon, Aug 3, 2015 at 12:37 PM, joachim heintz  > wrote:
>
>     well, it used to work (with focus either on the widget panel or the
>     output console); this is an old csd which i revise.  but i can imagine
>     that it is sort of random whether or not.  probably better to look for
>     another solution.
>     best -
>              j
>
>
>     Am 03.08.2015 um 19:18 schrieb Victor Lazzarini:
>      > yes, I think sensekey only works on the terminal for the reasons
>     Rory stated.
>      > ========================
>      > Dr Victor Lazzarini
>      > Dean of Arts, Celtic Studies and Philosophy,
>      > Maynooth University,
>      > Maynooth, Co Kildare, Ireland
>      > Tel: 00 353 7086936
>      > Fax: 00 353 1 7086952
>      >
>      >> On 3 Aug 2015, at 16:07, joachim heintz      > wrote:
>      >>
>      >> for any usage of sensekey in csoundqt, i get this error:
>      >>
>      >> PERF ERROR in instr 1: read failure in sensekey
>      >> key  kd      sensekey
>      >>    note aborted
>      >>
>      >> this is on linux.  it seems to work on the command line, but i
>     am wondering whether it is a csoundqt issue, or if cabbage or blue
>     have similar problems?  and are there any alternatives?
>      >>
>      >> thanks; a simple example is attached -
>      >>      joachim
>      >>
>     ------------------------------------------------------------------------------
>      >> _______________________________________________
>      >> Csound-users mailing list
>      >> Csound-users@lists.sourceforge.net
>     
>      >> https://lists.sourceforge.net/lists/listinfo/csound-users
>      >> Send bugs reports to
>      >> https://github.com/csound/csound/issues
>      >> Discussions of bugs and features can be posted here
>      >
>      >
>      >
>     ------------------------------------------------------------------------------
>      > _______________________________________________
>      > Csound-users mailing list
>      > Csound-users@lists.sourceforge.net
>     
>      > https://lists.sourceforge.net/lists/listinfo/csound-users
>      > Send bugs reports to
>      > https://github.com/csound/csound/issues
>      > Discussions of bugs and features can be posted here
>      >
>
>     ------------------------------------------------------------------------------
>     _______________________________________________
>     Csound-users mailing list
>     Csound-users@lists.sourceforge.net
>     
>     https://lists.sourceforge.net/lists/listinfo/csound-users
>     Send bugs reports to
>     https://github.com/csound/csound/issues
>     Discussions of bugs and features can be posted here
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-08-04 14:55
FromAndres Cabrera
SubjectRe: sensekey in csoundqt not working
AttachmentsNone  None  
Hi Joachim,

I think I now see your issue. It seems that kkeydown always reports 0 no matter whether the key is pressed or released. I suspect it might be an issue with Csound, I don't think anything has changed here for CsoundQt, but I'll take a look.

Cheers,
Andrés

On Tue, Aug 4, 2015 at 4:36 AM, joachim heintz <jh@joachimheintz.de> wrote:
hi andrés -

this would be excellent, but where is your example?  i see
Miscellaneous > Keyboard Control
but this shows for me the same error as reported.

does it work for you?  or do you mean another one?

thanks -
        joachim


Am 03.08.2015 um 22:21 schrieb Andres Cabrera:
> Hi Joachim,
>
> It's still working, but you have to check for kkeydown. I'm not sure if
> it used to work any other way. I've added an example in the Realtime
> Interaction examples menu.
>
> Cheers,
> Andrés
>
> On Mon, Aug 3, 2015 at 12:37 PM, joachim heintz <jh@joachimheintz.de
> <mailto:jh@joachimheintz.de>> wrote:
>
>     well, it used to work (with focus either on the widget panel or the
>     output console); this is an old csd which i revise.  but i can imagine
>     that it is sort of random whether or not.  probably better to look for
>     another solution.
>     best -
>              j
>
>
>     Am 03.08.2015 um 19:18 schrieb Victor Lazzarini:
>      > yes, I think sensekey only works on the terminal for the reasons
>     Rory stated.
>      > ========================
>      > Dr Victor Lazzarini
>      > Dean of Arts, Celtic Studies and Philosophy,
>      > Maynooth University,
>      > Maynooth, Co Kildare, Ireland
>      > Tel: 00 353 7086936
>      > Fax: 00 353 1 7086952
>      >
>      >> On 3 Aug 2015, at 16:07, joachim heintz <jh@joachimheintz.de
>     <mailto:jh@joachimheintz.de>> wrote:
>      >>
>      >> for any usage of sensekey in csoundqt, i get this error:
>      >>
>      >> PERF ERROR in instr 1: read failure in sensekey
>      >> key  kd      sensekey
>      >>    note aborted
>      >>
>      >> this is on linux.  it seems to work on the command line, but i
>     am wondering whether it is a csoundqt issue, or if cabbage or blue
>     have similar problems?  and are there any alternatives?
>      >>
>      >> thanks; a simple example is attached -
>      >>      joachim
>      >>
>     <test.csd>------------------------------------------------------------------------------
>      >> _______________________________________________
>      >> Csound-users mailing list
>      >> Csound-users@lists.sourceforge.net
>     <mailto:Csound-users@lists.sourceforge.net>
>      >> https://lists.sourceforge.net/lists/listinfo/csound-users
>      >> Send bugs reports to
>      >> https://github.com/csound/csound/issues
>      >> Discussions of bugs and features can be posted here
>      >
>      >
>      >
>     ------------------------------------------------------------------------------
>      > _______________________________________________
>      > Csound-users mailing list
>      > Csound-users@lists.sourceforge.net
>     <mailto:Csound-users@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/csound-users
>      > Send bugs reports to
>      > https://github.com/csound/csound/issues
>      > Discussions of bugs and features can be posted here
>      >
>
>     ------------------------------------------------------------------------------
>     _______________________________________________
>     Csound-users mailing list
>     Csound-users@lists.sourceforge.net
>     <mailto:Csound-users@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/csound-users
>     Send bugs reports to
>     https://github.com/csound/csound/issues
>     Discussions of bugs and features can be posted here
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Date2015-09-07 03:29
FromTim Mortimer
SubjectRe: sensekey in csoundqt not working / -+rtmidi on mac
Hi

I am having this same error message / issue with Sensekey in csoundQT as
reported a month or so back. Both with the examples referred to & my own
code crashing... with same message 

PERF ERROR in instr 1: read failure in sensekey

I am only using csoundQT as i am trying to send some MIDI messages to a
sampler app on OSX over the IAC Driver (the midi out works fine when i
select IAC driver using the QTcsound preferences ... is this using a Python
call to point the MIDI in the right direction?) 

can I access the IAC Driver using the -+rtmidi flag somehow? then i can just
run from the command line & use sensekey no dramas ...

Expanding on this, i dont actually even know what my -+rtmidi options are -
can they be listed somehow? 

the default gives me:

error: -+rtmidi='portmidi': unknown module

thanks for any ideas on this ... 



--
View this message in context: http://csound.1045644.n5.nabble.com/sensekey-in-csoundqt-not-working-tp5742962p5743449.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-07 04:08
FromTim Mortimer
SubjectRe: -+rtmidi on mac
Trawling this list i found a few references to "CoreMIDI" for -+rtmidi on
Mac, but when i set that flag i get 

sorting score ...
	... done
Elapsed time at end of score sort: real: 0.045s, CPU: 0.010s
output not implemented yet in CoreMIDI

it appears however that others have sent MIDI successfully over the IAC
Driver, I'd be extremely keen to try & achieve this ...

There is no reference to "CoreMIDI" in the csound manual that I can see,
reading the sections on the relevant flags anyway ... 





--
View this message in context: http://csound.1045644.n5.nabble.com/sensekey-in-csoundqt-not-working-tp5742962p5743450.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-07 05:07
FromTim Mortimer
SubjectRe: -+rtmidi on mac
Untitled.png   

Here is a screenshot of my "IAC Driver properties" window. The connectors
for the IAC port are ghosted out.

I googled & found others reporting the same problem & no solution suggested.
Perhaps this is related to why the port isn't showing up in csound as an
output? (but then why is it showing up in CsoundQT?)

anyway, it appears at this stage if i want MIDI i need to use QT button
widgets to trigger output (i'm 'auto-chording' essentially ...) rather than
the keyboard / sensekey input.

Not mission - critical, but there are a few issues here that would increase
my understanding at least if nothing else. My knowledge of the mac / csound
is still very limited to be honest.

Thanks to all.



--
View this message in context: http://csound.1045644.n5.nabble.com/sensekey-in-csoundqt-not-working-tp5742962p5743451.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-10-06 07:01
Fromjoachim heintz
SubjectRe: sensekey in csoundqt not working
hi andrés -

any chance to fix this?  or should we definitely change all examples 
which refer to sensekey?

thanks, all best -
	joachim


On 04/08/15 15:55, Andres Cabrera wrote:
> Hi Joachim,
>
> I think I now see your issue. It seems that kkeydown always reports 0 no
> matter whether the key is pressed or released. I suspect it might be an
> issue with Csound, I don't think anything has changed here for CsoundQt,
> but I'll take a look.
>
> Cheers,
> Andrés
>
> On Tue, Aug 4, 2015 at 4:36 AM, joachim heintz  > wrote:
>
>     hi andrés -
>
>     this would be excellent, but where is your example?  i see
>     Miscellaneous > Keyboard Control
>     but this shows for me the same error as reported.
>
>     does it work for you?  or do you mean another one?
>
>     thanks -
>              joachim
>
>
>     Am 03.08.2015 um 22:21 schrieb Andres Cabrera:
>     > Hi Joachim,
>     >
>     > It's still working, but you have to check for kkeydown. I'm not sure if
>     > it used to work any other way. I've added an example in the Realtime
>     > Interaction examples menu.
>     >
>     > Cheers,
>     > Andrés
>     >
>     > On Mon, Aug 3, 2015 at 12:37 PM, joachim heintz 
>     > >> wrote:
>     >
>     >     well, it used to work (with focus either on the widget panel or the
>     >     output console); this is an old csd which i revise.  but i can imagine
>     >     that it is sort of random whether or not.  probably better to look for
>     >     another solution.
>     >     best -
>     >              j
>     >
>     >
>     >     Am 03.08.2015 um 19:18 schrieb Victor Lazzarini:
>     >      > yes, I think sensekey only works on the terminal for the reasons
>     >     Rory stated.
>     >      > ========================
>     >      > Dr Victor Lazzarini
>     >      > Dean of Arts, Celtic Studies and Philosophy,
>     >      > Maynooth University,
>     >      > Maynooth, Co Kildare, Ireland
>     >      > Tel: 00 353 7086936
>     >      > Fax: 00 353 1 7086952
>     >      >
>     >      >> On 3 Aug 2015, at 16:07, joachim heintz 
>     >     >> wrote:
>     >      >>
>     >      >> for any usage of sensekey in csoundqt, i get this error:
>     >      >>
>     >      >> PERF ERROR in instr 1: read failure in sensekey
>     >      >> key  kd      sensekey
>     >      >>    note aborted
>     >      >>
>     >      >> this is on linux.  it seems to work on the command line, but i
>     >     am wondering whether it is a csoundqt issue, or if cabbage or blue
>     >     have similar problems?  and are there any alternatives?
>     >      >>
>     >      >> thanks; a simple example is attached -
>     >      >>      joachim
>     >      >>
>     >     ------------------------------------------------------------------------------
>     >      >> _______________________________________________
>     >      >> Csound-users mailing list
>     >      >>Csound-users@lists.sourceforge.net
>     
>      >          >
>     >      >>https://lists.sourceforge.net/lists/listinfo/csound-users
>     >      >> Send bugs reports to
>     >      >>https://github.com/csound/csound/issues
>     >      >> Discussions of bugs and features can be posted here
>     >      >
>     >      >
>     >      >
>     >     ------------------------------------------------------------------------------
>     >      > _______________________________________________
>     >      > Csound-users mailing list
>     >      >Csound-users@lists.sourceforge.net
>     
>      >          >
>     >      >https://lists.sourceforge.net/lists/listinfo/csound-users
>     >      > Send bugs reports to
>     >      >https://github.com/csound/csound/issues
>     >      > Discussions of bugs and features can be posted here
>     >      >
>     >
>     >     ------------------------------------------------------------------------------
>     >     _______________________________________________
>     >     Csound-users mailing list
>     >Csound-users@lists.sourceforge.net
>     
>      >          >
>      > https://lists.sourceforge.net/lists/listinfo/csound-users
>      >     Send bugs reports to
>      > https://github.com/csound/csound/issues
>      >     Discussions of bugs and features can be posted here
>      >
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------------
>      >
>      >
>      >
>      > _______________________________________________
>      > Csound-users mailing list
>      > Csound-users@lists.sourceforge.net
>     
>      > https://lists.sourceforge.net/lists/listinfo/csound-users
>      > Send bugs reports to
>      > https://github.com/csound/csound/issues
>      > Discussions of bugs and features can be posted here
>      >
>
>     ------------------------------------------------------------------------------
>     _______________________________________________
>     Csound-users mailing list
>     Csound-users@lists.sourceforge.net
>     
>     https://lists.sourceforge.net/lists/listinfo/csound-users
>     Send bugs reports to
>     https://github.com/csound/csound/issues
>     Discussions of bugs and features can be posted here
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here