Csound Csound-dev Csound-tekno Search About

[Csnd] OSCsend not working from instrument 0?

Date2013-07-14 00:04
Fromzappfinger
Subject[Csnd] OSCsend not working from instrument 0?
In order to synchronise a Processing sketch I want to send a "start" string
via OSC from my csd, only at the beginning, so I added this line to instr 0
(I think that is how it is called):

OSCsend 1, "localhost",9000, "/cmd","s", "start"


But it does not arrive at the Processing sketch.
The OSCsend's in instr 1 do arrive...

Richard



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

Date2013-07-14 06:25
FromTarmo Johannes
SubjectRe: [Csnd] OSCsend not working from instrument 0?

Hi,

 

I think OSCsend sends in k-time, that's why it is never started in instr 0 that does initialisation only. So using it within and instrument as you did, is the only wasy as much I know. Perhaps tere are other trichs in csound6.

 

event_i "i",1,0,0.1

 

instr 1

        OSCsend 1, "localhost",9000, "/cmd","s", "start"
		turnoff
endin

 

best!

tarmo

 

On Saturday 13 July 2013 16:04:04 zappfinger wrote:

> In order to synchronise a Processing sketch I want to send a "start" string

> via OSC from my csd, only at the beginning, so I added this line to instr 0

> (I think that is how it is called):

>

> OSCsend 1, "localhost",9000, "/cmd","s", "start"

>

>

> But it does not arrive at the Processing sketch.

> The OSCsend's in instr 1 do arrive...

>

> Richard

>

>

>

> --

> View this message in context:

> http://csound.1045644.n5.nabble.com/OSCsend-not-working-from-instrument-0-t

> p5725567.html Sent from the Csound - General mailing list archive at

> Nabble.com.

>

>

> Send bugs reports to the Sourceforge bug tracker

> https://sourceforge.net/tracker/?group_id=81968&atid=564599

> Discussions of bugs and features can be posted here

> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe

> csound"


Date2013-07-14 08:39
Fromzappfinger
Subject[Csnd] Re: OSCsend not working from instrument 0?
Hi Tarmo,

I thought it was something like this.
Your solution works fine.

Now I only have to find a way to send a 'stop' message when the midi file is
done playing...


Richard



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