• Software
  • RE: Input and Biquad/QuadBiquad.h and Source...

format_analog_buffer(context, kp[i]) is the only function running in the audio thread with print functions. If it is commented out in the code you are compiling you won't have that error.

Close the project, re-open it and see if the commented lines were saved. If not, try again.

    ryjobil

    Okay...I tried to comment out the rt_printf statements w/ // .

    Seth

    P.S. I will try again and again and again. Until! Eureka, it has been done! Please give me time, i.e. as I have only commented the rt_printf statements in the source so far. I will comment out all of the functions for the rt_printf statements.

    I tried and this is the return output I get:

    6410.000000	-4.893197	0.000000
    6420.000000	-4.893508	0.000000
    Your code is printing to the console too quickly. Check your audio thread for print messages.

      ryjobil Close the project, re-open it and see if the commented lines were saved. If not, try again.

      Hopefully we got rid of that bug years ago 🙂

      silver2row I tried and this is the return output I get:
      This output is helpful. Thanks for posting it.

      Delete the file test_tonestack.cpp It is the only code in the directory that can generate an output formatted like that, and with those numbers. This is a file that I should have put into the "analysis" directory because it's an offline test utility for the tonestack code, but was not meant to be executed in real time. Sorry about that.

      @giuliomoro it is noteworthy that Bela seems to be compiling and executing that program without generating an error (except too many print statements at runtime).

        ryjobil

        Hello Sir,

        Yes sir...erasing on the way. test_tonestack.cpp will be removed. Thank you for the info.

        Seth

        CPU  PID    MSW        CSW        XSC        PF    STAT       %CPU  NAME
          0  0      0          413393     0          0     00018000   89.0  [ROOT]
          0  761    3          3          8          0     000600c0    0.0  Klingon_Tone
          0  771    1          413390     413392     0     00048046    9.2  bela-audio
          0  0      0          224671     0          0     00000000    0.7  [IRQ16: [timer]]
          0  0      0          206726     0          0     00000000    0.7  [IRQ21: rtdm_pruss_irq_irq]

        Okay...so that is the output. Nothing changes in the form of output from the input of the guitar to the BELA input to the output of BELA to the amplifier. I know you guys do not have unlimited time. If there is something you think I am missing, please reply.

        Hello,

        I am not sure exactly what to expect w/ running render.cpp in this context. I feel a 'bluesy' sound has taken over the guitar sounds while strumming. I am testing w/ the guitar right now instead of the four string violin.

        Seth

        P.S. ryjobil : I think it is still just bypassing everything while things are plugged in while the source is running. Everything is running on the software side of things, i.e. no errors are stopping BELA. I just do not hear a definitive tone or difference in sound.

        Remember earlier I mentioned channel 0 has klingon tone and channel 2 is just pass-through. Depending how you have hooked up the guitar it might pass-through or it might get the effect.

        If using both in parallel it will be a mix of clean and bluesey.

        The default settings are for a "bluesy" sound with guitar. If you hear some distortion that is somewhat mild, that is what I expect.

        You can get more extreme settings from what was posted above. The first step was just getting the code to execute, and then now maybe you can do some things to make the change in sound more obvious.

        Here's an example of what it will sound like if you get the guitar level turned up high enough on the input:

          ryjobil

          Hello...nice! That was one, bluesy guitar sample. I still get too excited when I pick up my guitar to not goof up randomly.

          Patience, I understand. I need to take time out to try to comprise something that is worth my ears listening.

          Anyway, I have compiled the source in its current format. To tell you the truth, I do not know what Klingon is supposed to sound like currently. I should read or watch some more Star Trek.

          So, in hindsight, I will get better acquainted w/ BELA and the source w/ the Klingon and other tones soon.

          Seth

          P.S. Seriously, thank you for taking time out to help me. This should be a nice adventure. Oh and I have this violin, not the 3D printed one, I plan on learning. I like to weep. Weeping on guitar is nice but the violin weep is extra nice.

          Actually "Klingon Tone" is a play on words for "King of Tone". It's a digitized model of the "King of Tone" pedal https://happybluesman.com/why-king-of-tone-pedal-famous/ . The analog circuit is very similar to the Marshall Bluesbreaker in case that helps describe what to expect.

          The default settings are adjusted so that a guitar with nearly full-range input will "break up". You have to crank up the gain and mix to all hard clipping for it to sound distorted on a weak signal.

          If you have plugged your guitar direct to Bela input with no amplification then you will need to set the input gain in project settings to about 12 dB. That audio level meter I showed in the video is nice for helping set up the input level, but that is yet another project and it makes sense to get one working correctly before moving on to another.

            ryjobil

            Hello! This is making more sense now. I thought it was going to sound like some odd Klingon talk (Ambwonk Chamtwak Nimbtock or however they speak) when strumming around. Ha!

            I did not know what to expect at all. The bluesy sound reiterating out of the speaker is nice. It is unlike my current set up of plug and play (guitar to amp). I will mess w/ some knobs one day. I have a couple knobs on my amp but only gain, tone, and volume.

            Seth

            P.S. I will goof around w/ the source to see what I can achieve. I have a couple projects that I am dedicating to the BBB and promotions. Nothing for funding but it is nice to be a part to something better than just me sitting still. So, I really hit that bluesy guess w/ a nail on the head, i.e. so to say. Anyway, I hope all is well. I cannot wait to try more and more w/ this nifty tool (BELA). Are you guys thinking of using the BBAI anytime soon w/ BELA?

              silver2row I thought it was going to sound like some odd Klingon talk (Ambwonk Chamtwak Nimbtock...

              This is a fun idea even though this isn't what KlingonTone does.

              Good to hear it's working. Now maybe you can try the Vocoder or get back around to making the biquad filters do something extraordinary for you.

                ryjobil

                Hello Sir...is the vocoder needing to have a specific circuit or can I just use an amplifier circuit to handle this source instance?

                Seth

                  silver2row Hello Sir...is the vocoder needing to have a specific circuit or can I just use an amplifier circuit to handle this source instance?

                  As-coded, the answer is yes. You need to balance the Analog In channel 1/2 way between GND and 5V, and then use a mic preamp to get the signal level up. See diagrams and README here.
                  https://github.com/transmogrifox/Bela_Misc/tree/master/vocoder

                  The voice channel could be taken from the audio channel (currently pass-through), but you would need to change the code to do that. If you did then it could be done without adding circuits.

                    ryjobil

                    Hello...okay. I just wanted to make sure you were not 'pulling my leg.' I understood what you told me earlier and I saw the circuit on the repo.

                    So, I have put together a short on BELA and your lib. online, the Bela_Misc repo, w/ a 'couple' of good sounds on the old Pyle guitar.

                    I have a really cheap guitar that is out of tune but I play a short on it to justify the sounds that can accumulate from your repo. and BELA.

                    Seth

                    P.S. I will post the video later in a post on a site. I will link this page to the site where I post so you can laugh away! Anyway, I am very nervous and full of excuses!

                    ryjobil ,

                    Hello and thank you all for your input and ideas.

                    ...

                    I made a brief about the Bela Cape, the BBB, and Bela_Misc on github.com. It is not worth anything really but it was fun to put it together. I play but the background noise is too loud to handle the cheap amplifier I purchased. Boo!

                    Anyway, https://www.hackster.io/functt/bela-bela-misc-repo-on-github-com-and-tunes-1c1a2c is the link if you all are interested.

                    ...

                    Also! I will be changing some of the source and making more things a reality in time. I am only one person and I have a lot of projects right now, i.e. as I am overwhelmed w/ work and projects as of today.

                    So, it is either projects, work, or neither/both. I pick both but it is very time consuming and my skillset is diminishing slowly.

                    Seth

                    P.S. If anyone has any pointers, please do not hesitate to give them freely! I know I can work on my typing sentences and electronics etiquette when typing sentences. I will! I work very slowly. I rarely stress myself these days but I can and I may just do it again and again!