Go Down

Topic: ADSR working in Guitar Help :) (Read 1 time) previous topic - next topic


Hello Guys,

i have try this code https://github.com/rmosquito/PolyEGg which is generate ADSR working on arduino and successfully working. but i am wonder how would be work in audio signal such guitar? i believe the code will work only with the build in audio in arduino. ??

i want to work it like this http://www.youtube.com/watch?v=XjgnchGwPtY
to increase the guitar sustain. :)

what should i do to work it?
any answer would be appreciated thank you so much in advance.:)



The way to add sustain is to amplify the signal inversely to the magnitude of the signal.  That is probably easier to do in with analog signals, although it can be done with digital signals IF you have a fast enough processor.  To get reasonable sound quality you will need a faster processor (and A/D)  than a 16 MHz ATmega.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e


But the code says:-
this software is currently pre-alpha and non-functional.

That means it does not work. And seeing it was 5 months ago it looks like it never did.


Hi guys thanks for response. =)

if the code is not working ? what would be to do to start ADSR? (ATTACT, DECAY, SUSTAIN, RELEASE). can we share as the method to work with  arduino?  what should be the idea? audio buffer or ringbuffer?,timer?,etc? something like the output in pwm 11 in arduino and analog 0 for audio signal?

any idea? =)


I don't think you can do what this with the arduino. Basically it has not got enough memory to store the signals and there is not enough processing power to process the samples fast enough. Also with only 10 bits input and 8 bits output on PWM the sound quality will be very poor.

This is the best I have sen for real time processing:-

Go Up