def gen_note(self, note, time=5): try: gen_wav.gen_note(note,time,self.rate,self.amp,self.freq_dict) except KeyError: return "Note not found, try get_notes() to see available notes. "
def gen_full_scale(self, time = 5): for n in self.freq_dict.keys(): gen_wav.gen_note(n,time,self.rate,self.amp,self.freq_dict)