Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atsushieno/sf2xrni
Converts SoundFont sf2 file to Renoise XRNI files
https://github.com/atsushieno/sf2xrni
c-sharp instrument music renoise soundfont
Last synced: about 2 months ago
JSON representation
Converts SoundFont sf2 file to Renoise XRNI files
- Host: GitHub
- URL: https://github.com/atsushieno/sf2xrni
- Owner: atsushieno
- Created: 2010-03-08T18:06:47.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T05:56:29.000Z (over 6 years ago)
- Last Synced: 2024-05-02T00:33:39.075Z (8 months ago)
- Topics: c-sharp, instrument, music, renoise, soundfont
- Language: C#
- Homepage:
- Size: 949 KB
- Stars: 34
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
* What is this?
sf2xrni is a Renoise tool for creating XRNI (instrument) files from a
SoundFont sf2 file.* Usage
$ (mono) sf2xrni(.exe) sf2-files
For mono, you'll need mono 2.8 or later.
When you run the tool, a directory is created to contain a set of
XRNI files. e.g. for file "foo.sf2" it will create directory "foo".* Conversion Basics
A soundfont file contains more than one Presets.
A Preset is mapped to an XRN Instrument.
A SF2 Preset contains more than one Instruments.
An Instrument contains more than one Zones, and each Zone contains
a SampleHeader, which is a set of information to retrieve raw sample.BaseNote is set from OverridingRootKey, or OriginalPitch.
LoopMode is set from SampleModes.
LoopStart/LoopEnd are set from those in SampleHeader.Resulting samples are sorted in KeyRange order and bound to SplitMap.
* Dependencies
sf2xrni uses a couple of libraries:
- NRenoiseTools, to write XRNI files.
http://www.codeplex.com/nrenoisetools
- NAudio, which contains SoundFont2 file format support.
http://naudio.codeplex.com/
- ICSharpCode.SharpZipLib. It is just NRenoiseTools dependency
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspxThe prebuilt assemblies are in the repo. Note that I didn't copy NAudio.dll
from NRenoiseTools release binaries since 0.1.3. It is because the NAudio
version in NRenoiseTools misses some required bits used by sf2xrni. I have
imported it from NAudio project itself.