Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(84)  |  Call(74)  |  Derive(0)  |  Import(10)

        def print_msg( string ) :
    global message_file
    message_file.write( "%s\n" % string )
        


src/d/r/dr14-t.meter-1.0.11/dr14tmeter/dynamic_range_meter.py   DR14-T.meter(Download)
import dr14tmeter.dr14_global as dr14
 
from dr14tmeter.out_messages import print_msg, print_out, dr14_log_debug
 
 
        self.res_list.append(res)
 
        print_msg( file_name + ": \t DR " + str( int(dr14) ) )
 
 
            out_file = codecs.open( file_name , file_mode , "utf-8-sig" )
        except:
            print_msg ( "File opening error [%s] :" % file_name , sys.exc_info()[0] )
            return False
 
                ( dr14, dB_peak, dB_rms ) = compute_dr14( at.Y , at.Fs , duration )
                lock_res_list.acquire()
                print_msg( file_name + ": \t DR " + str( int(dr14) ) )
 
                #res_list[curr_job] = { 'file_name': file_name , 'dr14': dr14 , 'dB_peak': dB_peak , 'dB_rms': dB_rms , 'duration':duration.to_str() }
                lock_res_list.release()
            else:
                print_msg( "- fail - " + full_file )
 
 

src/d/r/dr14_t.meter-HEAD/dr14tmeter/dynamic_range_meter.py   dr14_t.meter(Download)
import dr14tmeter.dr14_global as dr14
 
from dr14tmeter.out_messages import print_msg, print_out, dr14_log_debug
 
 
        self.res_list.append(res)
 
        print_msg( file_name + ": \t DR " + str( int(dr14) ) )
 
 
            out_file = codecs.open( file_name , file_mode , "utf-8-sig" )
        except:
            print_msg ( "File opening error [%s] :" % file_name , sys.exc_info()[0] )
            return False
 
                ( dr14, dB_peak, dB_rms ) = compute_dr14( at.Y , at.Fs , duration )
                lock_res_list.acquire()
                print_msg( file_name + ": \t DR " + str( int(dr14) ) )
 
                #res_list[curr_job] = { 'file_name': file_name , 'dr14': dr14 , 'dB_peak': dB_peak , 'dB_rms': dB_rms , 'duration':duration.to_str() }
                lock_res_list.release()
            else:
                print_msg( "- fail - " + full_file )
 
 

src/d/r/dr14-t.meter-1.0.11/dr14tmeter/dr14_utils.py   DR14-T.meter(Download)
import re
import tempfile
from dr14tmeter.out_messages import print_msg
import fileinput
 
    for cur_dir in subdirlist :
        dr = DynamicRangeMeter()
        print_msg ( "\n------------------------------------------------------------ " )		        
        print_msg ( "> Scan Dir: %s \n" % cur_dir )
 
        full_out_dir = out_dir
 
    print_msg( "DR = " + str( dr.dr14 ) )
 
    if not ( os.access( full_out_dir , os.W_OK ) ) :
        full_out_dir = tempfile.gettempdir() ; 
        print_msg( "--------------------------------------------------------------- " )

src/d/r/dr14_t.meter-HEAD/dr14tmeter/dr14_utils.py   dr14_t.meter(Download)
import re
import tempfile
from dr14tmeter.out_messages import print_msg
import fileinput
 
    for cur_dir in subdirlist :
        dr = DynamicRangeMeter()
        print_msg ( "\n------------------------------------------------------------ " )		        
        print_msg ( "> Scan Dir: %s \n" % cur_dir )
 
        full_out_dir = out_dir
 
    print_msg( "DR = " + str( dr.dr14 ) )
 
    if not ( os.access( full_out_dir , os.W_OK ) ) :
        full_out_dir = tempfile.gettempdir() ; 
        print_msg( "--------------------------------------------------------------- " )

src/d/r/dr14-t.meter-1.0.11/dr14tmeter/audio_file_reader.py   DR14-T.meter(Download)
from io import StringIO
 
from dr14tmeter.out_messages import print_msg, dr14_log_info
 
# ffmpeg -i example.m4a -f wav pipe:1 > test.wav
            os.remove( tmp_file )
        else:
            print_msg( file_name + ": unsupported encoder" )
 
        time_b = time.time()
        except:
            self.__init__()
            print_msg ( "Unexpected error: %s" % str( sys.exc_info() ) )
            print_msg (  "\n - ERROR ! " )
            return False

src/d/r/dr14_t.meter-HEAD/dr14tmeter/audio_file_reader.py   dr14_t.meter(Download)
from io import StringIO
 
from dr14tmeter.out_messages import print_msg, dr14_log_info
 
# ffmpeg -i example.m4a -f wav pipe:1 > test.wav
            os.remove( tmp_file )
        else:
            print_msg( file_name + ": unsupported encoder" )
 
        time_b = time.time()
        except:
            self.__init__()
            print_msg ( "Unexpected error: %s" % str( sys.exc_info() ) )
            print_msg (  "\n - ERROR ! " )
            return False

src/d/r/dr14-t.meter-1.0.11/dr14tmeter/audio_analysis.py   DR14-T.meter(Download)
import dr14tmeter.dr14_global as dr14
 
from dr14tmeter.out_messages import print_msg, print_out
 
 
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()

src/d/r/dr14_t.meter-HEAD/dr14tmeter/audio_analysis.py   dr14_t.meter(Download)
import dr14tmeter.dr14_global as dr14
 
from dr14tmeter.out_messages import print_msg, print_out
 
 
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()
        title = self.getMetaData().get_value( fn , "title" )
 
        print_msg( "Track Title: %s " % title )
 
        at = self.getAudioTrack()

src/d/r/dr14-t.meter-1.0.11/dr14tmeter/dr14_global.py   DR14-T.meter(Download)
import threading
 
from dr14tmeter.out_messages import print_msg
 
 
def test_matplotlib_modules( fun_name ):
    try:
        import matplotlib
    except ImportError:
        print_msg( "The %s function require the installation of MatPlotLib: http://matplotlib.sourceforge.net" % fun_name )
def test_hist_modules():
    try:
        import matplotlib
    except ImportError:
        print_msg( "The histogram function require the installation of MatPlotLib: http://matplotlib.sourceforge.net" )
def test_compress_modules():
    try:
        import scipy
    except:
        print_msg( "The compression function require the installation of SciPy: http://www.scipy.org/" )

src/d/r/dr14_t.meter-HEAD/dr14tmeter/dr14_global.py   dr14_t.meter(Download)
import threading
 
from dr14tmeter.out_messages import print_msg
 
 
def test_matplotlib_modules( fun_name ):
    try:
        import matplotlib
    except ImportError:
        print_msg( "The %s function require the installation of MatPlotLib: http://matplotlib.sourceforge.net" % fun_name )
def test_hist_modules():
    try:
        import matplotlib
    except ImportError:
        print_msg( "The histogram function require the installation of MatPlotLib: http://matplotlib.sourceforge.net" )
def test_compress_modules():
    try:
        import scipy
    except:
        print_msg( "The compression function require the installation of SciPy: http://www.scipy.org/" )