<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - arduino boy - lsdj master sync problem]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/6541/"/>
	<updated>2012-03-30T21:21:11Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/6541/arduino-boy-lsdj-master-sync-problem/</id>
		<entry>
			<title type="html"><![CDATA[Re: arduino boy - lsdj master sync problem]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/97313/#p97313"/>
			<content type="html"><![CDATA[<p>IT WORK$ !!1 A W E S O M E ! ! !&nbsp; </p><p>THANK YOU MA$TER !&nbsp; :&nbsp; )</p>]]></content>
			<author>
				<name><![CDATA[KODEK]]></name>
				<uri>https://chipmusic.org/KODEK</uri>
			</author>
			<updated>2012-03-30T21:21:11Z</updated>
			<id>https://chipmusic.org/forums/post/97313/#p97313</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: arduino boy - lsdj master sync problem]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/97294/#p97294"/>
			<content type="html"><![CDATA[<p>No. Arduinoboy sends a note # that corresponds to the row # you started on when the clock starts (when you hit start) on MIDI channel 16. I should of had that as a option and not always on, for dumb devices that respond to all MIDI channels. You can comment out that code or remove that code, it&#039;s 3 lines in the &quot;Mode_LSDJ_MasterSync&quot; tab when you open up the arduinoboy code in the arduino software. At the bottom of the file you&#039;ll see this:</p><div class="codebox"><pre><code> /*
  sendMidiClockSlaveFromLSDJ waits for 8 clock bits from LSDJ,
  sends the transport start command if sequencer hasnt started yet,
  sends the midi clock tick, and sends a note value that corrisponds to
  LSDJ&#039;s row number on start (LSDJ only sends this once when it starts)
 */
void sendMidiClockSlaveFromLSDJ()
{
  if(!countGbClockTicks) {      //If we hit 8 bits
    if(!sequencerStarted) {         //If the sequencer hasnt started
      Serial.write((0x90+memory[MEM_LSDJMASTER_MIDI_CH])); //Send the midi channel byte
      Serial.write(readGbSerialIn);                //Send the row value as a note
      Serial.write(0x7F);                          //Send a velocity 127
      
      Serial.write(0xFA);     //send MIDI transport start message 
      sequencerStart();             //call the global sequencer start function
    }
    Serial.write(0xF8);       //Send the MIDI Clock Tick
    
    countGbClockTicks=0;            //Reset the bit counter
    readGbSerialIn = 0x00;                //Reset our serial read value
    
    updateVisualSync();
  }
  countGbClockTicks++;              //Increment the bit counter
 if(countGbClockTicks==8) countGbClockTicks=0; 
}</code></pre></div><p>change it to this:<br /></p><div class="codebox"><pre><code> /*
  sendMidiClockSlaveFromLSDJ waits for 8 clock bits from LSDJ,
  sends the transport start command if sequencer hasnt started yet,
  sends the midi clock tick, and sends a note value that corrisponds to
  LSDJ&#039;s row number on start (LSDJ only sends this once when it starts)
 */
void sendMidiClockSlaveFromLSDJ()
{
  if(!countGbClockTicks) {      //If we hit 8 bits
    if(!sequencerStarted) {         //If the sequencer hasnt started
      Serial.write(0xFA);     //send MIDI transport start message 
      sequencerStart();             //call the global sequencer start function
    }
    Serial.write(0xF8);       //Send the MIDI Clock Tick
    
    countGbClockTicks=0;            //Reset the bit counter
    readGbSerialIn = 0x00;                //Reset our serial read value
    
    updateVisualSync();
  }
  countGbClockTicks++;              //Increment the bit counter
 if(countGbClockTicks==8) countGbClockTicks=0; 
}</code></pre></div><p>As far as battery vs usb vs wallwart, that shouldn&#039;t matter, as long as the battery or wallwart is supplying enough power.</p>]]></content>
			<author>
				<name><![CDATA[Trash80]]></name>
				<uri>https://chipmusic.org/Trash80</uri>
			</author>
			<updated>2012-03-30T17:25:44Z</updated>
			<id>https://chipmusic.org/forums/post/97294/#p97294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: arduino boy - lsdj master sync problem]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/97214/#p97214"/>
			<content type="html"><![CDATA[<p>oh im running dmg from wall adapter , maybe i should try to run it with batteries //<br />the signals it sends is not actually normal midi notes - - -but sum really weird low arps or something ; D i call them acid farts haha</p><p>++ another weird thing is that arduinoboy only works propertly when powered from USB -- if i power it from AC adapter the synch goes offbeat after first beats </p><br /><p>dafuq ? maybe i should reinstall firmware ?</p>]]></content>
			<author>
				<name><![CDATA[KODEK]]></name>
				<uri>https://chipmusic.org/KODEK</uri>
			</author>
			<updated>2012-03-30T07:32:13Z</updated>
			<id>https://chipmusic.org/forums/post/97214/#p97214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: arduino boy - lsdj master sync problem]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/97212/#p97212"/>
			<content type="html"><![CDATA[<p>I did notice that the arduinoboy does send some random notes and program changes every now and then if it&#039;s in midi-out mode. Haven&#039;t had that problem with master sync tho.</p><p>It seems to work best when the batteries of my DMG are completely full. Somehow that generates less errors.</p><p>Other than that, I&#039;m surprised that it even sends note data in mastersync mode. Shouldnt do that...</p>]]></content>
			<author>
				<name><![CDATA[Timbob]]></name>
				<uri>https://chipmusic.org/Timbob</uri>
			</author>
			<updated>2012-03-30T07:22:20Z</updated>
			<id>https://chipmusic.org/forums/post/97212/#p97212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: arduino boy - lsdj master sync problem]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/97202/#p97202"/>
			<content type="html"><![CDATA[<p><a class="postimg" href="http://okayface.com/okay-face.jpg" title="http://okayface.com/okay-face.jpg" id="forum_image_64626931"><img src="http://okayface.com/okay-face.jpg" /></a></p>]]></content>
			<author>
				<name><![CDATA[KODEK]]></name>
				<uri>https://chipmusic.org/KODEK</uri>
			</author>
			<updated>2012-03-30T06:19:22Z</updated>
			<id>https://chipmusic.org/forums/post/97202/#p97202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[arduino boy - lsdj master sync problem]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/97097/#p97097"/>
			<content type="html"><![CDATA[<p>y0 // </p><p>i built arduino boy for synching (LSDj master sync)&nbsp; my gameboy with roland mc-303 <br />for some time it worked perfectly .. now it sends WIERD MIDI NOTE messages to groovebox and it plays low notes randomly -- same when trying to sync with yamaha qy70 // but midi clock is in sync and working</p><p>maybe someone had problem like this already ?</p><p><a class="postimg" href="http://2.bp.blogspot.com/-IzmElWP7Yzo/Tt5Y0DrpvOI/AAAAAAAAD-w/ScTbim5cH7w/s1600/276253_Papel-de-Parede-Meme-Jackie-Chan_1600x1200.jpg" title="http://2.bp.blogspot.com/-IzmElWP7Yzo/Tt5Y0DrpvOI/AAAAAAAAD-w/ScTbim5cH7w/s1600/276253_Papel-de-Parede-Meme-Jackie-Chan_1600x1200.jpg" id="forum_image_93049558"><img src="http://2.bp.blogspot.com/-IzmElWP7Yzo/Tt5Y0DrpvOI/AAAAAAAAD-w/ScTbim5cH7w/s1600/276253_Papel-de-Parede-Meme-Jackie-Chan_1600x1200.jpg" /></a></p>]]></content>
			<author>
				<name><![CDATA[KODEK]]></name>
				<uri>https://chipmusic.org/KODEK</uri>
			</author>
			<updated>2012-03-29T20:02:26Z</updated>
			<id>https://chipmusic.org/forums/post/97097/#p97097</id>
		</entry>
</feed>
