Csound Csound-dev Csound-tekno Search About

sensekey with Csoundqt and with WiXound

Date2017-04-21 12:32
FromAndrea Strappa
Subjectsensekey with Csoundqt and with WiXound
Hi list,

testing sensekey opcode in Windows 10, I see that the alphabetic 
keyboard is detected with CsoundQt, but not with WinXound.

Why?

Andrea S.

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-04-21 21:40
FromTarmo Johannes
SubjectRe: sensekey with Csoundqt and with WiXound
Hi, 

As much I know, the difference comes from the fact that CsoundQt uses Csound 
as library via Csound API, WinXound is rather an editor that prepares your csd 
and runs csound command with your saved csd as system process + displays 
Csound output.

Thus CsoundQt takes care of catching keyboard events from its windows and 
forwards them to running Csound instance via callback functions but WinXound 
cannot do that since there is actually no connection in runtime (if I am 
correct). You need to run Csound in terminal (cmd.exe) to make sensekey 
function.

Take care!
tarmo

On reede, 21. aprill 2017 13:32.42 EEST you wrote:
> Hi list,
> 
> testing sensekey opcode in Windows 10, I see that the alphabetic
> keyboard is detected with CsoundQt, but not with WinXound.
> 
> Why?
> 
> Andrea S.
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-04-21 22:48
FromAndrea Strappa
SubjectRe: sensekey with Csoundqt and with WinXound and Cabbage64
Thank you very much, Tarmo, for the clarification!

Yes, in terminal it works, like in CsoundQt.

With Cabbage64 I have the impression that there's the same problem of 
WinXound. It's true? Or is there a solution for catching keyboard events 
of sensekey on Cabbage64?

I tested the example 06B02_sndloop.csd (Floss Manual Examples).

Il 21/04/2017 22:40, Tarmo Johannes ha scritto:
> Hi,
>
> As much I know, the difference comes from the fact that CsoundQt uses Csound
> as library via Csound API, WinXound is rather an editor that prepares your csd
> and runs csound command with your saved csd as system process + displays
> Csound output.
>
> Thus CsoundQt takes care of catching keyboard events from its windows and
> forwards them to running Csound instance via callback functions but WinXound
> cannot do that since there is actually no connection in runtime (if I am
> correct). You need to run Csound in terminal (cmd.exe) to make sensekey
> function.
>
> Take care!
> tarmo
>
> On reede, 21. aprill 2017 13:32.42 EEST you wrote:
>> Hi list,
>>
>> testing sensekey opcode in Windows 10, I see that the alphabetic
>> keyboard is detected with CsoundQt, but not with WinXound.
>>
>> Why?
>>
>> Andrea S.
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>          https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-04-21 22:58
FromTarmo Johannes
SubjectRe: sensekey with Csoundqt and with WinXound and Cabbage64

Rory,

 

if sensekey business is not there in Cabbage and you are thinking about it, in CsoundQt it is done by fucntion

CsoundEngine::keyEventCallback in csoundengine.cpp . The key events from editor, widgetpanel and console are forwarded there (if I remember it correctly).

 

in case of Cabbage I guess it would probably only work if the plugin window is in focus so I am not sure if that makes sense...

 

tarmo

 

On reede, 21. aprill 2017 23:48.54 EEST you wrote:

> Thank you very much, Tarmo, for the clarification!

>

> Yes, in terminal it works, like in CsoundQt.

>

> With Cabbage64 I have the impression that there's the same problem of

> WinXound. It's true? Or is there a solution for catching keyboard events

> of sensekey on Cabbage64?

>

> I tested the example 06B02_sndloop.csd (Floss Manual Examples).

>

> Il 21/04/2017 22:40, Tarmo Johannes ha scritto:

> > Hi,

> >

> > As much I know, the difference comes from the fact that CsoundQt uses

> > Csound as library via Csound API, WinXound is rather an editor that

> > prepares your csd and runs csound command with your saved csd as system

> > process + displays Csound output.

> >

> > Thus CsoundQt takes care of catching keyboard events from its windows and

> > forwards them to running Csound instance via callback functions but

> > WinXound cannot do that since there is actually no connection in runtime

> > (if I am correct). You need to run Csound in terminal (cmd.exe) to make

> > sensekey function.

> >

> > Take care!

> > tarmo

> >

> > On reede, 21. aprill 2017 13:32.42 EEST you wrote:

> >> Hi list,

> >>

> >> testing sensekey opcode in Windows 10, I see that the alphabetic

> >> keyboard is detected with CsoundQt, but not with WinXound.

> >>

> >> Why?

> >>

> >> Andrea S.

> >>

> >> Csound mailing list

> >> Csound@listserv.heanet.ie

> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> >> Send bugs reports to

> >>

> >> https://github.com/csound/csound/issues

> >>

> >> Discussions of bugs and features can be posted here

> >

> > Csound mailing list

> > Csound@listserv.heanet.ie

> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> > Send bugs reports to

> >

> > https://github.com/csound/csound/issues

> >

> > Discussions of bugs and features can be posted here

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

 


Date2017-04-21 23:07
FromRory Walsh
SubjectRe: sensekey with Csoundqt and with WinXound and Cabbage64
Tarmo, you are right. I did implement this in earlier versions of Cabbage, but it quickly became apparent that it wouldn't work in vst hosts that steal the keystrokes, so i dropped support for it. 

On 21 Apr 2017 23:58, "Tarmo Johannes" <trmjhnns@gmail.com> wrote:

Rory,

 

if sensekey business is not there in Cabbage and you are thinking about it, in CsoundQt it is done by fucntion

CsoundEngine::keyEventCallback in csoundengine.cpp . The key events from editor, widgetpanel and console are forwarded there (if I remember it correctly).

 

in case of Cabbage I guess it would probably only work if the plugin window is in focus so I am not sure if that makes sense...

 

tarmo

 

On reede, 21. aprill 2017 23:48.54 EEST you wrote:

> Thank you very much, Tarmo, for the clarification!

>

> Yes, in terminal it works, like in CsoundQt.

>

> With Cabbage64 I have the impression that there's the same problem of

> WinXound. It's true? Or is there a solution for catching keyboard events

> of sensekey on Cabbage64?

>

> I tested the example 06B02_sndloop.csd (Floss Manual Examples).

>

> Il 21/04/2017 22:40, Tarmo Johannes ha scritto:

> > Hi,

> >

> > As much I know, the difference comes from the fact that CsoundQt uses

> > Csound as library via Csound API, WinXound is rather an editor that

> > prepares your csd and runs csound command with your saved csd as system

> > process + displays Csound output.

> >

> > Thus CsoundQt takes care of catching keyboard events from its windows and

> > forwards them to running Csound instance via callback functions but

> > WinXound cannot do that since there is actually no connection in runtime

> > (if I am correct). You need to run Csound in terminal (cmd.exe) to make

> > sensekey function.

> >

> > Take care!

> > tarmo

> >

> > On reede, 21. aprill 2017 13:32.42 EEST you wrote:

> >> Hi list,

> >>

> >> testing sensekey opcode in Windows 10, I see that the alphabetic

> >> keyboard is detected with CsoundQt, but not with WinXound.

> >>

> >> Why?

> >>

> >> Andrea S.

> >>

> >> Csound mailing list

> >> Csound@listserv.heanet.ie

> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> >> Send bugs reports to

> >>

> >> https://github.com/csound/csound/issues

> >>

> >> Discussions of bugs and features can be posted here

> >

> > Csound mailing list

> > Csound@listserv.heanet.ie

> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> > Send bugs reports to

> >

> > https://github.com/csound/csound/issues

> >

> > Discussions of bugs and features can be posted here

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-04-22 00:15
FromArthur Hunkins <000001e1d761dea2-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: sensekey with Csoundqt and with WinXound and Cabbage64
It would be useful to implement sensekey in standalone Cabbage for PC's I think. Sensekey in a variety of front ends (GUIs) would be a real plus.

Art Hunkins


On Fri, Apr 21, 2017 at 6:07 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Tarmo, you are right. I did implement this in earlier versions of Cabbage, but it quickly became apparent that it wouldn't work in vst hosts that steal the keystrokes, so i dropped support for it. 

On 21 Apr 2017 23:58, "Tarmo Johannes" <trmjhnns@gmail.com> wrote:

Rory,

 

if sensekey business is not there in Cabbage and you are thinking about it, in CsoundQt it is done by fucntion

CsoundEngine::keyEventCallback in csoundengine.cpp . The key events from editor, widgetpanel and console are forwarded there (if I remember it correctly).

 

in case of Cabbage I guess it would probably only work if the plugin window is in focus so I am not sure if that makes sense...

 

tarmo

 

On reede, 21. aprill 2017 23:48.54 EEST you wrote:

> Thank you very much, Tarmo, for the clarification!

>

> Yes, in terminal it works, like in CsoundQt.

>

> With Cabbage64 I have the impression that there's the same problem of

> WinXound. It's true? Or is there a solution for catching keyboard events

> of sensekey on Cabbage64?

>

> I tested the example 06B02_sndloop.csd (Floss Manual Examples).

>

> Il 21/04/2017 22:40, Tarmo Johannes ha scritto:

> > Hi,

> >

> > As much I know, the difference comes from the fact that CsoundQt uses

> > Csound as library via Csound API, WinXound is rather an editor that

> > prepares your csd and runs csound command with your saved csd as system

> > process + displays Csound output.

> >

> > Thus CsoundQt takes care of catching keyboard events from its windows and

> > forwards them to running Csound instance via callback functions but

> > WinXound cannot do that since there is actually no connection in runtime

> > (if I am correct). You need to run Csound in terminal (cmd.exe) to make

> > sensekey function.

> >

> > Take care!

> > tarmo

> >

> > On reede, 21. aprill 2017 13:32.42 EEST you wrote:

> >> Hi list,

> >>

> >> testing sensekey opcode in Windows 10, I see that the alphabetic

> >> keyboard is detected with CsoundQt, but not with WinXound.

> >>

> >> Why?

> >>

> >> Andrea S.

> >>

> >> Csound mailing list

> >> Csound@listserv.heanet.ie

> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> >> Send bugs reports to

> >>

> >> https://github.com/csound/csound/issues

> >>

> >> Discussions of bugs and features can be posted here

> >

> > Csound mailing list

> > Csound@listserv.heanet.ie

> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> > Send bugs reports to

> >

> > https://github.com/csound/csound/issues

> >

> > Discussions of bugs and features can be posted here

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-04-22 09:15
FromAndrea Strappa
SubjectRe: sensekey with Csoundqt and with WinXound and Cabbage64

I state that I'm no expert on API. Perhaps is possible to switch the catching device with the active window:

if the active window is output console or ddl window, the alphabetic keyboard evens are catched by csound running with .csd configuration;

if the active windows is virtual keyboard, the alphabetic keyboard evens are catched by csound running, but with specific configuration of virtual keyboard;

if the active windows is Cubase or other vst host window, the alphabetic keyboard evens are catched by Cubase or other vst host with specific configuration of Cubase etc.


Il 22/04/2017 01:15, Arthur Hunkins ha scritto:
It would be useful to implement sensekey in standalone Cabbage for PC's I think. Sensekey in a variety of front ends (GUIs) would be a real plus.

Art Hunkins


On Fri, Apr 21, 2017 at 6:07 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Tarmo, you are right. I did implement this in earlier versions of Cabbage, but it quickly became apparent that it wouldn't work in vst hosts that steal the keystrokes, so i dropped support for it. 

On 21 Apr 2017 23:58, "Tarmo Johannes" <trmjhnns@gmail.com> wrote:

Rory,

 

if sensekey business is not there in Cabbage and you are thinking about it, in CsoundQt it is done by fucntion

CsoundEngine::keyEventCallback in csoundengine.cpp . The key events from editor, widgetpanel and console are forwarded there (if I remember it correctly).

 

in case of Cabbage I guess it would probably only work if the plugin window is in focus so I am not sure if that makes sense...

 

tarmo

 

On reede, 21. aprill 2017 23:48.54 EEST you wrote:

> Thank you very much, Tarmo, for the clarification!

>

> Yes, in terminal it works, like in CsoundQt.

>

> With Cabbage64 I have the impression that there's the same problem of

> WinXound. It's true? Or is there a solution for catching keyboard events

> of sensekey on Cabbage64?

>

> I tested the example 06B02_sndloop.csd (Floss Manual Examples).

>

> Il 21/04/2017 22:40, Tarmo Johannes ha scritto:

> > Hi,

> >

> > As much I know, the difference comes from the fact that CsoundQt uses

> > Csound as library via Csound API, WinXound is rather an editor that

> > prepares your csd and runs csound command with your saved csd as system

> > process + displays Csound output.

> >

> > Thus CsoundQt takes care of catching keyboard events from its windows and

> > forwards them to running Csound instance via callback functions but

> > WinXound cannot do that since there is actually no connection in runtime

> > (if I am correct). You need to run Csound in terminal (cmd.exe) to make

> > sensekey function.

> >

> > Take care!

> > tarmo

> >

> > On reede, 21. aprill 2017 13:32.42 EEST you wrote:

> >> Hi list,

> >>

> >> testing sensekey opcode in Windows 10, I see that the alphabetic

> >> keyboard is detected with CsoundQt, but not with WinXound.

> >>

> >> Why?

> >>

> >> Andrea S.

> >>

> >> Csound mailing list

> >> Csound@listserv.heanet.ie

> >> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> >> Send bugs reports to

> >>

> >> https://github.com/csound/csound/issues

> >>

> >> Discussions of bugs and features can be posted here

> >

> > Csound mailing list

> > Csound@listserv.heanet.ie

> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> > Send bugs reports to

> >

> > https://github.com/csound/csound/issues

> >

> > Discussions of bugs and features can be posted here

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here