AudioSampleProcessor
An AudioSampleProcessor
object is a reference to a HISE module that can load audio files (eg. the Audio Loop Player
or the Convolution Reverb
). The associated project folder is AudioFiles
.
There are API calls that can load different audio files from the AudioFilePool
, change the range within the audio file.
Normally you create an object of this type using Synth.getAudioSampleProcessor()
and then call one of its methods.
Class methods
exists
Checks if the Object exists and prints a error message on the console if not. Edit on GitHub
AudioSampleProcessor.exists()
getAttribute
Returns the attribute with the given index. Edit on GitHub
AudioSampleProcessor.getAttribute(int index)
getAttributeId
Returns the attribute with the given index. Edit on GitHub
AudioSampleProcessor.getAttributeId(int index)
getAttributeIndex
Returns the index of the attribute with the given ID. Edit on GitHub
AudioSampleProcessor.getAttributeIndex(String id)
getAudioFile
Creates a ScriptAudioFile reference to the given index. Edit on GitHub
AudioSampleProcessor.getAudioFile(int slotIndex)
getFilename
Returns the filename (including wildcard) for the currently loaded file. Edit on GitHub
AudioSampleProcessor.getFilename()
getNumAttributes
Returns the number of attributes. Edit on GitHub
AudioSampleProcessor.getNumAttributes()
getSampleLength
Returns the length of the current sample selection in samples. Edit on GitHub
AudioSampleProcessor.getSampleLength()
getSampleStart
Returns the samplerange in the form [start, end]. Edit on GitHub
AudioSampleProcessor.getSampleStart()
isBypassed
Checks if the audio sample player is bypassed. Edit on GitHub
AudioSampleProcessor.isBypassed()
setAttribute
Changes one of the Parameter. Look in the manual for the index numbers of each effect. Edit on GitHub
AudioSampleProcessor.setAttribute(int parameterIndex, float newValue)
setBypassed
Bypasses the audio sample player. Edit on GitHub
AudioSampleProcessor.setBypassed(bool shouldBeBypassed)
setFile
loads the file. You can use the wildcard {PROJECT_FOLDER} to get the audio file folder for the current project. Edit on GitHub
AudioSampleProcessor.setFile(String fileName)
setSampleRange
Sets the length of the current sample selection in samples. Edit on GitHub
AudioSampleProcessor.setSampleRange(int startSample, int endSample)