Faust produce cuts in sound #1103
Replies: 4 comments 6 replies
-
I don't quite understand your problem: Why don't you use just the original example and adapt it to your requirements.... |
Beta Was this translation helpful? Give feedback.
-
You could try the Delay effect. STK has also a couple of implementations and I am pretty sure that Faust has also some... |
Beta Was this translation helpful? Give feedback.
-
Did you try the ones from the documentation ? |
Beta Was this translation helpful? Give feedback.
-
Yes: the is a link in the documentaion |
Beta Was this translation helpful? Give feedback.
-
hello, i want to add reverb effect on the sound coming from line input for this i use your guitarx example not it produce cut in sound at output (i also allocate psram). please help.
here my code is:
#include "AudioTools.h"
#include "AudioLibs/AudioKit.h"
#include "AudioLibs/AudioFaust.h"
#include "guitarix.h"
#include "esp_heap_caps.h"
AudioKitStream kit;
FaustStream faust(kit); // final output of Faust is kit
StreamCopy copier(faust, kit); // copy data from kit to faust
// Arduino Setup
void setup(void) {
// Open Serial
const int limit = 1000000;
heap_caps_malloc_extmem_enable(limit);
Serial.begin(115200);
AudioLogger::instance().begin(Serial, AudioLogger::Warning);
if(psramInit()){
Serial.println("\nThe PSRAM is correctly initialized");
}else{
Serial.println("\nPSRAM does not work");
}
// Setup Faust
auto cfg = faust.defaultConfig();
faust.begin(cfg);
// Tube Screemer
faust.setLabelValue("drive", 0.23);
faust.setLabelValue("level", -12.6);
faust.setLabelValue("tone", 489);
// preamp
faust.setLabelValue("Pregain", 0.4);
faust.setLabelValue("Gain", 0.4);
//jcm 2000
faust.setLabelValue("Treble", 0.9);
faust.setLabelValue("Middle", 0.76);
faust.setLabelValue("Bass", 0.62);
//Cabinet
faust.setLabelValue("amount", 100);
// start I2S
auto cfg_i2s = kit.defaultConfig(RXTX_MODE);
cfg_i2s.sample_rate = cfg.sample_rate;
cfg_i2s.channels = cfg.channels;
cfg_i2s.bits_per_sample = cfg.bits_per_sample;
cfg_i2s.input_device = AUDIO_HAL_ADC_INPUT_LINE2;
kit.begin(cfg_i2s);
}
// Arduino loop - copy sound to kit
void loop() {
copier.copy();
}
Beta Was this translation helpful? Give feedback.
All reactions