Hi, so I am not a very experienced programmer, but have been learning to develop Max externals in a course I am taking. There's a few things I am trying to figure out in writing my own externals that I hoped the people on this forum could help me with:
1. In one object I am building, I have separate clocks for each outlet. When calling the clock_function, how can I specify which clock/outlet to call? I have tried putting that information into a variable in my object's struct, but prolems arise when multiple clock_functions are modifying that variable at the same time.
2. How do I create anti-aliased wavetables for saw, square and triangle waveforms? I have tried creating them by running each value in the wavetable through a two pole, two zero low pass filter at 20 kHz (coefficents determined through the [filtergraph~] object), with no luck. I also tried implementing the mathematic formulas found here:
only up to the kth partial (where k * f < Nyquist frequency). Also no luck.
3. How do I link an array of values to a [buffer~] object?
Thanks for any help. I look forward to your replies.