This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from pylab import * | |
| import wave | |
| sig = wave.open('ycn9999 _out.wav','r') | |
| xsig = sig.readframes(-1) | |
| xsig = fromstring(xsig, 'Int16') | |
| f = sig.getframerate() | |
| spectrogram = specgram(xsig[0:300000], Fs = f, scale_by_freq=True,sides='default') | |
| axis('tight') | |
| title('Spectrogram of Sound Synthesis Variant 2, with Python'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | G=imread('garlic_chive_flowers-color.tif','tif'); | |
| %G=imread('Cavolfiore_Di_Sicilia_Violetto.jpg','jpg'); | |
| G=double(G); | |
| MG1 = ones(size(G(:,:,1),1),1)*mean(G(:,:,1)); | |
| MG2 = ones(size(G(:,:,2),1),1)*mean(G(:,:,2)); | |
| MG3 = ones(size(G(:,:,3),1),1)*mean(G(:,:,3)); | |
| G1 = G(:,:,1)-MG1; | |
| G2 = G(:,:,2)-MG2; | |
| G3 = G(:,:,3)-MG3; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from operator import itemgetter | |
| import win32com.client | |
| import time | |
| run_time=time.ctime() | |
| strComputer = "." | |
| objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator") | |
| objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2") | |
| procItems = objSWbemServices.ExecQuery("Select * from Win32_Process") | |
| plist=[]; | |
| pcnt1=0 | 
NewerOlder