ECMC PVC example file freqresponse2
# ECMC PVC example "freqresponse2" creates a frequency response # analysis file of a pizzicato cello tone (/sflib/string/vc.p.e2) # from time .3 to time .6 (a duration of .3) in the source soundfile. # analysis_begintime=.3 # analysis_endtime=.6 # Defaults are used for all other parameters # This is typical of the use of freqresponse, where we generally # to try to capture a fairly small portion of the steady state portion of a sound. # The freqency response file created by this script (vc.p.e2.mid.fr) # is used in the old SGI ECMC PVC example "bandamp2" #****************************************************** #*** FREQRESPONSE ANALYSIS **************** #****************************************************** # ******ECMC CHANGES & ADDITIONS: *************** #******** INPUT & OUTPUT SOUNDFILES ************* # input soundfile, can be aiff or wave format on Linux, aiff only on SGI analysis_sndfile=/sflib/string/vc.p.e2 freqresponsefile=vc.p.e2.mid.fr inputsf=/sflib/string/vc.p.e2 # ********************* # ##### Cmusic function file generator tempates ##### # (No gen functions used in this example) ##### End of gen routine function generator tempates ##### #------------------------------------------------------ #******************** ANALYSIS ************************ #------------------------------------------------------ #........ BEGIN/END TIMES ............................. analysis_begintime=.3 analysis_endtime=.6 #........... ANALYSIS CHANNEL(S) ....................... analysis_channel=0 # channels are numbered from 1-maximum, 0 = all channels #...................................................... #*** ANALYSIS PARAMETERS ****************************** FFT_length=1024 analysis_frames_per_second=200 ANALYSIS_METHOD_average_0_peak_1=1 #------------------------------------------------------ #********ANALYSIS LOW/HIGH SHELF EQ ******************* ANALYSIS_LOW_SHELF_EQ_gain_in_decibels=-0 ANALYSIS_LOW_SHELF_EQ_frequency=300 ANALYSIS_HIGH_SHELF_EQ_gain_in_decibels=0 ANALYSIS_HIGH_SHELF_EQ_frequency=1000 #------------------------------------------------------ FREQRESPONSE_PRINTOUT_high_cutoff_frequency=2000 # ( 0 = off )
#==================================================== # COMMAND LINE SETUP -- OFFICE USE ONLY # (DO NOT WRITE BELOW THIS LINE) #==================================================== PVCDIR=/usr/local/soundapps/PVC PVCBIN=$PVCDIR/bin cd $SFDIR # ECMC if [ "$OSTYPE" = "irix" ] then input_file=pvcin # ECMC temporary NeXT format input soundfile /sbin/rm -f pvcin # Create temporary NeXT format input soundfile "pvcin:" ECMC /usr/local/bin/sox -t aiff $inputsf -t au pvcin # ECMC elif [ `echo "$OSTYPE" | grep linux` ] then input_file=$inputsf fi # ****** end of ECMC changes & additions ****** # # ANALYSIS pvanalysisroutine=freqresponse PVFLAGS="\ \ -N$FFT_length \ -M0 \ -D$analysis_frames_per_second \ \ -b$analysis_begintime \ -e$analysis_endtime \ \ -c$ANALYSIS_METHOD_average_0_peak_1 \ \ -H$ANALYSIS_LOW_SHELF_EQ_gain_in_decibels \ -m$ANALYSIS_LOW_SHELF_EQ_frequency \ \ -X$ANALYSIS_HIGH_SHELF_EQ_gain_in_decibels \ -R$ANALYSIS_HIGH_SHELF_EQ_frequency \ \ -P$FREQRESPONSE_PRINTOUT_high_cutoff_frequency \ \ -C$analysis_channel \ " echo "\n\n$pvanalysisroutine $PVFLAGS $analysis_sndfile $freqresponsefile " $pvanalysisroutine $PVFLAGS $analysis_sndfile $freqresponsefile ; # ***** ECMC CHANGES & ADDITIONS: ******* # if [ "$OSTYPE" = "irix" ] then /sbin/rm -f pvcin fi echo 'Listing of frequency response file $freqresfile :' ls -l $freqresponsefile # ****** end of ECMC changes & additions ****** # # If you have created any gen function files above delete them below: