< Back to IRCAM Forum

Problem with curve?

Hi all,

I’m using in my Antescofo score Curves.

On the bar 40 (label M40) i launch a curve like this :
Curve filtrage-harpe @Grain := 0.05 s, @Action :=
{
commandesfiltrage frequence-cut2 $x, Gain2 $y
}
{
$x
{
{ 150 }
4 { 250 }
……
10 { 1600 }
13.5 { 3500 } ; The curve arrives here at my label M68
}
$y
{
{ 0.75 }
4 { 0.85 }
……
9.5 { 7 } ;The curve arrives here at my label M68
3 { 7 }
5 { 0.75 }
}
}
Before the label M68 i launch two other curves connected to two different Max objects

curve SPEED2 @Grain := 0.005s, @Action := playbackspeed2 $x
{
$x
{
{ -1} ; 1.5 beat after the beginning of the curve is my label M68
2 { -0.2}
}
}
Curve player @Grain := 0.01 s, @Action :=
{
“input-loopmatrix2” $x
}
{
$x
{
{ 0 } @type “linear”
1 { 0.9 }@type “linear”
1.1 { 0 } @type “linear”
}
}
Now, the problem is that the receive object in MAX named “r frequence-cut2” receives values from the curve SPEED2 at the label M68. Of course the two objects “playbackspeed2” and “frequence-cut2” are not connected !
Changing the name of the variable, in the curve speed2 resolves the problem ($e from example).

Did i make a mistake?
Can i launch different curves to different MAX objects with the same variable name?
A bug in Antescofo?

Thanks

Henri

Hi Henri,

The problem is a classic problem ! :wink:

You are using two curves on a same variable ($x) in the same time and if you don’t specify, $x is a global variable so it’s absolutely normal that “r frequence-cut2” receives values from the curve SPEED2 !

Try with different names for your variables.

If you want use the same name, you have to write a group for each curve where you write “@local $x”

Like :

Group toto
{
@local $x
curve mycurve @grain := 0.005, @action := receiver $x

 }  

Best,

julia

Thanks Julia, it’s clear now !

Henri