Jump to content

Recommended Posts

Posted

Hello,

I've almost finished a guitar fx looper (which would need a major wiki update...), and i'm wondering if i could add a tuner to this box. As i'm not using any AIN, i have all the analog pins free to use. I think that the 10bits conversion is enough to have the guitar signal.

 

I've found this in the forum but this is standalone project : 

 

The code for the fx switcher is pretty small, and written in C. So i guess there is room for the tuner code.

Is there any code block known that i could use ?

 

thanks

post-6390-0-80018600-1358376687_thumb.jp

Posted

There's really not any voodoo in the tuner software. An interrupt gets called whenever the input pin changes, the number of changes per $time get counted and that determines the frequency, which is checked against a preset table. The distance to the closest note and that note are displayed and that's it. The whole thing was done in asm and isn't commented, so I don't think it'll be a great help ;-)

Posted (edited)

OK thanks for the reply, i get the scheme for coding it... if my skills are able to do it  :sheep:

I just wonder if we can handle the interrupts directly with MIOS already "installed", need further investigation !

Edited by rmouneyres

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...