//==============================================================
// Oboe SOLO : Performance
//
//   This is a combination of
//
//     oboe-SOLO-sustain.sfz
//     oboe-SOLO-staccato.sfz
//
//   ... where high key velocity reduces the sample attack time
//       and the mod wheel increases the volume
//
//   by Paul Battersby - http://virtualplaying.com
//
//==============================================================

<control>
// set some sfz 2.0 default values
// mod wheel
set_cc1=64
// pan (not used but Sforzando will default to 0 = 100%L when
//  other CC settings are present)
set_cc10=64

//==============================================================
//  Solo Oboe : Sustain
//
//   Woodwinds - Oboe Solo.sfz from Sonatina Symphonic Orchestra - http://sso.mattiaswestlund.net
//
//   modified by Paul Battersby - http://virtualplaying.com
//
//==============================================================

// ------------------------------
//  Sonatina Symphonic Orchestra
// ------------------------------
//           Oboe
// ------------------------------

<group>
// cc1 controls gain after lowering volume of all samples (PB)
gain_cc1=29
// reduce velocity tracking, use cc1 for volume (PB)
amp_veltrack=60

// reduce attack with increased key velocity (PB)
ampeg_attack=1
ampeg_vel2attack=-2

// simulate accent by delaying sustain at higher velocity (PB)
delay_cc1=0.06


// randomize like a real player(PB)
// pitch_random removed to prevent phasing (PB)
amp_random=1.5
// delay_random removed to prevent phasing (PB)



// slightly longer attack (PB)
// slightly longer release for sustain (PB)
ampeg_release=0.9

// compensate for eq boost (PB)
volume=-41.5

// boost low end (PB)
eq1_freq=685.6
eq1_gain=10.5
eq1_bw=2

// boost low end (PB)
eq2_freq=1188.8
eq2_gain=7.6
eq2_bw=2

// add vibrato - helps disguise loop points (PB)
pitchlfo_freq=4.531
pitchlfo_depth=10
pitchlfo_delay=0.2
pitchlfo_fade=2.0


fil_type=lpf_2p
cutoff=5000

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-a#3-PB-loop.wav
volume=-41

lokey=a#3
hikey=c#4
pitch_keycenter=a#3
tune=-8

// removed c#4, sounds accented (PB)

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-e4-PB-loop.wav
volume=-40.5

lokey=d4
hikey=f4
pitch_keycenter=e4
tune=-14

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-g4-PB-loop.wav
volume=-37

lokey=f#4
hikey=g#4
pitch_keycenter=g4
tune=-10

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-a#4-PB-loop.wav
volume=-38.5

lokey=a4
hikey=b4
pitch_keycenter=a#4
tune=-5

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-c#5-PB-loop.wav
volume=-35

lokey=c5
hikey=e5 // extend to replace bad sample e5 (PB)
pitch_keycenter=c#5


// removed oboe-e5-PB-loop.wav (PB)

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-g5-PB-loop.wav
volume=-36.5

lokey=f5
hikey=g#5
pitch_keycenter=g5
tune=-20

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-a#5-PB-loop.wav
volume=-41

lokey=a5
hikey=b5
pitch_keycenter=a#5
tune=-22

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-c6-PB-loop.wav
volume=-37.5

lokey=c6
hikey=a6 // extend the range (PB)
pitch_keycenter=c6
tune=-25


//==============================================================
//  Solo Oboe : Staccato
//
//   Woodwinds - Oboe Solo.sfz from Sonatina Symphonic Orchestra - http://sso.mattiaswestlund.net
//
//   modified by Paul Battersby - http://virtualplaying.com
//
//==============================================================

// ------------------------------
//  Sonatina Symphonic Orchestra
// ------------------------------
//           Oboe
// ------------------------------

<group>
// cc1 controls gain after lowering volume of all samples (PB)
gain_cc1=29
// reduce velocity tracking, use cc1 for volume (PB)
amp_veltrack=60

// fade in the staccato samples with key velocity (PB)
xfin_lovel=63
xfin_hivel=127

// manufacture staccato from sustain (PB)
offset=1171

ampeg_attack=0.03
ampeg_sustain=0
ampeg_hold=0.10
ampeg_decay=0.6
ampeg_release=0.6


// randomize like a real player(PB)
// pitch_random removed to prevent phasing (PB)
amp_random=1.5
// delay_random removed to prevent phasing (PB)



// slightly longer attack (PB)

// slightly longer release for staccato (PB)


// compensate for eq boost (PB)
volume=-41.5

// boost low end (PB)
eq1_freq=685.6
eq1_gain=10.5
eq1_bw=2

// boost low end (PB)
eq2_freq=1188.8
eq2_gain=7.6
eq2_bw=2

// add vibrato - helps disguise loop points (PB)
pitchlfo_freq=4.531
pitchlfo_depth=10
pitchlfo_delay=0.2
pitchlfo_fade=2.0


fil_type=lpf_2p
cutoff=5000

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-a#3-PB-loop.wav
// reduce accent at lower volumes (PB)
ampeg_decay=0.6

volume=-38

lokey=a#3
hikey=c#4
pitch_keycenter=a#3
tune=-8

// removed c#4, sounds accented (PB)

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-e4-PB-loop.wav
volume=-37.5

lokey=d4
hikey=f4
pitch_keycenter=e4
tune=-14

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-g4-PB-loop.wav
volume=-34

lokey=f#4
hikey=g#4
pitch_keycenter=g4
tune=-10

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-a#4-PB-loop.wav
volume=-35.5

lokey=a4
hikey=b4
pitch_keycenter=a#4
tune=-5

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-c#5-PB-loop.wav
volume=-33

lokey=c5
hikey=e5 // extend to replace bad sample e5 (PB)
pitch_keycenter=c#5


// removed oboe-e5-PB-loop.wav (PB)

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-g5-PB-loop.wav
volume=-36.5

lokey=f5
hikey=g#5
pitch_keycenter=g5
tune=-20

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-a#5-PB-loop.wav
volume=-38

lokey=a5
hikey=b5
pitch_keycenter=a#5
tune=-22

<region>
sample=..\libs\SSO\Samples\Oboe\oboe-c6-PB-loop.wav
volume=-36.5

lokey=c6
hikey=a6 // extend the range (PB)
pitch_keycenter=c6
tune=-25



