JUCE, MAX/MSP GEN~ CYCLE PARAM compile error


#1

Hi all,
I am getting this error using MAX/MSP gen~ cycle and param …

“Member reference base type ‘t_sample’ (aka ‘double’) is not a structure or union”

m_d8freq_22 = ((t_sample)0.79);

int d8freq_dim = m_d8freq_22.dim;
int d8freq_channels = m_d8freq_22.channels;

Can anyone provide any insight ?
Perhaps I haven’t given enough info ?

I am trying to compile a delay plugin written in max with JUCE.

Using Param on other gen~ objects like the delay time works fine but if I add param to the cycle object ( a sin wav look up ) it doesn’t work. The param object is changing the frequency of the sin wav which should be a double .

Sean


#2

SOLVED :
I managed to solve the issue …
I created a float object above the cycle object with a param attached and sent the value of the float into the cycle object and it worked! Time to build a nice gui …