![]() ![]() As how you would go about doing that I don't really know at this stage. I'll have a look at your code when I have some free time, but in the meantime I suggest you look into your interrupt request handlers.Īs for your other questions, the polyphonic problem is one of superimposing the digital equivalents of the analogue sound-wave together to get your desired result. the arduino put the requests in a buffer, served some other request, came back and found that you had pressed a piezo twice and proceeded to play those two tones. This also accounts for the double tone anomaly at (0:14s - 0:18s). This could result in your variable lag when the arduino has nothing to do it will service your request, but when it comes under load it will put the piezo request on hold. the input from the piezo is not being treated with a high enough priority in the arduino. This is just a guess, but I think this is a priority problem. Use pseudocode or simplified code to make it easier to digest.Ģ- Are you using interrupt request handlers? Just to get some more clarification (and so future viewers can get up to speed without reading the code):ġ- How are you currently handling the input from the piezo? I know you are using the multiplexer but try to walk me through the whole system, from input to tone output. This seems to be a problem with your interrupt handler. At one point in the video (0:14s - 0:18s) it outputted two tones, almost as if it was clearing out a buffer. Sometimes it was really responsive, and at other times it really lagged. ![]() ![]() Haven't reviewed your code, but from the video I could see that the latency between the piezo and the tone is highly variable. Thank you in advance and All the best in 2012 and beyond! Here's a video clip голь на выдумки хитра (Digidrumduino) - YouTubeĪrduino 4051 page Arduino Playground - 4051 How would my current sketch have to be modifed to work with the the matrix version however there is another way, the matrix which claims to be able to read multiple keys at at once. on the 4051 page on there in a liner approach to multiplexing which I'm using in my current sketch. And anyone help me with this and or perhaps another approach to polyphony. I read somewhere of something called the modulo operation might help me achieve. more that one tone at a time independent of each other. I would like to modify it to produce polyphonic sound i.e. Also the current working of the sketch if for a monophonic instrument. At the moment I am getting a lot of latency between the time I strike the piezo and when the note-on tone sounds and can be seen in the video below. I'm working on my arduino midi controller and have progressed some thanks to your help. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |