Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:user:emrum:sfz_to_h2 [2013/08/13 18:48] – adjust for python 3 emrum | wiki:user:emrum:sfz_to_h2 [2015/11/08 15:26] (current) – emrum | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| + | Unfortunately this script is NOT flexible and requires a certain SFZ custom format (as in matchstr object below). | ||
| \\ | \\ | ||
| + | \\ | ||
| + | create an SFZ file in the same directory, with name | ||
| + | \\ | ||
| + | " | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | run the script: | ||
| + | \\ | ||
| + | python sfz_to_h2.py | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | The SFZ file content format must be very close to this: | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | |||
| + | |||
| + | <code python> | ||
| + | < | ||
| + | < | ||
| + | // c3 - bass drum 1 | ||
| + | < | ||
| + | // c#3 - stick | ||
| + | < | ||
| + | // d3 - snare 1 | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | Note: hydrogen ignores midi notes (key=36) below NR. 36 (=bass drum) ! | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | Python Script: | ||
| + | \\ | ||
| + | -- | ||
| \\ | \\ | ||
