Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Iannix + csound = ?

Date2011-07-14 09:29
From"vallste@libero.it"
SubjectRe: [Csnd] Iannix + csound = ?

Hello,

very nice software!

Try this example, tested with a simple cursor works.

 

<CsoundSynthesizer>
<CsInstruments>
sr = 44100
ksmps = 100
nchnls = 2

gihandle OSCinit 57120

;Iannix message format
;osc://127.0.0.1:57120/cursor 2 0.671143 nan

instr   1
    kf1 init 0
    kf2 init 0
    kf3 init 0

nxtmsg:
    kk  OSClisten gihandle, "/cursor", "fff", kf1, kf2, kf3
    if (kk == 0) goto ex
        printk 0,kf1
        kgoto nxtmsg
ex:
endin
       
</CsInstruments>
<CsScore>
i1 0 10000

e
</CsScore>

</CsoundSynthesizer>

 

Basically the address is  "/cursor" and not "cursor" and in your example there is a missing variable in the message (kf3).

Hope this helps

 

Stefano

 

----Messaggio originale----
Da: apalomba@austin.rr.com
Data: 13/07/2011 21.54
A: <csound@lists.bath.ac.uk>
Ogg: [Csnd] Iannix + csound = ?

I am trying to get csound to work with Iannix
http://www.iannix.org/en/index.php

Iannix supports OSC so I figured I would use
OSClisten to pick up messages sent. But
csound seems to not get anything...

This is the .csd I am using:

<CsoundSynthesizer>
<CsInstruments>
sr = 44100
ksmps = 100
nchnls = 2

gihandle OSCinit 57120

;Iannix message format
;osc://127.0.0.1:57120/cursor 2 0.671143 nan

instr   1
    kf1 init 0
    kf2 init 0

nxtmsg:
    kk  OSClisten gihandle, "cursor", "if", kf1, kf2
    if (kk == 0) goto ex
        printk 0,kf1
        kgoto nxtmsg
ex:
endin
       
</CsInstruments>
<CsScore>
i1 0 10000
;i2 0 10
;i3 0 10

e
</CsScore>

</CsoundSynthesizer>




Is there something I am missing?




Thanks,
Anthony



Date2011-07-14 18:56
FromAnthony Palomba
SubjectRe: [Csnd] Iannix + csound = ?
Ahhh yes, it works!

I think Iannix and csound are going to make a great combination.

For those of you why are not familiar with it Iannix ia a graphical
sequencer. It is light weight easy to use and provides a refreshing
change from the traditional sequencer paradigm. It also allows
you to handle multiple time scales.

Check it out, pretty cool...
http://www.youtube.com/watch?v=z10sYBr3ctg&feature=related



-ap







On Thu, Jul 14, 2011 at 3:29 AM, vallste@libero.it <vallste@libero.it> wrote:

Hello,

very nice software!

Try this example, tested with a simple cursor works.

 

<CsoundSynthesizer>
<CsInstruments>
sr = 44100
ksmps = 100
nchnls = 2

gihandle OSCinit 57120

;Iannix message format
;osc://127.0.0.1:57120/cursor 2 0.671143 nan

instr   1
    kf1 init 0
    kf2 init 0
    kf3 init 0

nxtmsg:
    kk  OSClisten gihandle, "/cursor", "fff", kf1, kf2, kf3


    if (kk == 0) goto ex
        printk 0,kf1
        kgoto nxtmsg
ex:
endin
       
</CsInstruments>
<CsScore>
i1 0 10000

e
</CsScore>

</CsoundSynthesizer>

 

Basically the address is  "/cursor" and not "cursor" and in your example there is a missing variable in the message (kf3).

Hope this helps

 

Stefano

 

----Messaggio originale----
Da: apalomba@austin.rr.com
Data: 13/07/2011 21.54
A: <csound@lists.bath.ac.uk>
Ogg: [Csnd] Iannix + csound = ?


I am trying to get csound to work with Iannix
http://www.iannix.org/en/index.php

Iannix supports OSC so I figured I would use
OSClisten to pick up messages sent. But
csound seems to not get anything...

This is the .csd I am using:

<CsoundSynthesizer>
<CsInstruments>
sr = 44100
ksmps = 100
nchnls = 2

gihandle OSCinit 57120

;Iannix message format
;osc://127.0.0.1:57120/cursor 2 0.671143 nan

instr   1
    kf1 init 0
    kf2 init 0

nxtmsg:
    kk  OSClisten gihandle, "cursor", "if", kf1, kf2
    if (kk == 0) goto ex
        printk 0,kf1
        kgoto nxtmsg
ex:
endin
       
</CsInstruments>
<CsScore>
i1 0 10000
;i2 0 10
;i3 0 10

e
</CsScore>

</CsoundSynthesizer>




Is there something I am missing?




Thanks,
Anthony




Date2011-07-14 20:33
FromAnthony Palomba
SubjectRe: [Csnd] Iannix + csound = ?
I have another question...

If I wanted to tie a note event to a trigger. Once OSClisten picks
up the event, how can I generate a note from within an instrument?

Another alternative would be to have an OSC instrument that receives
messages then routes events to sub instruments. Can an instrument tell another
instrument to play a note?


-ap




On Thu, Jul 14, 2011 at 12:56 PM, Anthony Palomba <apalomba@austin.rr.com> wrote:
Ahhh yes, it works!

I think Iannix and csound are going to make a great combination.

For those of you why are not familiar with it Iannix ia a graphical
sequencer. It is light weight easy to use and provides a refreshing
change from the traditional sequencer paradigm. It also allows
you to handle multiple time scales.

Check it out, pretty cool...
http://www.youtube.com/watch?v=z10sYBr3ctg&feature=related



-ap








On Thu, Jul 14, 2011 at 3:29 AM, vallste@libero.it <vallste@libero.it> wrote:

Hello,

very nice software!

Try this example, tested with a simple cursor works.

 

<CsoundSynthesizer>
<CsInstruments>
sr = 44100
ksmps = 100
nchnls = 2

gihandle OSCinit 57120

;Iannix message format
;osc://127.0.0.1:57120/cursor 2 0.671143 nan

instr   1
    kf1 init 0
    kf2 init 0
    kf3 init 0

nxtmsg:
    kk  OSClisten gihandle, "/cursor", "fff", kf1, kf2, kf3


    if (kk == 0) goto ex
        printk 0,kf1
        kgoto nxtmsg
ex:
endin
       
</CsInstruments>
<CsScore>
i1 0 10000

e
</CsScore>

</CsoundSynthesizer>

 

Basically the address is  "/cursor" and not "cursor" and in your example there is a missing variable in the message (kf3).

Hope this helps

 

Stefano

 

----Messaggio originale----
Da: apalomba@austin.rr.com
Data: 13/07/2011 21.54
A: <csound@lists.bath.ac.uk>
Ogg: [Csnd] Iannix + csound = ?


I am trying to get csound to work with Iannix
http://www.iannix.org/en/index.php

Iannix supports OSC so I figured I would use
OSClisten to pick up messages sent. But
csound seems to not get anything...

This is the .csd I am using:

<CsoundSynthesizer>
<CsInstruments>
sr = 44100
ksmps = 100
nchnls = 2

gihandle OSCinit 57120

;Iannix message format
;osc://127.0.0.1:57120/cursor 2 0.671143 nan

instr   1
    kf1 init 0
    kf2 init 0

nxtmsg:
    kk  OSClisten gihandle, "cursor", "if", kf1, kf2
    if (kk == 0) goto ex
        printk 0,kf1
        kgoto nxtmsg
ex:
endin
       
</CsInstruments>
<CsScore>
i1 0 10000
;i2 0 10
;i3 0 10

e
</CsScore>

</CsoundSynthesizer>




Is there something I am missing?




Thanks,
Anthony





Date2011-07-14 21:12
FromTarmo Johannes
SubjectRe: [Csnd] Iannix + csound = ?
Thanks Antohy,

the hint on IanniX is great, indeed,  it looks VERRY interesting and  there is so much potential for creating interesting controlling enevlopes etc for Csound

On Thursday 14 July 2011 22:33:14 Anthony Palomba wrote:
> I have another question...
> 
> If I wanted to tie a note event to a trigger. Once OSClisten picks
> up the event, how can I generate a note from within an instrument?

you coud use opcodes

event or schedkwhen


there are opcodes also event_i, schedule and scoreline to trigger other instruments, but they work only on the init - time, it is just once in the very beginning of the intrument.


like:

kk  OSClisten gihandle, "/trigger", "iff", kf1, kf2, kf3 ; kf1 should be the triggers ID, right?
if (kk == 1  && kf1==1) then ; or whaterver condition you would like to put here for the triggers number 
	idur=10; or something, if indefinite, use negative number, but then you have to urn it off later , best with turnoff2
	kpar1=kf1 ; define the parametes for the instrument, if you wish
	kpar2=kf2
	event "i","theinstrumnet", 0, idur, kpar1, kpar2

endif


I did not test it, I hope it works and helps,

If you will have created some interesting IanniX score, would you mind sharing them as examples?

greetings,
tarmo

> 
> Another alternative would be to have an OSC instrument that receives
> messages then routes events to sub instruments. Can an instrument tell
> another
> instrument to play a note?
> 
> 
> -ap
> 
> 
> 
> 
> On Thu, Jul 14, 2011 at 12:56 PM, Anthony Palomba wrote:
> 
> > Ahhh yes, it works!
> >
> > I think Iannix and csound are going to make a great combination.
> >
> > For those of you why are not familiar with it Iannix ia a graphical
> > sequencer. It is light weight easy to use and provides a refreshing
> > change from the traditional sequencer paradigm. It also allows
> > you to handle multiple time scales.
> >
> > Check it out, pretty cool...
> > http://www.youtube.com/watch?v=z10sYBr3ctg&feature=related
> >
> >
> >
> > -ap
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Jul 14, 2011 at 3:29 AM, vallste@libero.it wrote:
> >
> >> Hello,
> >>
> >> very nice software!
> >>
> >> Try this example, tested with a simple cursor works.
> >>
> >>
> >>
> >> 
> >> 
> >> sr = 44100
> >> ksmps = 100
> >> nchnls = 2
> >>
> >> gihandle OSCinit 57120
> >>
> >> ;Iannix message format
> >> ;osc://127.0.0.1:57120/cursor 2 0.671143 nan
> >>
> >> instr   1
> >>     kf1 init 0
> >>     kf2 init 0
> >>     kf3 init 0
> >>
> >> nxtmsg:
> >>     kk  OSClisten gihandle, "/cursor", "fff", kf1, kf2, kf3
> >>
> >>     if (kk == 0) goto ex
> >>         printk 0,kf1
> >>         kgoto nxtmsg
> >> ex:
> >> endin
> >>
> >> 
> >> 
> >> i1 0 10000
> >>
> >> e
> >> 
> >>
> >> 
> >>
> >>
> >>
> >> Basically the address is  "/cursor" and not "cursor" and in your example
> >> there is a missing variable in the message (kf3).
> >>
> >> Hope this helps
> >>
> >>
> >>
> >> Stefano
> >>
> >>
> >>
> >> ----Messaggio originale----
> >> Da: apalomba@austin.rr.com
> >> Data: 13/07/2011 21.54
> >> A: 
> >> Ogg: [Csnd] Iannix + csound = ?
> >>
> >>
> >> I am trying to get csound to work with Iannix
> >> http://www.iannix.org/en/index.php
> >>
> >> Iannix supports OSC so I figured I would use
> >> OSClisten to pick up messages sent. But
> >> csound seems to not get anything...
> >>
> >> This is the .csd I am using:
> >>
> >> 
> >> 
> >> sr = 44100
> >> ksmps = 100
> >> nchnls = 2
> >>
> >> gihandle OSCinit 57120
> >>
> >> ;Iannix message format
> >> ;osc://127.0.0.1:57120/cursor 2 0.671143 nan
> >>
> >> instr   1
> >>     kf1 init 0
> >>     kf2 init 0
> >>
> >> nxtmsg:
> >>     kk  OSClisten gihandle, "cursor", "if", kf1, kf2
> >>     if (kk == 0) goto ex
> >>         printk 0,kf1
> >>         kgoto nxtmsg
> >> ex:
> >> endin
> >>
> >> 
> >> 
> >> i1 0 10000
> >> ;i2 0 10
> >> ;i3 0 10
> >>
> >> e
> >> 
> >>
> >> 
> >>
> >>
> >>
> >>
> >> Is there something I am missing?
> >>
> >>
> >>
> >>
> >> Thanks,
> >> Anthony
> >>
> >>
> >>
> >
> 
> 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"