Csound Csound-dev Csound-tekno Search About

[Csnd] How to read strings from the keyboard

Date2017-12-29 17:41
From"Jeanette C."
Subject[Csnd] How to read strings from the keyboard
Hey hey,
is there any way to do it in Csound, including the Python/LUA/system 
facilities, but EXCLUDING ANY GRAPHICAL means? Neither the manual nor 
searching the web yielded any solution, so far.

TIA and best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

Open my eyes,
I look deep inside,
I run away... <3
(Britney Spears)

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-12-29 18:10
FromRory Walsh
SubjectRe: [Csnd] How to read strings from the keyboard
Sensekey will work from the terminal as afar as I know:


On 29 December 2017 at 17:41, Jeanette C. <julien@mail.upb.de> wrote:
Hey hey,
is there any way to do it in Csound, including the Python/LUA/system facilities, but EXCLUDING ANY GRAPHICAL means? Neither the manual nor searching the web yielded any solution, so far.

TIA and best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

Open my eyes,
I look deep inside,
I run away... <3
(Britney Spears)

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-12-29 18:20
FromSteven Yi
SubjectRe: [Csnd] How to read strings from the keyboard
Hi Jeanette,

Just to clarify, are you looking for reading of individual characters
or reading in full strings of data (i.e., waiting until an enter is
pressed)?

If the former, Rory's suggestion of sensekey might do the job.

If the latter, I find using the UDP server that Victor has implemented
and enhanced a lot recently to be very useful.  One way would be to
use it via commandline with nc (netcat):

1. Start Csound in one terminal using "csound --port=10000 my.csd -odac".
2. From another terminal, use "nc -u 127.0.0.1 10000". That would
start a session where you could send string data via UDP to csound.
Csound will interpret according to initial character (see manual entry
at http://csound.com/docs/manual/udpserver.html).

Using this setup, you could design your CSD to read values from a
channel then set the channels via nc, or execute orc code, etc.

You could also skip nc and program your own UDP-sending program in
whatever language you like.

Hope that helps!
steven



On Fri, Dec 29, 2017 at 12:41 PM, Jeanette C.  wrote:
> Hey hey,
> is there any way to do it in Csound, including the Python/LUA/system
> facilities, but EXCLUDING ANY GRAPHICAL means? Neither the manual nor
> searching the web yielded any solution, so far.
>
> TIA and best wishes,
>
> Jeanette
>
> --------
> * website: http://juliencoder.de - for summer is a state of sound
> * SoundCloud: https://soundcloud.com/jeanette_c
>
> Open my eyes,
> I look deep inside,
> I run away... <3
> (Britney Spears)
>
> 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-12-29 18:26
From"Jeanette C."
SubjectRe: [Csnd] How to read strings from the keyboard
Dec 29 2017, Steven Yi has written:

> Hi Jeanette,
>
> Just to clarify, are you looking for reading of individual characters
> or reading in full strings of data (i.e., waiting until an enter is
> pressed)?
...
> If the latter, I find using the UDP server that Victor has implemented
> and enhanced a lot recently to be very useful.
...
Hi Steven and Rory,
thank you both for your quick replies. It is indeed the latter case and
that should do nicely!

Thanks and best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c

Open my eyes,
I look deep inside,
I run away... <3
(Britney Spears)

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