[Csnd] CS and UDP
Date | 2014-05-23 19:14 |
From | David Worrall |
Subject | [Csnd] CS and UDP |
Hi All, I need to send CS score data to a (graphics) app. on another machine that doesn't support OSC or MIDI. I've been sending via UDP but there is quite some packet loss. (I need to continually send packets at or ahead of RT sound synth.) I looked at John Ffitch's socksend (thanks John!) but it is designed for sending a-rate data. I tested and most of the a-rate data was lost. I wonder about that - is that an unusual result for UDP? I tried sending the packs in the ReadScore() loop with a 5-10 msec sleep() between event sends - which sort of works ok but is a bit unreliable. Can someone recommend another way of doing this? Perhaps someone has tried a python opcode? thanks, David ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 19:25 |
From | hlolli |
Subject | [Csnd] Re: CS and UDP |
I was trying to use the socksend opcode too yesterday. Didn't work, I blamed the windows operating system which was recieving an audio signal, but windows is known to have very bad firewall setting. Also tcp send, think the opcode is called stsend, also didn't work. The plan was to send audio signal from the street into many computers with csound installed where each computer had user which was going to modify the signal. But long story short, didn't get the audio signal trough UDP or TCP. -- View this message in context: http://csound.1045644.n5.nabble.com/CS-and-UDP-tp5735437p5735438.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-05-23 19:26 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-05-23 19:29 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] Re: CS and UDP |
But for Davids application it might make sense to try sending over TCP. If you have massive packet loss, there might be something fishy with the connection, but to secure against moderate packet loss TCP might help. I think... 2014-05-23 20:25 GMT+02:00 hlolli |
Date | 2014-05-23 19:53 |
From | David Worrall |
Subject | [Csnd] Re: |
It is a long time since I did a Google search on something and only recieved 3 links … which I did w. socksend_k :-) (of course 2 of them were dead so that means Google can make only 1 suggestion: the blob/master/opcode_list.txt file) wow John - I owe you a beer for suggesting something so rare. :-) [BTW It is not in the canonical list or mentioned in Floss, for what I can tell.] Are the args for socksend_k the same as for socksend? To answer Oeyvend's query about TCP - I realise that UDP has the potential for packet loss, but thought, given John's a-buffer example, that it should be ble to handle things. Perhaps TCP ack. happens at the "port" level and I won't have to deal with havinf to resend? In any event, if I can send UDP just after synthesis (the ear leads the eye anyway :) it should cope with that - we'll see. Nice idea, holli - then you could broadcast it as "street-level" radio… thanks for the hints… D. On 23.05.2014, at 20:26, jpff@cs.bath.ac.uk wrote: Did you try socksend_k opcode? Supposed to be a krate/data verson. ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 20:03 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: |
Did you try starting csound like this? $ csound --port=N with N as your port number? This will start a server responding to UDP messages. The messages consist of plain orchestra code (as strings) that is compiled and run. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 19:53, David Worrall |
Date | 2014-05-23 20:09 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: socksend_k |
Attachments | None |
Date | 2014-05-23 20:38 |
From | David Worrall |
Subject | [Csnd] Re: socksend_k |
CS is sending something to UDP - in what form is the payload (the field that replaces a sig)? I tried a string, and int, a float and p4 the string causes an "invalid instrument number of name" error for each event. the others pass without aborting … printing something repetitious thanks. D On 23.05.2014, at 21:09, jpff@cs.bath.ac.uk wrote:
______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 20:57 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
socksend_k probably takes a ksig instead of an asig for the first argument. How is your system setup? How are you sending things to Csound? How are you receiving it in Csound? ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 20:38, David Worrall |
Date | 2014-05-23 21:13 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
I'm running cs in RT using the csnd6 python api. cs = csnd6.csound() … csPerf= csnd6.CsoundPerformanceThread(cs) cs.Start() cs.Play() cs.CompileOrch(instr_defn string) cs.CompileOrch(instr_defn string) .. the feed events in using cs.ReadScore() does that answer your question? D What I'd like to do is the use the socket_k to emit a string that I can compose in the instr. defn from the pfields. On 23.05.2014, at 21:57, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: socksend_k probably takes a ksig instead of an asig for the first argument. … ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 21:19 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
Ok, so Csound is not receiving UDP, but sending it? Why not use python socks? ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 21:13, David Worrall |
Date | 2014-05-23 21:21 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
I'm wanting csound to be the client - i.e. to emit the strings. On 23.05.2014, at 21:57, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: socksend_k probably takes a ksig instead of an asig for the first argument. ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 21:33 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
You could try using OSCsend, as it will send stuff to a UDP address, then you can parse it your host. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 21:21, David Worrall |
Date | 2014-05-23 21:39 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
sorry - our posts just crossed. I've be doing it with sockets and that is fine, as a technology, but 'm trying to avoid (yet another!) thread. Probably more importantly, exactly when the events are sent to CsPerf.Play() is determined by the number and and type of TCP/IP packets which feed what becomes cs core events. sequence is 1) grab everything in the input buffer (GB's a day) 2) filter/parse etc it to cs score events 3) dump them to CsPerf input queue 4) get the hell out of there as quickly as possible to pick up the next lot of TCP/Ip packets that have arrived during the thread in 2) and 3). the problem with sending them with 3) is that they all get dumped to the CsPerf input queue at the same time, so some get lost. Whereas if they were send by CsPerf then we'd know they were synchronised with the sound synth But I might not be seeing the woods for the trees. Any thoughts welcome! re your suggestion about using OSCsend, I'll look at that - may have to write something on the receiver's end. I'll look at that. D On 23.05.2014, at 22:19, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Ok, so Csound is not receiving UDP, but sending it? Why not use python socks? ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 21:39 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
*in* your host... ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 21:33, Victor Lazzarini |
Date | 2014-05-23 22:15 |
From | Tarmo Johannes |
Subject | Re: [Csnd] socksend_k |
Attachments | pensiero-client.csd |
Hi, hardly it helps but if you decide to use TCP connection to get rid of the packet loss, I attach a csd where there is a piece of python code that sends a TCP message to receiving server. But indeed, it caused xruns (too slow for audio cycle). For me it did not matter but for you I think the best idea is still to use another thread (why not! that's what threads are for!) and send a signal to the worker function on that thread. I am not strong in python threading, in Qt C++ it would be clear and efficient: The overall scheme could be something like TCPThread def openTCPConnection() def sendTCPMessage (message) # send it def closeConnection() CsoundThread def StartCsound() # use some channel in csd to signal about need to send the, let's say, it is called messageChannel def run(): while (running): if message=cs.GetChannel(messageChannel) has changed: TCPThread.sendTCPMessage(message) # or send signal to the t TCPThread to send the message, I don't know how it works in python If you get some ideas out of it, I am glad. best! tarmo On Friday 23 May 2014 22:39:07 David Worrall wrote: > sorry - our posts just crossed. > > I've be doing it with sockets and that is fine, as a technology, but 'm > trying to avoid (yet another!) thread. Probably more importantly, exactly > when the events are sent to CsPerf.Play() is determined by the number and > and type of TCP/IP packets which feed what becomes cs core events. sequence > is > 1) grab everything in the input buffer (GB's a day) > 2) filter/parse etc it to cs score events > 3) dump them to CsPerf input queue > 4) get the hell out of there as quickly as possible to pick up the next lot > of TCP/Ip packets that have arrived during the thread in 2) and 3). > > the problem with sending them with 3) is that they all get dumped to the > CsPerf input queue at the same time, so some get lost. Whereas if they were > send by CsPerf then we'd know they were synchronised with the sound synth > > But I might not be seeing the woods for the trees. Any thoughts welcome! > > re your suggestion about using OSCsend, I'll look at that - may have to > write something on the receiver's end. I'll look at that. > > > D > > On 23.05.2014, at 22:19, Victor Lazzarini |
Date | 2014-05-23 22:16 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
understood. So: I tried to use p2 like this: OSCsend p2, "blah.iis.fhg.de", 4444, "/dev/null", "s" , "zzzz…" but it spits the dummy (blah.iis….. is here replacing a real machine name) given that machine is listening on port 4444, should I expect to see the payload as UDP there? D. On 23.05.2014, at 22:39, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: *in* your host... ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 22:35 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
yes, that’s what I would expect. I think you should see a long string “/dev/null s zzzz…” you can try this too OSCsend p2, "blah.iis.fhg.de", 4444, "", "" , "zzzz…” so the only thing carried is zzzz ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 22:16, David Worrall |
Date | 2014-05-23 22:35 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
Gosh, thanks Tarmo - You're very generous to share this work. I'm just exceptionally mean about adding extra computational layers that could be allotted to synth time. Better to be stingy than give the over to management immediately, that try to find out how to pare it (management) back afterwards, I recon. (A lot like insitiutional life, really ;-) I get the gist of what you're doing, and will need to test the idea outide of Qt. Many thanks, David On 23.05.2014, at 23:15, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote: Hi, ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 22:41 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
I sent this OSCsend 0, "localhost",4444, "","s","helloworld" and tested with nc $ nc -u -l 4444 ,shelloworld so there is a comma after the address followed by s and your string. It should be simple to parse. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 22:16, David Worrall |
Date | 2014-05-23 22:43 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
csound objects to this - with and without the "-port=4444" option. On 23.05.2014, at 23:35, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: yes, that’s what I would expect. I think you should see a long string ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 22:59 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
The port flag is for incoming messages, not sending. So, it’s not what you want. What does Csound object to? I can run this |
Date | 2014-05-23 23:15 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
Ok I've copy-pasted you code and I get the same error as from within csnd6[ .py] Golly I can't see it! - it must be nearly time to call it a night :-) D virtual_keyboard real time MIDI plugin for Csound On 23.05.2014, at 23:59, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: I can run this ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-23 23:50 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
It looks like your system is not seeing the OSC opcodes, which are plugins. Check that they are there somewhere in your OPCODE6DIR64 plugins directory. If you built Csound yourself, maybe they have not been built (you will also need liblo). ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 23 May 2014, at 23:15, David Worrall |
Date | 2014-05-25 12:27 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
I'll return this discussion to this, the original thread, to make it easier for others to follow. I've now installed libio v.0.27 (not 0.28, as advised) and its dependencies. Trying to build cs … cmake.. still tells me --OSC_HEADER="", so disabling BUILD_OSC_OPCODES do I have to download the opcode codes from somewhere, or what is the likelly cause of that? Intriguingly - and this is what threw me in the first place, when i run ccmake ../ [c]onfigure from the build directory, it tells me: BUILD_OSC_OPCODES ON But it doesn't build them. D. On 24.05.2014, at 00:50, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: It looks like your system is not seeing the OSC opcodes, which are plugins. Check that they are there somewhere in your OPCODE6DIR64 ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-25 13:24 |
From | Tarmo Johannes |
Subject | Re: [Csnd] socksend_k |
did you install also liblo-devel? The header files necessary for compiling against these libraries are usually there. 2014 5 25 13:27 kirjutas kuupäeval "David Worrall" <david.worrall@iis.fraunhofer.de>:
|
Date | 2014-05-25 13:43 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
Hi Tarmo Thanks for your interest I installed autoconf, libtool and automake before making liblo liblo is installed ok, I think… at least, from the CLI: $ oscsend "localhost" 4444 "" "s" "G'day Mate!" is picked up by nc as Victor exemplifies and further, if I replace "localhost" with an IP address, it gets through, even better as: $ sendosc "10.54.xx.xx" 4444 "G'day Mate!" G'day Mate! , (NB the addition of a comma) so I think the issue is how to get the csnd6 build to pick it up to build the opcode D. On 25.05.2014, at 14:24, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:
______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-25 14:53 |
From | Anders Genell |
Subject | Re: [Csnd] socksend_k |
What Tarmo is saying, I believe, is that in addition to the liblo library you need the liblo headers, which are in their own package (typically liblo-dev) in order for csound to build its own OSC opcodes. Regards, Den 25 maj 2014 14:44 skrev "David Worrall" <david.worrall@iis.fraunhofer.de>:
|
Date | 2014-05-25 14:54 |
From | Tarmo Johannes |
Subject | Re: [Csnd] socksend_k |
hi, 2014 5 25 14:44 kirjutas kuupäeval "David Worrall" <david.worrall@iis.fraunhofer.de>:
|
Date | 2014-05-25 15:39 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
Oh, I see. thanks Anders. I've found a collection of .h files lo/lo.h: * \file lo.h The liblo main headerfile and high-level API functions. lo/lo.h.in: * \file lo.h The liblo main headerfile and high-level API functions. lo/lo_lowlevel.h: * \file lo_lowlevel.h The liblo headerfile defining the low-level API lo/lo_osc_types.h: * \file lo_osc_types.h A liblo header defining OSC-related types and lo/lo_serverthread.h: * \file lo.h The liblo main headerfile and high-level API functions. lo/lo_types.h: * \file lo_types.h The liblo headerfile defining types used by this API. in liblo src dir. I've looked at the liblo makefile and I'm not sure why they are not copied to say /usr/local/include where other .h files - including sound’s are. Is that where to put (all of?) them? =========== I'm currently working on another approach, using the ires system_i opcode: ires system_i "oscsend '10:54:x.x' 4444 messyString 1" which works - but i haven't figured out how to substitute messyString with a composed string (of course what I'd like to do is output i-score events) D. PS ========= in a previous post, below; please replace $ sendosc "10.54.xx.xx" 4444 "G'day Mate!” with $ oscsend "10.54.xx.xx" 4444 "G'day Mate!" apologies On 25 May 2014, at 15:53, Anders Genell <anders.genell@gmail.com> wrote:
|
Date | 2014-05-25 16:58 |
From | Justin Smith |
Subject | Re: [Csnd] Re: CS and UDP |
UDP intentionally lacks any error correction. TCP will be slower, and higher latency, but it does have error correction. Networks are inherently lossy beyond a fairly short distance. On Fri, May 23, 2014 at 11:29 AM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote: But for Davids application it might make sense to try sending over TCP. |
Date | 2014-05-25 17:35 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
The headers should be installed in /usr/local/include (if you configure with the default settings), after you run make install. Cmake should find them if they are there. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 25 May 2014, at 15:39, David Worrall |
Date | 2014-05-25 18:15 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
Thanks. I’ll try it. I guess I just copy all the .h files I mentioned earlier into /usr/local/include In the meantime this works …. sort of… s little bit…not really… but I’m not sure what the role of the field currently occupied by p2 in ires system opcode actually performs |
Date | 2014-05-25 18:37 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
You shouldn’t copy anything by hand, but run sudo make install, otherwise the installation might not be complete. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 25 May 2014, at 18:15, David Worrall |
Date | 2014-05-25 18:43 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
It’s a trigger for printing to the csound console: http://www.csounds.com/manual/html/system.html ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 25 May 2014, at 18:15, David Worrall |
Date | 2014-05-25 18:43 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-05-25 19:47 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
That's what I'm doing - but the lo headers (for oscsend) are not being picked up. but - to reiterate - ./usr/local/bin/oscsend is build and is working from the CLI. I'm really wondering what to look for in the output of cmake/make etc D. On 25.05.2014, at 19:37, Victor Lazzarini |
Date | 2014-05-25 20:00 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
No, I meant did you run sudo make install for installing liblo (not Csound). It should install the headers properly. Here’s what liblo 0.27 looks when installed (in my machine). ligeti-2:debug victor$ ls -l /usr/local/include/lo total 136 -rw-r--r-- 1 root wheel 12281 14 Oct 2013 lo.h -rw-r--r-- 1 root wheel 2956 14 Oct 2013 lo_endian.h -rw-r--r-- 1 root wheel 1166 14 Oct 2013 lo_errors.h -rw-r--r-- 1 root wheel 27481 14 Oct 2013 lo_lowlevel.h -rw-r--r-- 1 root wheel 2600 14 Oct 2013 lo_macros.h -rw-r--r-- 1 root wheel 3768 14 Oct 2013 lo_osc_types.h -rw-r--r-- 1 root wheel 779 14 Oct 2013 lo_throw.h -rw-r--r-- 1 root wheel 4303 14 Oct 2013 lo_types.h ======= if cmake does not pick it up automatically you can try $ cmake .. -DOSC_HEADER="/usr/local/include" ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 25 May 2014, at 19:47, David Worrall |
Date | 2014-05-25 21:03 |
From | David Worrall |
Subject | Re: [Csnd] socksend_k |
if cmake does not pick it up automatically you can try Thanks for all your help - and those others who assisted - I feel blessed! And I've learned about a couple of other opcodes in the process. There are some fine features of OSCsend that might be worth adding to the manuals. I'll experiment more: Like, it seems that the ",s" also ",sf" x if you're following the string with a float , are meant as a feature not a bug - except the numerics aren't transalted and have to be converted to strings… My notes on how to build csound on OSX noq have a new section - which I've been distributing to those who ask - and will publish when there (and me) are in a fit state to edit them :-) D. On 25.05.2014, at 21:00, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: No, I meant did you run sudo make install for installing liblo (not Csound). It should install the headers properly. ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-25 21:19 |
From | David Worrall |
Subject | Re: [Csnd] Re: CS and UDP |
Understood ...Only too well…. :-) Distance is not a problem in this situation. Given the obscurity around building osc, the issue for had really become how to send score messages at synth time. OSC is the tool for the job in this situation and now it works! Thanks for advice, David On 25.05.2014, at 17:58, Justin Smith <noisesmith@gmail.com> wrote:
______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-05-25 21:20 |
From | Victor Lazzarini |
Subject | Re: [Csnd] socksend_k |
Thanks. Contributions to build.MD are welcome. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 25 May 2014, at 21:03, David Worrall |
Date | 2014-05-26 16:03 |
From | David Worrall |
Subject | How to use OSCsend to send UDP messages (was Re: [Csnd] socksend_k) |
On 25 May 2014, at 22:20, Victor Lazzarini |
Date | 2014-05-26 16:28 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-05-26 16:53 |
From | Victor Lazzarini |
Subject | Re: [Csnd] |
It seems to me we need a new UDP send opcode that takes strings. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 26 May 2014, at 16:28, jpff@cs.bath.ac.uk wrote: > > Quoting David Worrall |
Date | 2014-05-26 17:03 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-05-26 17:07 |
From | Victor Lazzarini |
Subject | Re: [Csnd] |
I could, but not sure about Windows. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 26 May 2014, at 17:03, jpff@cs.bath.ac.uk wrote: > > Easy enough -- you going to do it? > > Quoting Victor Lazzarini |
Date | 2014-05-26 18:44 |
From | David Worrall |
Subject | Re: [Csnd] |
Perhaps it would be good to get some FB from those using OSC for control etc to find out how they parse it. I'm not suggesting a regex … or maybe I am... OSC is so "wordy" I can't imagine that it would be very "pretty" at the moment. I'm guessing people use the string in the ident field to parse the xml-like structure, but I don't actually know. D. On 26.05.2014, at 18:07, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: I could, but not sure about Windows. ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |