Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:user:emrum:sfz_to_h2 [2013/08/13 20:48] – adjust for python 3 emrumwiki:user:emrum:sfz_to_h2 [2015/11/08 16: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 
 +\\
 +"drumkit.sfz"
 +\\
 +\\
 +
 +run the script:
 +\\
 +python sfz_to_h2.py
 +\\
 +\\
 +
 +
 +The SFZ file content format must be very close to this:
 +\\
 +\\
 +
 +
 +
 +<code python>
 +<region>  key=34  offset=0  lovel=0  hivel=127  sample=ogg/beats_01-34.oga
 +<region>  key=35  offset=0  lovel=0  hivel=127  sample=ogg/beats_06-50.oga
 +// c3 - bass drum 1
 +<region>  key=36  offset=0  lovel=0  hivel=127  sample=ogg/beats_06-38.oga
 +// c#3 - stick
 +<region>  key=37  offset=0  lovel=0  hivel=127  sample=ogg/beats_09-12.oga
 +// d3 - snare 1
 +<region>  key=38  offset=0  lovel=0  hivel=127  sample=ogg/beats_01-21.oga
 +</code>
 +
 +
 +
 +\\
 +\\
 +Note: hydrogen ignores midi notes (key=36) below NR. 36 (=bass drum) ! 
 +\\
 +\\
 +\\
 +Python Script:
 +\\
 +--
 \\ \\
  
wiki/user/emrum/sfz_to_h2.1376419717.txt.gz · Last modified: 2013/08/13 20:48 by emrum