tag:blogger.com,1999:blog-23217409.post1404237000196891503..comments2024-03-15T15:10:58.249+10:30Comments on little-scale: How to Deal with MIDI Clock Signals in ArduinoSebastian Tomczakhttp://www.blogger.com/profile/12712567577323498804noreply@blogger.comBlogger41125tag:blogger.com,1999:blog-23217409.post-49563171722842067352022-05-29T07:45:53.484+09:302022-05-29T07:45:53.484+09:30Hi Bodo,
Yeah no worries! Please go aheadHi Bodo, <br />Yeah no worries! Please go aheadSebastian Tomczakhttps://www.blogger.com/profile/12712567577323498804noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-38284128093634422902022-05-29T00:04:33.336+09:302022-05-29T00:04:33.336+09:30Hi,
me and another guy modified the code to build...Hi,<br /><br />me and another guy modified the code to build a MIDI to UART adapter. It reads out a MIDI Clock, recognizes and extracts the start signal, and converts it to a UART commant which allows me to start recording on a Tascam DP24 via the footwitch port. The idea is to start audio transport on the recorder in sync with sequencers so you can jam live to pre-recorded tracks.<br /><br />Is it OK for you if I share this with other people? <br /><br />Cheers, BodoAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-53319665455985796212012-08-14T15:00:12.846+09:302012-08-14T15:00:12.846+09:30This is pretty cool! I like the idea a lot.This is pretty cool! I like the idea a lot.Software Test Metricshttp://www.qatutorial.comnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-16210634359562062252012-05-08T15:54:43.921+09:302012-05-08T15:54:43.921+09:30I really enjoyed this site. This is such a Great r...I really enjoyed this site. This is such a Great resource that you are providing and you give it away for free. It gives in depth information. Thanks for this valuable information.website design company bangalorehttp://www.nuvodev.com/noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-48026611827182188962011-09-27T19:14:51.696+09:302011-09-27T19:14:51.696+09:30You have provided very prominent and conspicuous s...You have provided very prominent and conspicuous stuff. I really enjoyed that. Thanks for sharing this precious post.Business Logo Designhttp://www.logoonlinepros.comnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-9592390019651951262011-07-16T09:43:06.337+09:302011-07-16T09:43:06.337+09:30This is fantastic! I have my arduino locked to abl...This is fantastic! I have my arduino locked to ableton's master clock now!<br />One question: How would you go by calculating the clock's BPM in arduino?<br />Cheers<br />Alexalexnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-31532269253352283962011-04-13T16:50:49.696+09:302011-04-13T16:50:49.696+09:30I would like to thank you for the efforts you'...I would like to thank you for the efforts you've made in writing this posting. I'm hoping the same very best function from you inside future too.Study in UKhttp://www.hsconsultants.netnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-2195044888976230192011-04-01T22:03:06.049+10:302011-04-01T22:03:06.049+10:30Pretty good post. I just stumbled upon your blog a...Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.Web Designhttp://www.boundlesstech.netnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-87907927646943009012011-03-22T09:15:15.217+10:302011-03-22T09:15:15.217+10:30Nice one mate. Once you pay attention it is very e...Nice one mate. Once you pay attention it is very easy to follow your settingsautoumhttp://www.autoinsurancequoteseasy.comnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-11131858856173906512011-01-07T04:45:14.847+10:302011-01-07T04:45:14.847+10:30Would you mind please explaining how to set up a c...Would you mind please explaining how to set up a counter to output quarter notes based on the midi_clock. I have midi_clock driving an led display but it seems to be outputing straight midi_clock.<br /><br />Thanks so much for you blog. It's fantastic! Really nice work.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-1474245876251593712011-01-07T04:37:24.788+10:302011-01-07T04:37:24.788+10:30would you mind explaining how to set up the counte...would you mind explaining how to set up the counter to simply count the quarter notes. I can't seem to get a proper counter working. I have midi coming in but it seems I am getting all the midi_clock bytes.richard upchurchhttps://www.blogger.com/profile/16747348536910410639noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-14701737075273957422011-01-06T22:28:55.346+10:302011-01-06T22:28:55.346+10:30This is the exact way that people expecting we can...This is the exact way that people expecting we can see most of the comments are true and towards the positive opinion..This is the exact way that people expecting we can see most of the comments are true and towards the positive opinion.Essayshttp://www.myessayspace.comnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-69117094922859881512010-09-06T20:18:51.498+09:302010-09-06T20:18:51.498+09:30Hi all, can someone explain what the "int cou...Hi all, can someone explain what the "int counter" in the sync() function and how it counts midi ticks?<br />I can blink an led with that code but I don't understand all of it.<br />Thanks.<br />DidUnknownhttps://www.blogger.com/profile/05998078284466375127noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-27789140301850724752010-04-29T15:49:03.408+09:302010-04-29T15:49:03.408+09:30good posts..good posts..Term Papershttp://www.ghostpapers.comnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-91718878785483445952010-02-22T16:19:59.573+10:302010-02-22T16:19:59.573+10:30hi Sebastian,
sorry for bringing this topic back u...hi Sebastian,<br />sorry for bringing this topic back up but i am trying to get my Arduino to send clock signals out to my kaoss pad to change the bpm, as a tap tempo setup.<br /><br />if you could please contact me at spooky_bonus@yahoo.com i would love to ask you a few questions about the code.<br /><br />im going to have an external controller with a xy touch screen and 2 switches sending cc, an encoder sending program changes and hopefully i can get the tap tempo in there as well.<br /><br />thank you very much,<br />-Johnjohnnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-57000442787574447162009-12-09T14:16:15.990+10:302009-12-09T14:16:15.990+10:30hello
i am trying get an tight midi sync without ...hello <br />i am trying get an tight midi sync without luck<br /><br />for the midi-in i use this scheme: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1187962258/0<br />without the 100k resistor because it didnt work with it<br />i could use an 110k instead but it seems not make any difference if i leave it away<br /><br />for controlchange an notes its fine<br />but for midi sync i run out of ideas<br />as master clock source i tried ableton live with an rme device or my micromodular<br /><br />i want to use my arduino as sequenzer for midi, cv/gate and sync to nanoloop 2.2<br />any idea what else i could try ?<br /><br />this is my curent sync method:<br />void Sync() {<br /> if(counter < 24) {<br /> counter++;<br /> digitalWrite(8, LOW); <br /> digitalWrite(13, LOW);<br /> }<br /> else {<br /> counter = 0;<br /> digitalWrite(8, HIGH); <br /> digitalWrite(13, HIGH);<br /> noteOn(0x80, 60, 0x00);<br /> noteOn(0x90, 60, 0x40);<br /> }<br />}<br /><br />void noteOn(byte cmd, byte data1, byte data2) {<br /> Serial.print(cmd, BYTE);<br /> Serial.print(data1, BYTE);<br /> Serial.print(data2, BYTE);<br />}<br /><br />thanks for any helpkabadadahttps://www.blogger.com/profile/09956640446481896153noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-31741534216240621072009-06-29T15:16:37.576+09:302009-06-29T15:16:37.576+09:30what is the hardware set up for the incoming midi ...what is the hardware set up for the incoming midi signal?erinbhttps://www.blogger.com/profile/12019240776905261935noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-70407032579721548022009-06-29T15:16:05.550+09:302009-06-29T15:16:05.550+09:30what is the hardware set up for the incoming midi ...what is the hardware set up for the incoming midi signal?erinbhttps://www.blogger.com/profile/12019240776905261935noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-86685370554773129032009-05-22T05:27:53.502+09:302009-05-22T05:27:53.502+09:30Sebastian,
Just to clarify things, is th...Sebastian,<br /> Just to clarify things, is the code above to be used on an Arduino board, or on a standalone Atmega with crystal etc. (because the pinouts would be different)?Richnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-15914438479848758912009-05-19T19:52:00.000+09:302009-05-19T19:52:00.000+09:30Hi, I compiled the code and did not get any errors...Hi, I compiled the code and did not get any errors, but did not get any output. Perhaps I left something out? (sorry to keep bothering you with this!):<br /><br /><br />int counter = 0;<br />int output_pin = 12; // set output pin<br />byte midi_start = 0xfa;<br />byte midi_stop = 0xfc;<br />byte midi_clock = 0xf8;<br />byte midi_continue = 0xfb;<br />int play_flag = 0;<br />byte data;<br /><br />void setup() {<br />Serial.begin(31250);<br />pinMode(output_pin, OUTPUT);<br />}<br /><br />void loop() {<br />if(Serial.available() > 0) {<br />data = Serial.read();<br />if(data == midi_start) {<br />play_flag = 1;<br />}<br />else if(data == midi_continue) {<br />play_flag = 1;<br />}<br />else if(data == midi_stop) {<br />play_flag = 0;<br />}<br />else if((data == midi_clock) && (play_flag == 1)) {<br />Sync();<br />}<br />} <br />}<br /><br />void Sync() {<br />if(counter == 2) {<br />counter = 0;<br />digitalWrite(output_pin, HIGH);<br />}<br /><br />else if(counter == 1) {<br />counter = counter + 1;<br />digitalWrite(output_pin, LOW);<br />}<br /><br />else {<br />counter = counter + 1;<br />}<br />}Richnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-15123102812929892652009-05-19T18:44:00.000+09:302009-05-19T18:44:00.000+09:30hmm okay, i don't my arduino with me at this momen...hmm okay, i don't my arduino with me at this moment, so why don't you try replacing void sync () { } with: <br /><br />void Sync() {<br /> if(counter == 2) {<br /> counter = 0;<br /> digitalWrite(output_pin, HIGH);<br /> }<br /> <br /> else if(counter == 1) {<br /> counter = counter + 1;<br /> digitalWrite(output_pin, LOW);<br /> }<br /> <br /> else {<br /> counter = counter + 1;<br /> }<br />}<br /><br /><br /><br /><br />and add the following line to the top of the code: <br /><br />int output_pin = 12; // set output pin<br /><br /><br /><br /><br />and the following code directly after Serial(31250);:<br /><br /> pinMode(output_pin, OUTPUT);Sebastian Tomczakhttps://www.blogger.com/profile/12712567577323498804noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-333999911226146282009-05-19T17:47:00.000+09:302009-05-19T17:47:00.000+09:30I guess it would be in that region - enough to pul...I guess it would be in that region - enough to pulse all eight outputs on a single beat, say.Richnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-9331712803574245562009-05-19T17:05:00.000+09:302009-05-19T17:05:00.000+09:30Ah okay, so you want to pulse the 4017 every, what...Ah okay, so you want to pulse the 4017 every, what, quarter note? eighth note?Sebastian Tomczakhttps://www.blogger.com/profile/12712567577323498804noreply@blogger.comtag:blogger.com,1999:blog-23217409.post-73390727376586651302009-05-19T17:02:00.000+09:302009-05-19T17:02:00.000+09:30Sebastian,
to be honest, it's a very sim...Sebastian,<br /> to be honest, it's a very simple circuit with no multiplexing: all that's needed is a pulse to drive a 4017, which has 8 outputs, each providing a control voltage via a level pot (the count advances on each pulse).<br /><br />Hope that makes sense!Richnoreply@blogger.comtag:blogger.com,1999:blog-23217409.post-51455890697245323452009-05-19T08:31:00.000+09:302009-05-19T08:31:00.000+09:30Hi Rich,
Would you be using a multiplexer to sequ...Hi Rich, <br />Would you be using a multiplexer to sequence? If so, I can write it up and post it later today or tomorrow.Sebastian Tomczakhttps://www.blogger.com/profile/12712567577323498804noreply@blogger.com