Csound Csound-dev Csound-tekno Search About

[Csnd] separate readings

Date2011-03-26 10:54
FromEnrico Francioni
Subject[Csnd] separate readings
hi!

how can I make a debug kenv values​​,
but by separating the values ​​generated by
first to the second instance?
printk in fact values ​​are all mixed up ...

Thanks to all !

enrico



for ex.:

; orc

instr env

kenv line p4, p3, p5
printk 0, kenv

endin


; sco

, p1 p2 p3 p4 p5
i"env" 0 10 0 .5
i.       0 10 .5 0
e



--
View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265373.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"


Date2011-03-26 11:29
FromRory Walsh
SubjectRe: [Csnd] separate readings
Perhaps prink2 may be useful, it will only print a k-rate variable if
its value has changed.

Rory.


On 26 March 2011 10:54, Enrico Francioni  wrote:
>
> hi!
>
> how can I make a debug kenv values,
> but by separating the values generated by
> first to the second instance?
> printk in fact values are all mixed up ...
>
> Thanks to all !
>
> enrico
>
>
>
> for ex.:
>
> ; orc
>
> instr env
>
> kenv line p4, p3, p5
> printk 0, kenv
>
> endin
>
>
> ; sco
>
> , p1 p2 p3 p4 p5
> i"env" 0 10 0 .5
> i.       0 10 .5 0
> e
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265373.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"


Date2011-03-26 11:46
FromEnrico Francioni
Subject[Csnd] Re: separate readings
perhaps I have not explained well...
• in the first instance [i"env" 0 10] kenv goes from 0 to 0.5
• in the second instance (the first contemporary [i"env" 0 10] ) kenv from
0.5 to 0

I would like to separate the values ​​of kenv of the first and second
instance

es:
kenv1 and kenv2


thanks Rory!


e

--
View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265425.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"


Date2011-03-26 12:04
FromRory Walsh
SubjectRe: [Csnd] Re: separate readings
How about

instr 1
kenv line p4, p3, p5
printks "Instance %f, k1 = %f\n", .2, p6, k1
endin


, p1 p2 p3 p4 p5 p6
i"env" 0 10 0 .5   1
i.       0 10 .5 0   2
e

Is that what you're looking for?



On 26 March 2011 11:46, Enrico Francioni  wrote:
>
> perhaps I have not explained well...
> • in the first instance [i"env" 0 10] kenv goes from 0 to 0.5
> • in the second instance (the first contemporary [i"env" 0 10] ) kenv from
> 0.5 to 0
>
> I would like to separate the values of kenv of the first and second
> instance
>
> es:
> kenv1 and kenv2
>
>
> thanks Rory!
>
>
> e
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265425.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"


Date2011-03-26 12:04
FromIain McCurdy
SubjectRE: [Csnd] Re: separate readings
Delay the second note so it doesn't overlap with the first?

i"env" 0 10 0 .5
i.       10 10 .5 0

Iain

> Date: Sat, 26 Mar 2011 04:46:31 -0700
> From: francioni61021@libero.it
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: separate readings
>
>
> perhaps I have not explained well...
> • in the first instance [i"env" 0 10] kenv goes from 0 to 0.5
> • in the second instance (the first contemporary [i"env" 0 10] ) kenv from
> 0.5 to 0
>
> I would like to separate the values ​​of kenv of the first and second
> instance
>
> es:
> kenv1 and kenv2
>
>
> thanks Rory!
>
>
> e
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265425.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"
>

Date2011-03-26 12:05
FromRory Walsh
SubjectRe: [Csnd] Re: separate readings
Sorry sent that without checking to see if it works, here is a working one:

instr env
kenv line p4, p3, p5
printks "Instance %f, k1 = %f\n", .2, p6, kenv
endin


, p1 p2 p3 p4 p5 p6
i"env" 0 10 0 .5   1
i.       0 10 .5 0   2
e


On 26 March 2011 12:04, Rory Walsh  wrote:
> How about
>
> instr 1
> kenv line p4, p3, p5
> printks "Instance %f, k1 = %f\n", .2, p6, k1
> endin
>
>
> , p1 p2 p3 p4 p5 p6
> i"env" 0 10 0 .5   1
> i.       0 10 .5 0   2
> e
>
> Is that what you're looking for?
>
>
>
> On 26 March 2011 11:46, Enrico Francioni  wrote:
>>
>> perhaps I have not explained well...
>> • in the first instance [i"env" 0 10] kenv goes from 0 to 0.5
>> • in the second instance (the first contemporary [i"env" 0 10] ) kenv from
>> 0.5 to 0
>>
>> I would like to separate the values of kenv of the first and second
>> instance
>>
>> es:
>> kenv1 and kenv2
>>
>>
>> thanks Rory!
>>
>>
>> e
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265425.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"


Date2011-03-26 13:00
FromEnrico Francioni
Subject[Csnd] Re: separate readings
thanks Rory…

now I want to separate the values ​​kenv the first instance by the values
kenv ​​of the second instance, and generate two control variables (kenv1 and
kenv2)…

e


--
View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265469.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"


Date2011-03-26 13:10
FromRory Walsh
SubjectRe: [Csnd] Re: separate readings
I'm totally confused! I'm still not 100% clear on what you are trying
to do. Could global variables help at all?


On 26 March 2011 13:00, Enrico Francioni  wrote:
>
> thanks Rory…
>
> now I want to separate the values kenv the first instance by the values
> kenv of the second instance, and generate two control variables (kenv1 and
> kenv2)…
>
> e
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265469.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"


Date2011-03-26 13:17
FromEnrico Francioni
Subject[Csnd] Re: separate readings
I'm sorry Rory,
is all my fault!

here's what I do (for now):





nchnls	=	1


instr env 

kenv line p4, p3, p5 

if p6	=	1 then
printks "Instance1 %f, k1 = %f\n", .2, p6, kenv 
k1	=	kenv

elseif p6 = 2 then
printks "Instance2 %f, k2 = %f\n", .2, p6, kenv 
k2	=	kenv

elseif p6 = 3 then
printks "Instance2 %f, k3 = %f\n", .2, p6, kenv 
k3	=	kenv

endif

endin



f0	3600


;p1 	  p2p3 p4 p5 p6 

i"env" 0 10 0 .5   1 
i.     0 10 .5 0   2 
i.     2 8  .25 -.25   3

e 





thanks you,

e

--
View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265483.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"

Date2011-03-26 13:32
FromRory Walsh
SubjectRe: [Csnd] Re: separate readings
This is clearly a communication issue, I'll try again, bear with me.
What it is about the instrument you just posted that makes it not work
as you'd wish?


On 26 March 2011 13:17, Enrico Francioni  wrote:
>
> I'm sorry Rory,
> is all my fault!
>
> here's what I do (for now):
>
>
>
>
>
> nchnls  =       1
>
>
> instr env
>
> kenv line p4, p3, p5
>
> if p6   =       1 then
> printks "Instance1 %f, k1 = %f\n", .2, p6, kenv
> k1      =       kenv
>
> elseif p6 = 2 then
> printks "Instance2 %f, k2 = %f\n", .2, p6, kenv
> k2      =       kenv
>
> elseif p6 = 3 then
> printks "Instance2 %f, k3 = %f\n", .2, p6, kenv
> k3      =       kenv
>
> endif
>
> endin
>
>
>
> f0      3600
>
>
> ;p1       p2p3 p4 p5 p6
>
> i"env" 0 10 0 .5   1
> i.     0 10 .5 0   2
> i.     2 8  .25 -.25   3
>
> e
>
>
>
>
>
> thanks you,
>
> e
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265483.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"


Date2011-03-26 14:04
FromEnrico Francioni
Subject[Csnd] Re: separate readings
Rory,
I try to separate the values ​​of k a quadraphonic spatialization;
kx and ky values ​​(axes in a Cartesian plane) I need to check the
performance space in the GUI of various signals (12).

Do you understand?

;-)
e

--
View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265516.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"


Date2011-03-26 14:13
FromRory Walsh
SubjectRe: [Csnd] Re: separate readings
Maybe? Here's an example that uses the kenv values from each instance
to control three oscillators in another instrument? Are we getting
close? If so I can image there are better ways of doing it. If not,
we'll just try again!



 -odevaudio


sr     = 44100
kr     = 4410
ksmps  = 10
nchnls = 1

gk1 init 0
gk2 init 0
gk3 init 0

;generates control signals and routes them depending on instace
instr env
kenv line p4, p3, p5
if p6   =       1 then
printks "Instance1 %f, k1 = %f\n", .2, p6, kenv
gk1      =       kenv
elseif p6 = 2 then
printks "Instance2 %f, k2 = %f\n", .2, p6, kenv
gk2      =       kenv
elseif p6 = 3 then
printks "Instance2 %f, k3 = %f\n", .2, p6, kenv
gk3      =       kenv
endif
endin

;this instrument uses the kenv values being
;generated from the instrument above
instr sig
a1 oscil 10000, gk1*1000, 1
a2 oscil 10000, gk2*1000, 1
a3 oscil 10000, gk3*1000, 1
out a1+a2+a3
endin



f1 0 1024 10 1
f0      3600
;p1    p2	p3 	p4 	p5 	p6
i"env" 0 	10 	0 	.5   	1
i.       0 	10 	.5 	0   	2
i.       2 	8  	.25 	-.25  	3

i"sig" 0 100
e



On 26 March 2011 14:04, Enrico Francioni  wrote:
>
> Rory,
> I try to separate the values of k a quadraphonic spatialization;
> kx and ky values (axes in a Cartesian plane) I need to check the
> performance space in the GUI of various signals (12).
>
> Do you understand?
>
> ;-)
> e
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4265516.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"


Date2011-03-27 11:19
FromEnrico Francioni
Subject[Csnd] Re: separate readings
…ciao Rory,

in what other ways would be possible to do the same thing?

thanks

e

--
View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4266219.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"


Date2011-03-27 16:52
FromRory Walsh
SubjectRe: [Csnd] Re: separate readings
Does the example posted help solve your issue? Global variables will
do fine for simple things. If things start to get a little more
complex you could try using the zak space opcodes. Or you could use a
combo of chnget/chnset.

Rory.


On 27 March 2011 11:19, Enrico Francioni  wrote:
>
> …ciao Rory,
>
> in what other ways would be possible to do the same thing?
>
> thanks
>
> e
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/separate-readings-tp4265373p4266219.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"