Public Types | Public Member Functions | List of all members
SfzImporter Class Reference

Handles the importing of SFZ sample files. More...

Public Types

enum  Opcode {
  sample = 0, lokey, hikey, lovel,
  hivel, offset, end, loop_mode,
  loopstart, loopend, tune, pitch_keycenter,
  volume, group_volume, pan
}
 All supported opcodes. More...
 

Public Member Functions

void importSfzFile ()
 imports a SFZ file into the given ModulatorSampler. More...
 

Detailed Description

Handles the importing of SFZ sample files.

Member Enumeration Documentation

enum Opcode

All supported opcodes.

This is far from being complete, but it tries to fetch everything that a ModulatorSamplerSound::Property can handle.

Enumerator
sample 

the sample file name (absolute)

lokey 

the lowest key

hikey 

the highest key

lovel 

the lowest velocity

hivel 

the highest velocity

offset 

the sample start

end 

the sample end

loop_mode 

the loop mode (it will only support yes / no)

loopstart 

the loop start

loopend 

the loop end

tune 

the fine tune

pitch_keycenter 

the coarse tune

volume 

the volume

group_volume 

the group volume (will be consolidated for every sample with the 'volume' opcode

pan 

the balance

Member Function Documentation

void importSfzFile ( )

imports a SFZ file into the given ModulatorSampler.

It will parse the file with all supported opcodes and replace the SampleMap of the ModulatorSampler with the data from the SFZ file.

If multiple groups are found, there will be a dialog box to consolidate groups or ignore them as round robin groups of the ModulatorSampler.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.