![]() I might not get everything right so please tell me if you have any questions or if something doesn't work. I typed it out anyway since a lot of people asked ![]() ![]() Thanks for your time and sorry for rambling. I just hope someone will be willing to give me a gentle nudge towards getting this specific idea to work and those who dislike my laziness will move on and just ignore me. If I frustrated or upset you with this post I'm sorry, I am being lazy I'll admit it. If it turns out I enjoyed the flexibility or found it easy to modify the script or whatever I may then start looking into learning Lua on my own. While those are true I have a specific goal and really don't want to spent weeks or months learning and researching for a small silly idea. Whenever I have ideas like this and try to see if someone who knows this off the top of their head will be willing to give a hand or some guidance I always get a bunch of people complaining about how I could just google this or how I should just learn it like everyone else. ![]() I hope I'm not angering anyone with this. So, how do I use luamacros to turn single key presses on my second (or third) keyboard into macros for Voicemod with minimal coding? Is there a sort of master list of "Change the key number input and command output as needed" or some basic code that's just to be repeated over and over again? I'll be honest my programming knowledge ends at HTML from 10 years ago and this is a silly idea I'm not exactly willing to learn a whole programming language to pull of so I'm entirely hoping there's some easy, sloppy, lazy way of doing it. The soundboard application I'm using is called "Voicemod" and functions primarily as a voice changer though it has a soundboard portion where key presses/combinations will trigger a sound to be played. Use GPIO 25, one of the 2 DAC pins and timer 0 Game_Audio_Class GameAudio ( 25, 0 ) // create objects of type Game_Audio_Wav_Class that is used by // the dac audio class (above), passing wav data as parameter.For starters, what I'm trying to do is apply something I've seen in Tom Scott's video "The art of the bodge" where he used 14 keyboards to have each key be instantly an emoji but instead I want to use it to trigger a soundboard I'm setting up for gaming with my friends. This project uses the following libraries // Game_Audio wav player - // OneButton - Library Manager #include "SoundData1.h" // imported sound #include "SoundData2.h" // imported sound #include "SoundData3.h" // imported sound #include "SoundData4.h" // imported sound #include "Game_Audio.h" // wav player library #include "OneButton.h" // button input library #define BUT1 17 #define BUT2 16 #define BUT3 4 #define BUT4 21 #define LED 27 int currentSample = - 1 // current sample being played // Create the main player class object. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |