Go Down

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

dsese1234

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.:)


Regards
Darwin


johnwasser

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

Grumpy_Mike

But the code says:-
Quote
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.

dsese1234

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? =)




Grumpy_Mike

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:-
http://interface.khm.de/index.php/labor/experimente/arduino-realtime-audio-processing/

Go Up