|
Deluge Firmware
|
#include <AudioEngine.h>#include <AudioFileManager.h>#include <Cluster.h>#include <sound.h>#include "voice.h"#include "definitions.h"#include "FilterSet.h"#include "functions.h"#include "FilterSetConfig.h"#include "song.h"#include "TimeStretcher.h"#include "Sample.h"#include <string.h>#include <WaveformRenderer.h>#include "playbackhandler.h"#include "WaveTable.h"#include "GeneralMemoryAllocator.h"#include "MultisampleRange.h"#include "storagemanager.h"#include "SampleCache.h"#include "VoiceSample.h"#include "LivePitchShifter.h"#include <new>#include "arm_neon.h"#include "lookuptables.h"#include "uart.h"#include "ModelStack.h"#include "SampleHolderForVoice.h"#include "renderWave.h"#include "ParamSet.h"#include "PatchCableSet.h"#include "InstrumentClip.h"#include "FlashStorage.h"#include "ssi_all_cpus.h"#include "mtu.h"#include "uart_all_cpus.h"
Macros | |
| #define | fmVectorLoopComponent(i) |
Functions | |
| int32_t spareRenderingBuffer[3][SSI_TX_BUFFER_NUM_SAMPLES] | __attribute__ ((aligned(CACHE_LINE_SIZE))) |
| int32_t | doFMNew (uint32_t carrierPhase, uint32_t phaseShift) |
| int32x4_t | getSineVector (uint32_t *thisPhase, uint32_t phaseIncrement) |
| int32x4_t | doFMVector (uint32x4_t phaseVector, uint32x4_t phaseShift) |
| CREATE_WAVE_RENDER_FUNCTION_INSTANCE (renderWave, waveRenderingFunctionGeneral) | |
| CREATE_WAVE_RENDER_FUNCTION_INSTANCE (renderPulseWave, waveRenderingFunctionPulse) | |
| uint32_t | renderCrudeSawWaveWithAmplitude (int32_t *thisSample, int32_t *bufferEnd, uint32_t phaseNowNow, uint32_t phaseIncrementNow, int32_t amplitudeNow, int32_t amplitudeIncrement, int numSamples) |
| uint32_t | renderCrudeSawWaveWithoutAmplitude (int32_t *thisSample, int32_t *bufferEnd, uint32_t phaseNowNow, uint32_t phaseIncrementNow, int numSamples) |
| void | renderPDWave (const int16_t *table, const int16_t *secondTable, int numBitsInTableSize, int numBitsInSecondTableSize, int32_t amplitude, int32_t *thisSample, int32_t *bufferEnd, int numSamplesRemaining, uint32_t phaseIncrementNow, uint32_t *thisPhase, bool applyAmplitude, bool doOscSync, uint32_t resetterPhase, uint32_t resetterPhaseIncrement, uint32_t resetterHalfPhaseIncrement, uint32_t resetterLower, int32_t resetterDivideByPhaseIncrement, uint32_t pulseWidth, uint32_t phaseToAdd, uint32_t retriggerPhase, uint32_t horizontalOffsetThing, int32_t amplitudeIncrement, int32_t(*waveValueFunction)(const int16_t *, int, uint32_t, uint32_t, uint32_t)) |
| void | getTableNumber (uint32_t phaseIncrementForCalculations, int *tableNumber, int *tableSize) |
| __attribute__ ((optimize("unroll-loops"))) void Voice | |
Variables | |
| const PatchableInfo | patchableInfoForVoice |
| uint32_t | lastSoundOrder = 0 |
| const int16_t * | sawTables [] = {NULL, NULL, NULL, NULL, NULL, NULL, sawWave215, sawWave153, sawWave109, sawWave76, sawWave53, sawWave39, sawWave27, sawWave19, sawWave13, sawWave9, sawWave7, sawWave5, sawWave3, sawWave1} |
| const int16_t * | squareTables [] = {NULL, NULL, NULL, NULL, NULL, NULL, squareWave215, squareWave153, squareWave109, squareWave76, squareWave53, squareWave39, squareWave27, squareWave19, squareWave13, squareWave9, squareWave7, squareWave5, squareWave3, squareWave1} |
| const int16_t * | analogSquareTables [] |
| const int16_t * | analogSawTables [] |
| #define fmVectorLoopComponent | ( | i | ) |
| int32_t spareRenderingBuffer[3][SSI_TX_BUFFER_NUM_SAMPLES] __attribute__ | ( | (aligned(CACHE_LINE_SIZE)) | ) |
| __attribute__ | ( | (optimize("unroll-loops")) | ) |
| CREATE_WAVE_RENDER_FUNCTION_INSTANCE | ( | renderPulseWave | , |
| waveRenderingFunctionPulse | |||
| ) |
| CREATE_WAVE_RENDER_FUNCTION_INSTANCE | ( | renderWave | , |
| waveRenderingFunctionGeneral | |||
| ) |
| int32_t doFMNew | ( | uint32_t | carrierPhase, |
| uint32_t | phaseShift | ||
| ) |
|
inline |
|
inline |
| void getTableNumber | ( | uint32_t | phaseIncrementForCalculations, |
| int * | tableNumber, | ||
| int * | tableSize | ||
| ) |
| uint32_t renderCrudeSawWaveWithAmplitude | ( | int32_t * | thisSample, |
| int32_t * | bufferEnd, | ||
| uint32_t | phaseNowNow, | ||
| uint32_t | phaseIncrementNow, | ||
| int32_t | amplitudeNow, | ||
| int32_t | amplitudeIncrement, | ||
| int | numSamples | ||
| ) |
| uint32_t renderCrudeSawWaveWithoutAmplitude | ( | int32_t * | thisSample, |
| int32_t * | bufferEnd, | ||
| uint32_t | phaseNowNow, | ||
| uint32_t | phaseIncrementNow, | ||
| int | numSamples | ||
| ) |
| void renderPDWave | ( | const int16_t * | table, |
| const int16_t * | secondTable, | ||
| int | numBitsInTableSize, | ||
| int | numBitsInSecondTableSize, | ||
| int32_t | amplitude, | ||
| int32_t * | thisSample, | ||
| int32_t * | bufferEnd, | ||
| int | numSamplesRemaining, | ||
| uint32_t | phaseIncrementNow, | ||
| uint32_t * | thisPhase, | ||
| bool | applyAmplitude, | ||
| bool | doOscSync, | ||
| uint32_t | resetterPhase, | ||
| uint32_t | resetterPhaseIncrement, | ||
| uint32_t | resetterHalfPhaseIncrement, | ||
| uint32_t | resetterLower, | ||
| int32_t | resetterDivideByPhaseIncrement, | ||
| uint32_t | pulseWidth, | ||
| uint32_t | phaseToAdd, | ||
| uint32_t | retriggerPhase, | ||
| uint32_t | horizontalOffsetThing, | ||
| int32_t | amplitudeIncrement, | ||
| int32_t(*)(const int16_t *, int, uint32_t, uint32_t, uint32_t) | waveValueFunction | ||
| ) |
| const int16_t* analogSawTables[] |
| const int16_t* analogSquareTables[] |
| uint32_t lastSoundOrder = 0 |
| const PatchableInfo patchableInfoForVoice |
| const int16_t* sawTables[] = {NULL, NULL, NULL, NULL, NULL, NULL, sawWave215, sawWave153, sawWave109, sawWave76, sawWave53, sawWave39, sawWave27, sawWave19, sawWave13, sawWave9, sawWave7, sawWave5, sawWave3, sawWave1} |
| const int16_t* squareTables[] = {NULL, NULL, NULL, NULL, NULL, NULL, squareWave215, squareWave153, squareWave109, squareWave76, squareWave53, squareWave39, squareWave27, squareWave19, squareWave13, squareWave9, squareWave7, squareWave5, squareWave3, squareWave1} |