-
Notifications
You must be signed in to change notification settings - Fork 1
/
sfzCreator_script_vibraph_bow.py
48 lines (31 loc) · 1.38 KB
/
sfzCreator_script_vibraph_bow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script that uses the SFZ Creator Class to create an sfz from a folder containing samples
Created on Sat Nov 28 13:31:09 2020
@author: luiz
"""
from sfzCreatorClass import sfz_creator
# Test (delete all this after testing):
#fp = '/media/luiz/Volume/Downloads/SoundFonts/SteinwayD274/Samples/Bright'
fp = '/media/luiz/Volume/Dokumente/Musik/Projekte/SoundFonts/University of Iowa/Percussion/Vibraphone/bow'
sfz1 = sfz_creator([], '/media/luiz/Volume/Dokumente/Musik/Projekte/SoundFonts/Uniowa Vibraphone bow.sfz')
#v1 = 127
#sfz1.VelMap = {'v2': v2, 'v3': v3}
#sfz1.getSamplesFromFolder(fp, pmidi = 'C(\d+)')
#sfz1.getSamplesFromFolder(fp, pitch = '_([A-G]#?\d)_', vel='_([a-z]+)_')
sfz1.getSamplesFromFolder(fp, pitch = '.([A-G]b?\d).')
#sfz1.getSamplesFromFolder(fp, pmidi = 'p(\d+)', vel='_(v\d)')
sfz1.autoSpreadKeys('higher')
#sfz1.autoSpreadVelocities('lower')
sfz1.setForAll('Ampeg_release', 8.0)
#sfz1.setForAll('Cutoff', 200)
#sfz1.setForAllIf('Cutoff', 700, 'Vel', '==', v2)
#sfz1.setForAllIf('Cutoff', 200, 'Vel', '==', v3)
# sfz1.setForAllIf('Volume', 1, 'Vel', '==', v1)
# sfz1.setForAllIf('Volume', 2, 'Vel', '==', v2)
# sfz1.setForAllIf('Volume', 5, 'Vel', '==', v3)
#sfz1.setForAllIf('Amp_veltrack', 94, 'Vel', '==', v1)
#sfz1.setForAllIf('Amp_veltrack', 96, 'Vel', '==', v2)
#sfz1.setForAll('Fil_veltrack', 8000)
sfz1.genSfz()