package com.JJ.morse;

import com.karlotoy.perfectune.instance.PerfectTune;

public class perfectTune {
    //public int freq = 440;
    public static void tonegen(int millis, int freq) {
        PerfectTune soundgen = new PerfectTune();
        soundgen.setTuneFreq(freq);
        soundgen.playTune();
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        soundgen.stopTune();
    }
}
