Csound Csound-dev Csound-tekno Search About

trying to read an OSC string

Date2016-01-10 15:30
FromRichard
Subjecttrying to read an OSC string
In this csd I can't read the string data - nothing is printed. When I enable the 'midi' data, I can see these printed.
What am I missing here?

gilisten OSCinit 8000

alwayson 8

instr 8

kinst init 0

kdel init 0

kdur init 0

kp4 init 0

kp5 init 0

Sevent init ""

next1:

;kk OSClisten gilisten, "/midi", "iiii", kinst, kdel, kdur, kp4

kk OSClisten gilisten, "/event", "s", Sevent

if (kk == 0) goto done1

;printks "kinst = %i, kdel = %i, kdur = %i, kp4 = %i\\n", 0, kinst, kdel, kdur, kp4

;prints "Hi"

prints Sevent

;event_i "i", i(kinst), i(kdel), i(kdur), i(kp4), i(kp5)

kgoto next1 ;Process all events in queue

done1:

endin



Date2016-01-10 21:24
FromRichard
SubjectRe: trying to read an OSC string
It seems I've hit this problem before. It looks like a problem with CsoundQt.
In a normal run nothing is displayed, but when I run it in the terminal, the string is displayed.

Richard

On 10/01/16 16:30, Richard wrote:
In this csd I can't read the string data - nothing is printed. When I enable the 'midi' data, I can see these printed.
What am I missing here?

gilisten OSCinit 8000

alwayson 8

instr 8

kinst init 0

kdel init 0

kdur init 0

kp4 init 0

kp5 init 0

Sevent init ""

next1:

;kk OSClisten gilisten, "/midi", "iiii", kinst, kdel, kdur, kp4

kk OSClisten gilisten, "/event", "s", Sevent

if (kk == 0) goto done1

;printks "kinst = %i, kdel = %i, kdur = %i, kp4 = %i\\n", 0, kinst, kdel, kdur, kp4

;prints "Hi"

prints Sevent

;event_i "i", i(kinst), i(kdel), i(kdur), i(kp4), i(kp5)

kgoto next1 ;Process all events in queue

done1:

endin