Csound Csound-dev Csound-tekno Search About

[Csnd] Rotary encoders to control csound python api

Date2019-11-30 22:41
FromMichael McConney
Subject[Csnd] Rotary encoders to control csound python api
Does anyone have a suggestion for the strategy to use to pass information from a rotary encoder to csound with the python api?

I am getting the data from the rotary encoder in one process and am running csound in a different process.  I have been working with pipe to send data from the rotary encoder process to the csound process.  

While I can get both the pipe and chnget to work independently I cannot seem to get them to work together.  Would I be better off using a shared memory value?  I assume one can use chnget in a continuous fashion at the control rate, right.  

I would really appreciate it if anyone has any ideas as to the best strategy to use here or have any example files that would be helpful. 

Thanks for your help!
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

Date2019-11-30 23:00
FromDave Seidel
SubjectRe: [Csnd] Rotary encoders to control csound python api
I would use OSC. 

On Sat, Nov 30, 2019, 5:41 PM Michael McConney <mcconney@gmail.com> wrote:
Does anyone have a suggestion for the strategy to use to pass information from a rotary encoder to csound with the python api?

I am getting the data from the rotary encoder in one process and am running csound in a different process.  I have been working with pipe to send data from the rotary encoder process to the csound process.  

While I can get both the pipe and chnget to work independently I cannot seem to get them to work together.  Would I be better off using a shared memory value?  I assume one can use chnget in a continuous fashion at the control rate, right.  

I would really appreciate it if anyone has any ideas as to the best strategy to use here or have any example files that would be helpful. 

Thanks for your help!
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

Date2019-11-30 23:49
FromMichael McConney
SubjectRe: [Csnd] Rotary encoders to control csound python api
Dave,

I will give that a shot.  Thanks!

Regards,
Mike


On Sat, Nov 30, 2019, 6:01 PM Dave Seidel <dave.seidel@gmail.com> wrote:
I would use OSC. 

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