I am trying to set up a two-tone frequency discrimination task to find the "just noticeable difference" for a set of participants. In this task a given stimulus would be dependent upon the frequency of the previous stimulus together with the participant's response - whether it was correct or incorrect as well as how many responses were correct within 5 trials. Could anyone give me ideas about how to set up these contingencies? Thanks!