Unable to make a sine wave.

danielj's icon

Just started using Max/Msp so I'm still learning the very basics. I have included a screen shot of my patch, which as far as I know should make a sine wave but as you can see from the scope it doesn't. Can anyone tell me why that is and also how to fix it.

Thanks

2770.Maxmsp.jpg
jpg
Mark Durham's icon

Hi Daniel,

Don't worry, you are creating a sine wave. Set cycle~ at something like 8-10hz and you will see a sine wave in the scope. Scope does not display a pixel for every sample (default is 256 samples per pixel) so at high pitches every oscillation cannot be displayed. Go to the scope inspector and play around with the Calccount values and you will see what I mean.

Mark Durham's icon

ps. try setting the Calcount at 2 samples per pixel and you will see the sine wave.

Hope this helps,

Mark

danielj's icon

Yeah that sorted it.

Thanks Mark!