Csound Csound-dev Csound-tekno Search About

[Csnd] about OSC ...

Date2012-05-31 07:51
Fromfrancesco
Subject[Csnd] about OSC ...
Hello All,
i was trying a minimal csd to send some messages to IanniX. Below is my
trivial example.
But i have some questions.

- 1 -
Running the csd without an active receiver (Iannix in my example) all is
working right, but if
i have a running receiver Csound send only the first message and then wait
... Either do not
end.
Could be some problem by the receiver (i.e. Iannix) or somethings wrong in
my csd?

- 2 -
if my message is in this form:
  OSCsend    ktrig, "127.0.0.1", 1234, "/iannix","s", "/play"
IanniX print /iannix//play.
I need to write
  OSCsend    ktrig, "127.0.0.1", 1234, "/iannix/","s", "play"
for a correct reading of the message by the receiver.

Again, somethings that i wrong or that i do not understand or is a problem
of IanniX, Csound,
Liblo?

Thanks,
ciao,
francesco.

The most beautiful CSD ever:



-m0


sr = 44100
ksmps = 1
nchnls = 2
0dbfs = 1

instr SenderP
ktrig init 0
OSCsend ktrig, "localhost", 1234, "/iannix/","si", "play", p4
turnoff
endin

instr SenderS
ktrig init 0
OSCsend ktrig, "localhost", 1234, "/iannix/","si", "stop", p4
turnoff
endin




i"SenderP"  0 1  1
i"SenderP"  2 1  0

i"SenderS"  4 1  1
i"SenderS"  6 1  0










--
View this message in context: http://csound.1045644.n5.nabble.com/about-OSC-tp5713482.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-05-31 11:37
FromTito Latini
SubjectRe: [Csnd] about OSC ...
AttachmentsNone  

Date2012-05-31 11:58
FromAnders Genell
Subject[Csnd] Matrix tables
Hi!

I am testing tabplay in combination with GEN23 for a project, and in the manual it says

Syntax

tabplay  ktrig, knumtics, kfn, kout1 [,kout2,..., koutN]
Since there are several kouts, is there a way the create matrix f-tables, so that each column corresponds to a separate kout?
I can't seem to figure out how. If that's not possible, what then is the intended use for the multiple kouts?

Also, I have filled a table using GEN23 with an ASCII file generated by GNU/Octave. Octave stores values in "scientific" format, i.e. something like 5.89345e+2, and GEN23 does not seem to support that fully since when using tabplay I get different values than what's actually stored. I might be doing something wrong, but if not, maybe such support could added to csound6 :-)

In the meanwhile I will have to figure out how to get Octave to store non-scientific format to an ASCII file...

Best regards,

/Anders


31 maj 2012 kl. 12:37 skrev Tito Latini <tito.01beta@gmail.com>:

Perhaps it is the solution (no tested):

 OSCsend    ktrig, "127.0.0.1", 1234, "/iannix", "s", "play"

because the address is "/iannix" and not "/iannix/"

tito

On Wed, May 30, 2012 at 11:51:20PM -0700, francesco wrote:
Hello All,
i was trying a minimal csd to send some messages to IanniX. Below is my
trivial example.
But i have some questions.

- 1 -
Running the csd without an active receiver (Iannix in my example) all is
working right, but if
i have a running receiver Csound send only the first message and then wait
... Either do not
end.
Could be some problem by the receiver (i.e. Iannix) or somethings wrong in
my csd?

- 2 -
if my message is in this form:
 OSCsend    ktrig, "127.0.0.1", 1234, "/iannix","s", "/play"
IanniX print /iannix//play.
I need to write
 OSCsend    ktrig, "127.0.0.1", 1234, "/iannix/","s", "play"
for a correct reading of the message by the receiver.

Again, somethings that i wrong or that i do not understand or is a problem
of IanniX, Csound,
Liblo?

Thanks,
ciao,
francesco.

The most beautiful CSD ever:

<CsoundSynthesizer>
<CsOptions>
-m0
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 1
nchnls = 2
0dbfs = 1

instr SenderP
ktrig init 0
OSCsend ktrig, "localhost", 1234, "/iannix/","si", "play", p4
turnoff
endin

instr SenderS
ktrig init 0
OSCsend ktrig, "localhost", 1234, "/iannix/","si", "stop", p4
turnoff
endin

</CsInstruments>
<CsScore>

i"SenderP"  0 1  1
i"SenderP"  2 1  0

i"SenderS"  4 1  1
i"SenderS"  6 1  0

</CsScore>
</CsoundSynthesizer>







--
View this message in context: http://csound.1045644.n5.nabble.com/about-OSC-tp5713482.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"


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"


Date2012-05-31 12:48
FromAndres Cabrera
SubjectRe: [Csnd] about OSC ...
Hi,

I suspect the address is "/iannix/play" and there is no actual message
data (maybe you can send an empty string).

Cheers,
Andrés

On Thu, May 31, 2012 at 1:51 AM, francesco  wrote:
> Hello All,
> i was trying a minimal csd to send some messages to IanniX. Below is my
> trivial example.
> But i have some questions.
>
> - 1 -
> Running the csd without an active receiver (Iannix in my example) all is
> working right, but if
> i have a running receiver Csound send only the first message and then wait
> ... Either do not
> end.
> Could be some problem by the receiver (i.e. Iannix) or somethings wrong in
> my csd?
>
> - 2 -
> if my message is in this form:
>  OSCsend    ktrig, "127.0.0.1", 1234, "/iannix","s", "/play"
> IanniX print /iannix//play.
> I need to write
>  OSCsend    ktrig, "127.0.0.1", 1234, "/iannix/","s", "play"
> for a correct reading of the message by the receiver.
>
> Again, somethings that i wrong or that i do not understand or is a problem
> of IanniX, Csound,
> Liblo?
>
> Thanks,
> ciao,
> francesco.
>
> The most beautiful CSD ever:
>
> 
> 
> -m0
> 
> 
> sr = 44100
> ksmps = 1
> nchnls = 2
> 0dbfs = 1
>
> instr SenderP
> ktrig init 0
> OSCsend ktrig, "localhost", 1234, "/iannix/","si", "play", p4
> turnoff
> endin
>
> instr SenderS
> ktrig init 0
> OSCsend ktrig, "localhost", 1234, "/iannix/","si", "stop", p4
> turnoff
> endin
>
> 
> 
>
> i"SenderP"  0 1  1
> i"SenderP"  2 1  0
>
> i"SenderS"  4 1  1
> i"SenderS"  6 1  0
>
> 
> 
>
>
>
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/about-OSC-tp5713482.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"
>


Date2012-05-31 12:56
Fromfrancesco
Subject[Csnd] Re: about OSC ...
Hello Mr. Tito,
yes, You are right, this should the right way but in this case IanniX print
the message
with a double  slash, i.e. /iannix//play that doesn't work. What IanniX
print should be
what it receive. It's like if somewhere in the journey of message someone
wrong or
in coding or in decoding. This is why i'm try to understand if it's possible
that Csound
(liblo) use some rules that i don't know, or if is IanniX that decode the
message in a
different way ...
I'm trying some test with others software to see what happens.

Thanks Tito,
ciao,
francesco.



--
View this message in context: http://csound.1045644.n5.nabble.com/about-OSC-tp5713482p5713494.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-05-31 13:05
Fromfrancesco
Subject[Csnd] Re: about OSC ...
Ahhh. Could be this!
Ok, i will try immediatly.

Thank You Mr. Andres,
ciao,
francesco.

PS. i hate all of You! Why i'm not able to think somethings so easy?
Why all of You are expert programmers, developers of this beautiful
software that is CSound (and others like CsoundQt in this case) and 
because this is not enought You write great music, either little study
or entire pieces? I feel so little! So i hate all of You!

Thanks (really),
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/about-OSC-tp5713482p5713495.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-05-31 13:42
FromDave Phillips
SubjectRe: [Csnd] Re: about OSC ...
On 05/31/2012 08:05 AM, francesco wrote:
>
> PS. i hate all of You! Why i'm not able to think somethings so easy?
> Why all of You are expert programmers, developers of this beautiful
> software that is CSound (and others like CsoundQt in this case) and
> because this is not enought You write great music, either little study
> or entire pieces? I feel so little! So i hate all of You!
>
> Thanks (really),
> ciao,
> francesco.
>

I feel your pain. :)

Think of Csound as an instrument, and just keep practicing. Honest 
effort, hard study, and patience go a long way towards mastery. And now 
we have so many great tools for learning and using Csound, so keep 
studying and creating.

Virgil Thomson once opined that a composer should write something every 
day, even if it's only a page of music. His reason was, even if the Muse 
fails to appear at least he kept the appointment.

Best,

dp


Date2012-05-31 17:40
FromTito Latini
SubjectRe: [Csnd] Matrix tables
AttachmentsNone