Maybe HAL problem with ESP32-LyraT #15
Replies: 8 comments 4 replies
-
You might need to adjust the limit. I think it is something like:
Or you can just comment out |
Beta Was this translation helpful? Give feedback.
-
I think if you set the log level to debug you should see the values that you receive... |
Beta Was this translation helpful? Give feedback.
-
What sketch are you using ? If the keys are defined in the sketch you might need to indicate that you have touch buttons |
Beta Was this translation helpful? Give feedback.
-
Where are the PIN_KEYs defined? |
Beta Was this translation helpful? Give feedback.
-
ActiveTouch is part of AudioActions::ActiveLogic: The keys themselfs are defined in By the way here is the link to the Class Documentation that you can also find in the Readme... ps. don't forget to change the log level to Warning to get perfect audio |
Beta Was this translation helpful? Give feedback.
-
Hi Phil, The AudioActions doc didn't explain ActiveTouch but I tried a few variations with no success. Went back to the original and it sort of works.... sometimes. I noticed that board_def.h has For future readers, Phil's suggestion to change the log level to Warning does make a BIG difference o audio quality. |
Beta Was this translation helpful? Give feedback.
-
OK, I have BLE MIDI working. At least I can send MIDI messages from a simple phone app and see them being received correctly (Serial.print...). But I am still getting wacky sounds from the LyraT Board. Low notes just crackly and only a few high notes play. I've attached my code. I just crudely cut and pasted a couple of examples together. I'm sure there are more elegant ways to do this but since this half works I'm confused. ``/** */ #include <Midi.h> MidiCallbackAction action; AudioKitStream kit; void actionKeyOn(bool active, int pin, void* ptr) { void actionKeyOff(bool active, int pin, void* ptr) { // We want to play some notes on the AudioKit keys kit.audioActions().add(PIN_KEY1, actionKeyOn, actionKeyOff, act_low, &(note[0])); // C3 //kit.audioActions().setTouchLimit(1); void onNoteOn(uint8_t channel, uint8_t note, uint8_t velocity) { void onNoteOff(uint8_t channel, uint8_t note, uint8_t velocity) { void setup() { // Setup output // Setup sound generation based on AudioKit settins // activate keys // BLE MIDI action.setCallbacks(onNoteOn, onNoteOff); } // copy the data |
Beta Was this translation helpful? Give feedback.
-
If you look at your LyraT board, you can see that the first 2 buttons are regular ones and the play, sel, vol- and vol+ are Touch buttons. kit.audioActions().add(PIN_KEY1, actionKeyOn, actionKeyOff, AudioActions::ActiveLow;, &(note[0])); // C3 I assume that your midi is not working because of the enterfering buttons: just comment out the // kit.processActions(); to make sure that this is not the case |
Beta Was this translation helpful? Give feedback.
-
I'm trying to setup Arduino IDE, AudioKit and AudioTools for a LyraT V4.3.
I can compile successfully, upload and run some basic examples. However it looks to me as though the touch sensors are not being read correctly (repetitive random activations and non-activations of touched buttons). It also seems that the headphone jack switch is not being acted on (but speakers work).
I did the AudioKitSettings mod (#define AUDIOKIT_BOARD 1). Maybe there is more I need to do?
Beta Was this translation helpful? Give feedback.
All reactions