Csound Csound-dev Csound-tekno Search About

[Csnd] Send message to an instance of an instrument

Date2014-05-14 12:19
FromolivierL
Subject[Csnd] Send message to an instance of an instrument
Hi,
I discover CSound, I have a little question. Can I send information to a
specifique instance of an instrument.

For exemple I have an instrument where I read a sample with a mooglader
filter. I use the same instrument with a string parameter for the name of
the sample, the 2 samples play in same time, during the play I want modify
kFreq of one filter.
What is the best way for archieve this ?

(Ps: sorry for my english :p )



--
View this message in context: http://csound.1045644.n5.nabble.com/Send-message-to-an-instance-of-an-instrument-tp5735238.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-05-14 12:22
FromRory Walsh
SubjectRe: [Csnd] Send message to an instance of an instrument
Send information from where? You could use channels for this, but I'm
not 100% sure I follow what you are trying to do. Can you provide more
info?

On 14 May 2014 12:19, olivierL  wrote:
> Hi,
> I discover CSound, I have a little question. Can I send information to a
> specifique instance of an instrument.
>
> For exemple I have an instrument where I read a sample with a mooglader
> filter. I use the same instrument with a string parameter for the name of
> the sample, the 2 samples play in same time, during the play I want modify
> kFreq of one filter.
> What is the best way for archieve this ?
>
> (Ps: sorry for my english :p )
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Send-message-to-an-instance-of-an-instrument-tp5735238.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>

Date2014-05-14 12:24
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Send message to an instance of an instrument
Untested, but you could do something like

Sfreq = "Freq"
Sfile  strget p4 ; this is where you set the filename to be played
Schan strcat Sfreq, Sfile ; Schan now contains e.g. "FreqMysoundfile1.wav"
kFreq chnget Schan ; receive control data on named channel

Then you send control data f.ex. from another instrument:
chnset "FreqMysoundfile1.wav" kfreq1
chnset "FreqMysoundfile2.wav" kfreq2

(??)
Oeyvind

2014-05-14 13:19 GMT+02:00 olivierL :
> Hi,
> I discover CSound, I have a little question. Can I send information to a
> specifique instance of an instrument.
>
> For exemple I have an instrument where I read a sample with a mooglader
> filter. I use the same instrument with a string parameter for the name of
> the sample, the 2 samples play in same time, during the play I want modify
> kFreq of one filter.
> What is the best way for archieve this ?
>
> (Ps: sorry for my english :p )
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Send-message-to-an-instance-of-an-instrument-tp5735238.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2014-05-14 12:32
FromolivierL
Subject[Csnd] Re: Send message to an instance of an instrument
Thank you, I think channel is what I looking for.

Thanks for the quick answer.



--
View this message in context: http://csound.1045644.n5.nabble.com/Send-message-to-an-instance-of-an-instrument-tp5735238p5735241.html
Sent from the Csound - General mailing list archive at Nabble.com.