def fnrms(self): if self.rms == 0: self.rms = specinfo.create('rms', self.filepath1, self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_rms1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_rms2.png")) elif self.rms == 1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_rms1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_rms2.png"))
def fnmfcc(self): if self.mfcc == 0: self.mfcc = specinfo.create('mfcc', self.filepath1, self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_mfcc1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_mfcc2.png")) elif self.mfcc == 1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_mfcc1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_mfcc2.png"))
def fnchroma(self): if self.chroma==0: self.chroma=specinfo.create('chroma',self.filepath1,self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_chroma1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_chroma2.png")) elif self.chroma==1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_chroma1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_chroma2.png"))
def fnmfcc(self): if self.mfcc==0: self.mfcc=specinfo.create('mfcc',self.filepath1,self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_mfcc1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_mfcc2.png")) elif self.mfcc==1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_mfcc1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_mfcc2.png"))
def fnrms(self): if self.rms==0: self.rms=specinfo.create('rms',self.filepath1,self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_rms1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_rms2.png")) elif self.rms==1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_rms1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_rms2.png"))
def fncentroid(self): if self.centroid==0: self.centroid=specinfo.create('centroid',self.filepath1,self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_centroid1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_centroid2.png")) elif self.centroid==1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_centroid1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_centroid2.png"))
def fnchroma(self): if self.chroma == 0: self.chroma = specinfo.create('chroma', self.filepath1, self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_chroma1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_chroma2.png")) elif self.chroma == 1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_chroma1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_chroma2.png"))
def fncentroid(self): if self.centroid == 0: self.centroid = specinfo.create('centroid', self.filepath1, self.filepath2) self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_centroid1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_centroid2.png")) elif self.centroid == 1: self.label_a.setScaledContents(True) self.label_a.setPixmap(QPixmap("wave_centroid1.png")) self.label_b.setScaledContents(True) self.label_b.setPixmap(QPixmap("wave_centroid2.png"))