<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: SparkFun Musical Instrument Shield</title>
		<link>http://forums.leaflabs.com/topic.php?id=1003</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:23:14 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1003" rel="self" type="application/rss+xml" />

		<item>
			<title>poslathian on "SparkFun Musical Instrument Shield"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1003#post-6213</link>
			<pubDate>Wed, 07 Sep 2011 10:38:32 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">6213@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;hah - dont like our cat captcha? &#60;/p&#62;
&#60;p&#62;anyway, thanks for bringing up another shield!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "SparkFun Musical Instrument Shield"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1003#post-6173</link>
			<pubDate>Thu, 01 Sep 2011 08:56:17 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6173@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The wiki has a different login system than the forums.  Do you have an account on the Wiki as well?&#60;/p&#62;
&#60;p&#62;Sorry for the inconvenience; we're not web developers ;).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Pascal on "SparkFun Musical Instrument Shield"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1003#post-6168</link>
			<pubDate>Thu, 01 Sep 2011 03:08:37 +0000</pubDate>
			<dc:creator>Pascal</dc:creator>
			<guid isPermaLink="false">6168@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I've tried to login unsucsesfully yet, maybe it's that i am alergic to cat's ;)&#60;br /&#62;
I will try again later&#60;br /&#62;
Have some more shields that i want to adapt to the maple
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "SparkFun Musical Instrument Shield"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1003#post-6116</link>
			<pubDate>Mon, 29 Aug 2011 18:13:42 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6116@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Pascal,&#60;/p&#62;
&#60;p&#62;Thanks for the post and the example code!&#60;/p&#62;
&#60;p&#62;I wonder if you might want to put the shield up yourself on the new &#60;a href=&#34;http://wiki.leaflabs.com/index.php?title=Compatible_Shields&#34;&#62;Compatible Shields&#60;/a&#62; page on our wiki?&#60;/p&#62;
&#60;p&#62;When we wrote the &#60;a href=&#34;http://leaflabs.com/docs/arduino-compatibility.html#shield-and-device-compatibility&#34;&#62;equivalent page in our official docs&#60;/a&#62;, we didn't have a wiki yet.  However, this sort of information is better maintained on the Wiki, where anyone (not just us) can update it.  I've added a link to this wiki page into the source for our docs, will be part of the next release:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/leaflabs-docs/commit/15cf3d2cacc05740fadc8461c2969794cbb5f1de&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/leaflabs-docs/commit/15cf3d2cacc05740fadc8461c2969794cbb5f1de&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Pascal on "SparkFun Musical Instrument Shield"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1003#post-6097</link>
			<pubDate>Sat, 27 Aug 2011 11:11:30 +0000</pubDate>
			<dc:creator>Pascal</dc:creator>
			<guid isPermaLink="false">6097@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello, first post here.&#60;br /&#62;
This morning i got the Sparkfun Musical Instrument Shield by male,&#60;br /&#62;
This is how i got it working pretty quickly on the Maple-r5&#60;br /&#62;
Please add it to the compatability list&#60;/p&#62;
&#60;p&#62;/*&#60;br /&#62;
   Title    : Musical_instrument_Demo&#60;br /&#62;
   Function : Verry basic demo how to use the Sparkfun Musteic Instrument shield on the Maple&#60;br /&#62;
   Author   : Pascal Schiks (C) 2011 GNU/GPL&#60;/p&#62;
&#60;p&#62;   Notes    :&#60;br /&#62;
   This is how i got the SparkFun MusicalInstrument Shield with the STM32F103 chip to work.&#60;/p&#62;
&#60;p&#62;   I tried this shield only in MIDI mode yet (it's fairly easy to convert to MP3 mode)&#60;br /&#62;
   On the Arduino softSerial is used to drive the MIDI-chip wich listens on pin-3.&#60;br /&#62;
   Since i think soft serial is not a verry good idea if you planning timecritical stuff like MIDI,&#60;br /&#62;
   I decided to use the hardware serial which Maple has three options for.&#60;br /&#62;
   You may either connect pin-3 to pin-7 for Serial1, to pin-2 for Serial2, or to Pin-29 for Serial3&#60;br /&#62;
   Note that using Serial2 might clash into the MIDI-shield if you are stacking this with the Musical-Instrument.&#60;/p&#62;
&#60;p&#62;   Also you must not forget to reset the MIDI-chip, by lowerering Pin-4 for a short while&#60;br /&#62;
   For the rest this code is pretty much a copy of the MIDI-shield demo&#60;br /&#62;
 */&#60;/p&#62;
&#60;p&#62;void noteOn(int cmd, int pitch, int velocity)&#60;br /&#62;
{&#60;br /&#62;
  Serial1.print(cmd, BYTE);&#60;br /&#62;
  Serial1.print(pitch, BYTE);&#60;br /&#62;
  Serial1.print(velocity, BYTE);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void noteOff()&#60;br /&#62;
{&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void setup()&#60;br /&#62;
{&#60;br /&#62;
  // Reset the MIDI-chip&#60;br /&#62;
  pinMode(4, OUTPUT);&#60;br /&#62;
  digitalWrite(4, LOW);&#60;br /&#62;
  delay(100);&#60;br /&#62;
  digitalWrite(4, HIGH);&#60;br /&#62;
  delay(100);&#60;br /&#62;
  //  Set MIDI baud rate:&#60;br /&#62;
  Serial1.begin(31250);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop()&#60;br /&#62;
{&#60;br /&#62;
  // play notes from F#-0 (0x1E) to F#-5 (0x5A):&#60;br /&#62;
  for (int note = 0x1E; note &#38;lt; 0x5A; note ++)&#60;br /&#62;
  {&#60;br /&#62;
    //Note on channel 1 (0x90), some note value (note), middle velocity (0x45):&#60;br /&#62;
    noteOn(0x90, note, 0x45);&#60;br /&#62;
    delay(100);&#60;br /&#62;
    //Note on channel 1 (0x90), some note value (note), silent velocity (0x00):&#60;br /&#62;
    noteOn(0x90, note, 0x00);&#60;br /&#62;
    delay(100);&#60;br /&#62;
  }&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
