ECMC PVC example file harmonizer1

ECMC PVC example "harmonizer" is a mix of two soundfiles, created by example scripts "harmonizer1-1" (first note) and then "harmonizer1-2" (which created the second note).

#Example PVC script file >> harmonizer1-1 << :
A 4 note dominant 7th chord (cc2 / g3/ bf4/e6) is created from a source violin tone. Each of the 4 "harmoinzed" notes contains the full frequency spectrum of the source violin tone (the -1 low and high frequency parameter arguments in the lines below: Note: Do not include any comments (#) in the lines that create a harmonizer map file

The following parameter values, written into the scratch file $SFDIR/harmonizermap, create 3 "harmonizer" notes with transpositions down 19 semitones (c2), up 15 semitones (bf4) and up 33 semitones (e6) with gain adjustments of +9 dB, +4dB and -3 dB

echo \
\
-19 -1 -1 9 \
15 -1 -1 4 \
33 -1 -1 -3 \
\
> $SFDIR/harmonizermap

HARMONIZER_shift_file=harmonizermap

This function creates a master gain that increases linearly from -40 dB to -6 dB, and then decreases back to -40 dB, creating an amplitude swell in all 4 notes:

gen3 -L1000 -40 -6 -40 > $SFDIR/gainfunc

MASTER_gain_in_decibels=$SFDIR/gainfunc # int,float or FUNC

The "source" tone g3 is reduced in amplitude by 6 dB:

SOURCE_gain_in_dB=-6 # -0 # int,float or FUNC

Example script "harmonizer1-2," which produced the second note in /sflib/x/soundfile "harmonizer1," is identical to example "harmonizer1-1" except that only a portion of the frequency spectrum of the original violin tone is used for resynthesis of each of the 3 harmonized notes:
echo \
\
-19 -1 9.00 9 \
15 8.03 10.02 4 \
33 9.07 -1 -3 \
\
$SFDIR/harmonizermap

HARMONIZER_shift_file=harmonizermap

Harmonized tone c2 is created from frequencies between 0 Hz (-1) and c5 (9.00) in the source violin tone Harmonized tone bf4 (15) is created from frequencies between ef3 (8.03) and d6 (10.02) in the source violin tone. Harmonized tone e6 (33) uses frequencies from g5 (9.07) to the Nyquist
To see the source files for "harmonizer1-1" or "harmonizer1-2" type
pvcex harmonizer1-1 or else getex harmonizer1-1
pvcex harmonizer1-2 or else getex harmonizer1-2