Why so many libraries needed for the Wav Trigger

In/on my ongoing project I had been using the MP3 Trigger, a 4x20 LCD, 16 LEDs (activity scanner) and an Arduino Mega.

The WAV Trigger, so I have read, requires wavTrigger, AltSoftSerial, and Metro libraries. From the "Readme" notes for the Trigger we/I are to comment out the serial ports I want to exclude because they are not going to be called in the sketch.

When I tried to replace "Serial3" text with "wavTrigger" and tried "wTrig" in the " do while" statement the verify returns errors

All components light up and the LEDs are showing data flow, the Mega passes event notifications to the LCD, but the wavTrigger shows nothing

In my MP3 sketch has: void setup() Serial3.Begin(38400);

In the Wav sketch is wTrig.start //starting the wtrigger @ 57600

But I can use wTrig as a sudo Serial3 because the verify returns errors


My question: how can I point the wav Trigger library to Serial(n) 3, in this case?


Each subroutine is this, with variations:


if (redque > EVENTLEVEL421a && redque < EVENTLEVEL421b )

{
Serial3.write('t');
Serial3.write(48);

EVENTAUDIT421 = EVENTAUDIT421 + 1;

lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Temperature is: 78");
// lcd.setCursor(0, 1);
// lcd.print("x3");
// ("00000000000000000000"

lcd.setCursor(15, 3);
lcd.print(EVENTAUDIT421); // Repeated temperature level

while(!Serial3);

{
;
}
delay(voicEpause);

yellowque = 0;
redque = 0;

}

Please read this:-
How to use this forum
Because your post is breaking the rules about posting code.

It is also necessary to post all your code because the error is often in the bit you don't post.

In order to find why you are getting errors we need to be able to run the code in our own IDE and this is easy if you post your code correctly.
Also please include a link to any non standard libraries used.

I got it to work. Oddly, I heard the joke this morning, the old joke, about how many programmers does it take to change a light bulb. The answers is, none. It is a hardware problem.

I toggled the button on the Wav Trigger and nothing could be heard and the red LED did not strobe during play.

I returned to the well and downloaded the sample wavs and put them on the SD and the toggle produced sound and the LED strobed. I checked the bit rate and my WAVs were at 48khz instead of the 44.1khz

Spent the last 30 mins changing bit rates and that is that. The cross #includes between libraries had me a little vexed over the last few weeks. Spent time this week at the Kahn Academy online for boning up on coding I may have forgotten. The classes and, Jake's joke about the bulb did it. I will buy him lunch

I thank you's guys for tolerating my dundering. Thanks again

-Kevin

Glad you got it working.

How does Bill Gates change a light bulb?

He doesn't he just declares dark as the new standard.