Re: [PD-dev] help setting signal input via arg

2023-11-23 Thread Alexandre Torres Porres
THANKS!!! Em qui., 23 de nov. de 2023 às 09:18, Christof Ressi escreveu: > CLASS_SIGNALMAININ expects the variable to be t_float, but x_cf is > declared as a double! The compiler happily accepts it and you get garbage > at runtime! In this particular case, Pd would read the lower half of the >

Re: [PD-dev] help setting signal input via arg

2023-11-23 Thread Christof Ressi
CLASS_SIGNALMAININ expects the variable to be t_float, but x_cf is declared as a double! The compiler happily accepts it and you get garbage at runtime! In this particular case, Pd would read the lower half of the double and interpret it as a float. Actually, there are ways to check the type

[PD-dev] help setting signal input via arg

2023-11-22 Thread Alexandre Torres Porres
Hi, this is embarrassing, after coding so many objects that can easily set a signal input via an argument, like an oscillator whose signal input sets frequency and you can also set it via an argument (just like [osc~]), I can't see what's wrong with this code I'm workin on right now. I am