ezdac playing continuous note from kslider help

Sammi Syse's icon

I am very new to max I am trying to create a Simon Says patch using the kslider for a project. The first keyboard plays out a random set of notes from the itable (these are the same notes used in the 2nd keyboard in which the player uses). I am having a couple issues, but the most annoying is that when I click the ezdac object, a random continuous note plays out and it makes it hard to go forward with my patch. I'm sure this is any easy fix but I can't figure it out. Attached below is my patch. Thanks for the help!

Final 4.maxpat
Max Patch

Len Richardson's icon

Hey Sammy,

the problem is that you've attached your dac~ directly to a cycle~ object. The sound is the 440hz you set as frequency parameter. cycle~ is a sinuoidal oscillator wich will oscillate as long as audio is activated.
Take a look at the kslider help file and also see the makenote object. These might help maybe.

kind regards

Len