<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Red Binary</title>
	<atom:link href="http://redbinary.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://redbinary.com</link>
	<description>The pre-neopostmodern electro-Amish man using sense and caution when voiding any warranty.</description>
	<lastBuildDate>Wed, 25 Jan 2012 17:55:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on PACMOD MIDI DJ Controller by Red Binary</title>
		<link>http://redbinary.com/pacmod-midi-dj-controller/#comment-3</link>
		<dc:creator>Red Binary</dc:creator>
		<pubDate>Wed, 25 Jan 2012 17:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://redbinary.com/?p=213#comment-3</guid>
		<description>&lt;strong&gt;&lt;i&gt;&quot;THANK you very much for your reply..i am not sure i follow you 100% but i guess a little trial and error will do the trick....a final question (if you know it of course)....teensy 2 has 12 analog inputs...can i use only 6 lets say and the other 6 &quot;declare&quot; them in the code as digital?

Thank you very much again...really appreciate your help&quot;&lt;/i&gt;&lt;/strong&gt;

Happy to help! Using the Arduino environment you can use any of the analog pins as digital pins just by the way you reference them: http://arduino.cc/en/Tutorial/DigitalPins

You&#039;ll notice that in the code I&#039;m using analog-capable digital_pin[] 11-18 as digital pins, but pins 20 and 21 as analog pins. I can do this by referencing them as A0 and A1 using analogRead().</description>
		<content:encoded><![CDATA[<p><strong><i>&#8220;THANK you very much for your reply..i am not sure i follow you 100% but i guess a little trial and error will do the trick&#8230;.a final question (if you know it of course)&#8230;.teensy 2 has 12 analog inputs&#8230;can i use only 6 lets say and the other 6 &#8220;declare&#8221; them in the code as digital?</p>
<p>Thank you very much again&#8230;really appreciate your help&#8221;</i></strong></p>
<p>Happy to help! Using the Arduino environment you can use any of the analog pins as digital pins just by the way you reference them: <a href="http://arduino.cc/en/Tutorial/DigitalPins" rel="nofollow">http://arduino.cc/en/Tutorial/DigitalPins</a></p>
<p>You&#8217;ll notice that in the code I&#8217;m using analog-capable digital_pin[] 11-18 as digital pins, but pins 20 and 21 as analog pins. I can do this by referencing them as A0 and A1 using analogRead().</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PACMOD MIDI DJ Controller by Red Binary</title>
		<link>http://redbinary.com/pacmod-midi-dj-controller/#comment-2</link>
		<dc:creator>Red Binary</dc:creator>
		<pubDate>Wed, 25 Jan 2012 14:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://redbinary.com/?p=213#comment-2</guid>
		<description>&lt;strong&gt;&lt;i&gt;&quot;hello there. i want to build the same arcade controller for my self. i understand most of the code but i am not a programmer though. i wanted to ask you what does the part of const in digital_note does and similar for analog. how do you came up with these values?? 

thank you very much&quot;&lt;/i&gt;&lt;/strong&gt;

Good question! Those are the &#039;MIDI note numbers&#039;. The numbers that the controller sends to whatever it is controlling to tell it which note to play. The MIDI specification uses note numbers from 0 to 127 to sequentially lay out the piano scale like an enormous 10 octave keyboard. Here&#039;s a (giant) image showing the note numbers: http://en.wikipedia.org/wiki/File:NoteNamesFrequenciesAndMidiNumbers.svg

The note numbers I picked for the buttons were just to try to make use of the mapping in Traktor that my son was already using.

Similarly, but possibly a little more confusing, analog_control[] are the numbers for which &#039;continuous controller&#039; the DJ controller is using. In this context &#039;continuous controller&#039; means an analog input like pitch bend or mod wheel (http://improv.sapp.org/doc/class/MidiOutput/controllers/controllers.html) I just arbitrarily picked 0 and 1 for my sliders. The sliders generate a range of 0-1023 in the Teensy, but since the MIDI specification says they should only be a range of 0-127 I used a scaling factor of 8. My son reports that my scaling factor doesn&#039;t allow the sliders to go full range in Traktor, however.

Hope this helps!</description>
		<content:encoded><![CDATA[<p><strong><i>&#8220;hello there. i want to build the same arcade controller for my self. i understand most of the code but i am not a programmer though. i wanted to ask you what does the part of const in digital_note does and similar for analog. how do you came up with these values?? </p>
<p>thank you very much&#8221;</i></strong></p>
<p>Good question! Those are the &#8216;MIDI note numbers&#8217;. The numbers that the controller sends to whatever it is controlling to tell it which note to play. The MIDI specification uses note numbers from 0 to 127 to sequentially lay out the piano scale like an enormous 10 octave keyboard. Here&#8217;s a (giant) image showing the note numbers: <a href="http://en.wikipedia.org/wiki/File:NoteNamesFrequenciesAndMidiNumbers.svg" rel="nofollow">http://en.wikipedia.org/wiki/File:NoteNamesFrequenciesAndMidiNumbers.svg</a></p>
<p>The note numbers I picked for the buttons were just to try to make use of the mapping in Traktor that my son was already using.</p>
<p>Similarly, but possibly a little more confusing, analog_control[] are the numbers for which &#8216;continuous controller&#8217; the DJ controller is using. In this context &#8216;continuous controller&#8217; means an analog input like pitch bend or mod wheel (<a href="http://improv.sapp.org/doc/class/MidiOutput/controllers/controllers.html" rel="nofollow">http://improv.sapp.org/doc/class/MidiOutput/controllers/controllers.html</a>) I just arbitrarily picked 0 and 1 for my sliders. The sliders generate a range of 0-1023 in the Teensy, but since the MIDI specification says they should only be a range of 0-127 I used a scaling factor of 8. My son reports that my scaling factor doesn&#8217;t allow the sliders to go full range in Traktor, however.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

