노현욱

debug : some little var names

...@@ -173,7 +173,12 @@ class Effector: ...@@ -173,7 +173,12 @@ class Effector:
173 db, main_frequency, amplitude = self.get_decibel_freq_amplitude(active_sound) 173 db, main_frequency, amplitude = self.get_decibel_freq_amplitude(active_sound)
174 print("touched, db {}, main_frequency {}, amplitude {}".format(db, main_frequency, amplitude)) 174 print("touched, db {}, main_frequency {}, amplitude {}".format(db, main_frequency, amplitude))
175 param = self.get_distortion_rate(db, main_frequency, amplitude) 175 param = self.get_distortion_rate(db, main_frequency, amplitude)
176 - print("effect 정도 :", param) 176 + if(self.effect == "echo"):
177 + print("echo 정도 :", param)
178 + if(self.effect == "pitch_shift"):
179 + print("pitch_shift 정도 :", param*3-1,"옥타브 이동")
180 + if(self.effect == "low_filter"):
181 + print("low_filter 정도 :", param*RATE/8,"Hz 이하만 통과")
177 for i in range(0, len(self.sound), CHUNK): 182 for i in range(0, len(self.sound), CHUNK):
178 temp_chunk = self.augumented_sound[self.effect][int(param*EFFECT_LEVEL)][i:i+CHUNK] 183 temp_chunk = self.augumented_sound[self.effect][int(param*EFFECT_LEVEL)][i:i+CHUNK]
179 Q.put(temp_chunk) 184 Q.put(temp_chunk)
......