//==============================================================
// Solo Clarinet : Performance Key Switches
//
//   This is a combination of
//
//     clarinet-SOLO-PERF.sfz
//     clarinet-SOLO-PERF-staccato.sfz
//
//   ... to create a Key Switchable patch
//
//     key switch c2  = Performance
//     key switch e2  = Performance Staccato
//
//   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

//==============================================================
// Clarinet Solo : Performance
//
//   This is a combination of
//
//     clarinet-SOLO-sustain.sfz
//     clarinet-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
//
//==============================================================


//==============================================================
//  Solo Clarinet : Sustain
//
//   clarinet_vib_legsus.sfz from No Budget Orchestra - https://nobudgetorchestra.net
//
//   modified by Paul Battersby - http://virtualplaying.com
//
//==============================================================

// removed p samples - not worth it (PB)



// -------------------------- high vel ----------------------------

<group>
// sustain by default
sw_default=c2
sw_lokey=c2
sw_hikey=e2
sw_last=c2
sw_label=C2 Performance

volume=-33

// 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.05


 // slightly longer attack (PB)
// slightly longer release (PB)
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)



// use crossfade (PB)
xfin_lovel=54 xfin_hivel=104

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_F_f-PB.wav

volume=-31
offset=780
pitch_keycenter=f3 lokey=d3 hikey=f3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_G_f-PB.wav
offset=922
pitch_keycenter=g3 lokey=f#3 hikey=g3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_A_f-PB.wav
offset=1347
pitch_keycenter=a3 lokey=g#3 hikey=a3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_B_f-PB.wav
offset=1701
pitch_keycenter=b3 lokey=a#3 hikey=b3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_Db_f-PB.wav
offset=408
pitch_keycenter=c#4 lokey=c4 hikey=d4

// removed 4_Eb_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_F_f-PB.wav
offset=1808
pitch_keycenter=f4 lokey=d#4 hikey=g4

// removed 4_G_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_A_f-PB-loop.wav
offset=833
pitch_keycenter=a4 lokey=g#4 hikey=c#5

// removed 4_B_f (PB)
// removed 5_Db_f (PB)
// removed 5_Eb_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_F_f-PB.wav
offset=3208
pitch_keycenter=f5 lokey=d5 hikey=f5

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_G_f-PB.wav
offset=1842
pitch_keycenter=g5 lokey=f#5 hikey=g5

// removed 5_A_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_B_f-PB.wav
offset=2605
pitch_keycenter=b5 lokey=g#5 hikey=c6

// removed 6_Db_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_Eb_f-PB.wav
offset=2036
pitch_keycenter=d#6 lokey=c#6 hikey=a#6

// removed 6_F_f (PB)
// removed 6_G_f (PB)
// removed release samples - not worth it (PB)

// -------------------------- low vel ----------------------------

<group>
// sustain by default
sw_default=c2
sw_lokey=c2
sw_hikey=e2
sw_last=c2
sw_label=C2 Performance

volume=-33

// 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.05


 // slightly longer attack (PB)
// slightly longer release (PB)
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)



// use crossfade (PB)
xfout_lovel=54 xfout_hivel=104

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_F_mf-PB.wav

volume=-31
offset=673
pitch_keycenter=f3 lokey=d3 hikey=f3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_G_mf-PB.wav
offset=532
pitch_keycenter=g3 lokey=f#3 hikey=g3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_A_mf-PB-loop.wav
offset=1063
pitch_keycenter=a3 lokey=g#3 hikey=a3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_B_mf-PB-loop.wav
offset=744
pitch_keycenter=b3 lokey=a#3 hikey=c4

// removed 4_Db_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_Eb_mf-PB.wav
offset=1046
pitch_keycenter=d#4 lokey=c#4 hikey=d#4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_F_mf-PB.wav
offset=620
pitch_keycenter=f4 lokey=e4 hikey=f4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_G_mf-PB.wav
offset=691
pitch_keycenter=g4 lokey=f#4 hikey=g4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_A_mf-PB.wav
offset=868
pitch_keycenter=a4 lokey=g#4 hikey=a4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_B_mf-PB.wav
offset=1365
pitch_keycenter=b4 lokey=a#4 hikey=b4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_Db_mf-PB.wav
offset=0
pitch_keycenter=c#5 lokey=c5 hikey=d#5

// removed 5_Eb_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_F_mf-PB.wav
offset=1187
pitch_keycenter=f5 lokey=e5 hikey=g5

// removed 5_G_mf (PB)
// removed 5_A_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_B_mf-PB.wav
offset=868
pitch_keycenter=b5 lokey=g#5 hikey=b5

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_Db_mf-PB.wav
offset=1046
pitch_keycenter=c#6 lokey=c6 hikey=c#6

// removed 6_Eb_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_F_mf-PB.wav
offset=656
pitch_keycenter=f6 lokey=d6 hikey=f6

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_G_mf-PB.wav
offset=1208
pitch_keycenter=g6 lokey=f#6 hikey=a#6


//==============================================================
//  Solo Clarinet : Staccato
//
//   clarinet_vib_legsus.sfz from No Budget Orchestra - https://nobudgetorchestra.net
//
//   modified by Paul Battersby - http://virtualplaying.com
//
//==============================================================

// removed p samples - not worth it (PB)



// -------------------------- high vel ----------------------------

<group>
// sustain by default
sw_default=c2
sw_lokey=c2
sw_hikey=e2
sw_last=c2
sw_label=C2 Performance

volume=-35

// 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

// create staccato from sustain (PB)
ampeg_attack=0.03
ampeg_sustain=0
ampeg_hold=0.15
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)



// use crossfade (PB)
xfin_lovel=54 xfin_hivel=104

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_F_f-PB.wav


volume=-33
volume=-31
offset=3000
pitch_keycenter=f3 lokey=d3 hikey=f3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_G_f-PB.wav
offset=3000
pitch_keycenter=g3 lokey=f#3 hikey=g3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_A_f-PB.wav

volume=-34
offset=3000
pitch_keycenter=a3 lokey=g#3 hikey=a3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_B_f-PB.wav

volume=-34
offset=3000
pitch_keycenter=b3 lokey=a#3 hikey=b3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_Db_f-PB.wav

volume=-34
offset=3000
pitch_keycenter=c#4 lokey=c4 hikey=d4

// removed 4_Eb_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_F_f-PB.wav

volume=-32
offset=3000
pitch_keycenter=f4 lokey=d#4 hikey=g4

// removed 4_G_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_A_f-PB-loop.wav
offset=3000
pitch_keycenter=a4 lokey=g#4 hikey=c#5

// removed 4_B_f (PB)
// removed 5_Db_f (PB)
// removed 5_Eb_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_F_f-PB.wav

volume=-32
offset=3000
pitch_keycenter=f5 lokey=d5 hikey=f5

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_G_f-PB.wav
offset=3000
pitch_keycenter=g5 lokey=f#5 hikey=g5

// removed 5_A_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_B_f-PB.wav
offset=3000
pitch_keycenter=b5 lokey=g#5 hikey=c6

// removed 6_Db_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_Eb_f-PB.wav

volume=-30
offset=3000
pitch_keycenter=d#6 lokey=c#6 hikey=a#6

// removed 6_F_f (PB)
// removed 6_G_f (PB)
// removed release samples - not worth it (PB)

// -------------------------- low vel ----------------------------

<group>
// sustain by default
sw_default=c2
sw_lokey=c2
sw_hikey=e2
sw_last=c2
sw_label=C2 Performance

volume=-35

// 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

// create staccato from sustain (PB)
ampeg_attack=0.03
ampeg_sustain=0
ampeg_hold=0.15
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)



// use crossfade (PB)
xfout_lovel=54 xfout_hivel=104

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_F_mf-PB.wav

volume=-33
offset=3000
pitch_keycenter=f3 lokey=d3 hikey=f3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_G_mf-PB.wav
offset=3000
pitch_keycenter=g3 lokey=f#3 hikey=g3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_A_mf-PB-loop.wav
offset=3000
pitch_keycenter=a3 lokey=g#3 hikey=a3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_B_mf-PB-loop.wav
offset=3000
pitch_keycenter=b3 lokey=a#3 hikey=c4

// removed 4_Db_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_Eb_mf-PB.wav
offset=3000
pitch_keycenter=d#4 lokey=c#4 hikey=d#4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_F_mf-PB.wav
offset=3000
pitch_keycenter=f4 lokey=e4 hikey=f4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_G_mf-PB.wav
offset=3000
pitch_keycenter=g4 lokey=f#4 hikey=g4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_A_mf-PB.wav
offset=3000
pitch_keycenter=a4 lokey=g#4 hikey=a4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_B_mf-PB.wav
offset=3000
pitch_keycenter=b4 lokey=a#4 hikey=b4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_Db_mf-PB.wav
offset=3000
pitch_keycenter=c#5 lokey=c5 hikey=d#5

// removed 5_Eb_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_F_mf-PB.wav
offset=3000
pitch_keycenter=f5 lokey=e5 hikey=g5

// removed 5_G_mf (PB)
// removed 5_A_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_B_mf-PB.wav
offset=3000
pitch_keycenter=b5 lokey=g#5 hikey=b5

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_Db_mf-PB.wav
offset=3000
pitch_keycenter=c#6 lokey=c6 hikey=c#6

// removed 6_Eb_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_F_mf-PB.wav
offset=3000
pitch_keycenter=f6 lokey=d6 hikey=f6

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_G_mf-PB.wav
offset=3000
pitch_keycenter=g6 lokey=f#6 hikey=a#6




//==============================================================
// Clarinet Solo : Performance Staccato
//
// ... where the mod wheel increases the volume
//
//   by Paul Battersby - http://virtualplaying.com
//
//==============================================================


//==============================================================
//  Solo Clarinet : Staccato
//
//   clarinet_vib_legsus.sfz from No Budget Orchestra - https://nobudgetorchestra.net
//
//   modified by Paul Battersby - http://virtualplaying.com
//
//==============================================================

// removed p samples - not worth it (PB)



// -------------------------- high vel ----------------------------

<group>
// sustain by default
sw_default=c2
sw_lokey=c2
sw_hikey=e2
sw_last=e2
sw_label=E2 Staccato

volume=-35

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


// create staccato from sustain (PB)
ampeg_attack=0.03
ampeg_sustain=0
ampeg_hold=0.15
ampeg_decay=0.6
ampeg_release=0.6




// randomize like a real player(PB)
pitch_random=12
amp_random=1.5
delay_random=0.012



// use crossfade (PB)
xfin_lovel=54 xfin_hivel=104

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_F_f-PB.wav


volume=-33
volume=-31
offset=3000
pitch_keycenter=f3 lokey=d3 hikey=f3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_G_f-PB.wav
offset=3000
pitch_keycenter=g3 lokey=f#3 hikey=g3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_A_f-PB.wav

volume=-34
offset=3000
pitch_keycenter=a3 lokey=g#3 hikey=a3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_B_f-PB.wav

volume=-34
offset=3000
pitch_keycenter=b3 lokey=a#3 hikey=b3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_Db_f-PB.wav

volume=-34
offset=3000
pitch_keycenter=c#4 lokey=c4 hikey=d4

// removed 4_Eb_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_F_f-PB.wav

volume=-32
offset=3000
pitch_keycenter=f4 lokey=d#4 hikey=g4

// removed 4_G_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_A_f-PB-loop.wav
offset=3000
pitch_keycenter=a4 lokey=g#4 hikey=c#5

// removed 4_B_f (PB)
// removed 5_Db_f (PB)
// removed 5_Eb_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_F_f-PB.wav

volume=-32
offset=3000
pitch_keycenter=f5 lokey=d5 hikey=f5

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_G_f-PB.wav
offset=3000
pitch_keycenter=g5 lokey=f#5 hikey=g5

// removed 5_A_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_B_f-PB.wav
offset=3000
pitch_keycenter=b5 lokey=g#5 hikey=c6

// removed 6_Db_f (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_Eb_f-PB.wav

volume=-30
offset=3000
pitch_keycenter=d#6 lokey=c#6 hikey=a#6

// removed 6_F_f (PB)
// removed 6_G_f (PB)
// removed release samples - not worth it (PB)

// -------------------------- low vel ----------------------------

<group>
// sustain by default
sw_default=c2
sw_lokey=c2
sw_hikey=e2
sw_last=e2
sw_label=E2 Staccato

volume=-35

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


// create staccato from sustain (PB)
ampeg_attack=0.03
ampeg_sustain=0
ampeg_hold=0.15
ampeg_decay=0.6
ampeg_release=0.6




// randomize like a real player(PB)
pitch_random=12
amp_random=1.5
delay_random=0.012



// use crossfade (PB)
xfout_lovel=54 xfout_hivel=104

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_F_mf-PB.wav

volume=-33
offset=3000
pitch_keycenter=f3 lokey=d3 hikey=f3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_G_mf-PB.wav
offset=3000
pitch_keycenter=g3 lokey=f#3 hikey=g3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_A_mf-PB-loop.wav
offset=3000
pitch_keycenter=a3 lokey=g#3 hikey=a3

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\3_B_mf-PB-loop.wav
offset=3000
pitch_keycenter=b3 lokey=a#3 hikey=c4

// removed 4_Db_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_Eb_mf-PB.wav
offset=3000
pitch_keycenter=d#4 lokey=c#4 hikey=d#4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_F_mf-PB.wav
offset=3000
pitch_keycenter=f4 lokey=e4 hikey=f4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_G_mf-PB.wav
offset=3000
pitch_keycenter=g4 lokey=f#4 hikey=g4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_A_mf-PB.wav
offset=3000
pitch_keycenter=a4 lokey=g#4 hikey=a4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\4_B_mf-PB.wav
offset=3000
pitch_keycenter=b4 lokey=a#4 hikey=b4

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_Db_mf-PB.wav
offset=3000
pitch_keycenter=c#5 lokey=c5 hikey=d#5

// removed 5_Eb_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_F_mf-PB.wav
offset=3000
pitch_keycenter=f5 lokey=e5 hikey=g5

// removed 5_G_mf (PB)
// removed 5_A_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\5_B_mf-PB.wav
offset=3000
pitch_keycenter=b5 lokey=g#5 hikey=b5

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_Db_mf-PB.wav
offset=3000
pitch_keycenter=c#6 lokey=c6 hikey=c#6

// removed 6_Eb_mf (PB)

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_F_mf-PB.wav
offset=3000
pitch_keycenter=f6 lokey=d6 hikey=f6

<region>
sample=..\libs\NoBudgetOrch\SoloClarinet\Sustain\6_G_mf-PB.wav
offset=3000
pitch_keycenter=g6 lokey=f#6 hikey=a#6




