<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-860221418161928675</id><updated>2011-11-27T19:04:05.051-05:00</updated><title type='text'>The Colliadora Series of Instruments</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://polyvox10.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/860221418161928675/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://polyvox10.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Driving to MIA!</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-860221418161928675.post-7492119759588245353</id><published>2007-12-03T00:54:00.000-05:00</published><updated>2007-12-05T15:05:10.804-05:00</updated><title type='text'>Introducing the Colliadora Series</title><content type='html'>&lt;p class="pitch"&gt;&lt;span style="font-style: italic;"&gt; Three visionaries with custom-made MIDI instruments sporting custom button mappings all with the intention of uniting the world by blowing minds.&lt;/span&gt;&lt;br /&gt;         &lt;/p&gt;                                      &lt;h2 style="text-align: center;"&gt;                         Description                    &lt;/h2&gt;                     &lt;div id="description"&gt; Three ambitious young men have joined forces. Coming from distinctly different musical backgrounds, they have created a new class of computer musical instrument: custom-built to their rigorous specifications with natural shells and re-programmable through an aesthetically pleasing and easy-to-use graphical user interface running on the Java-based Processing language. With the ability to switch between custom button mappings on the fly and produce more than one musical source at a time, this trio can produce the sound of an orchestra or a thumping dance club. They will blow minds one at a time.&lt;br /&gt;&lt;br /&gt;for(int &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;mindsBlown&lt;/span&gt; = 3; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;mindsBlown&lt;/span&gt; &lt; ∞; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;mindsBlown&lt;/span&gt;++){                    &lt;/div&gt;&lt;h2 style="text-align: center;"&gt;                         Personal Statement                     &lt;/h2&gt;                     &lt;div id="statement"&gt; Mr. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;McMasters&lt;/span&gt; looked through the frosting to look for a triumphant family. He found the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Ketsas&lt;/span&gt; living in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Jembrana&lt;/span&gt; region of Bali during ancient, unseen times. He chronicled four generations of their struggles and triumphs. During the third generation, a holy musical instrument appeared in the dreams of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;Yalim&lt;/span&gt;, the son of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;Paraseti&lt;/span&gt; and Grandson to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;Djatu&lt;/span&gt;. He followed the vision, built the instrument and gave it to his son, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;Sesho&lt;/span&gt;. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;Sesho&lt;/span&gt; went on to use the instrument to unite the people of the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;Jembrana&lt;/span&gt; region and bring peace to the land.&lt;br /&gt;&lt;br /&gt;Mr. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;McMasters&lt;/span&gt; has informed us of the properties of this divine tool and we have followed his commands and reconstructed it as faithfully as we can with modern technology. They are gifts from the great ether of inspiration. &lt;/div&gt;                      &lt;h2 style="text-align: center;"&gt;                         Background                    &lt;/h2&gt;                     &lt;div id="background"&gt; Knowledge of Processing, MIDI, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;XBee&lt;/span&gt; radios, circuitry for analog and digital inputs, gourd carving, tonal theory, and Mr. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;McMasters&lt;/span&gt; have all richly contributed to the culmination of these instruments. All required much research. &lt;/div&gt;                      &lt;h2 style="text-align: center;"&gt;                         Audience                     &lt;/h2&gt;                     &lt;div id="audience"&gt;                         Everyone and their babies and their grandparents and their great grandparents.                    &lt;/div&gt;                      &lt;h2 style="text-align: center;"&gt;                         User Scenario                     &lt;/h2&gt;                     &lt;div id="scenario"&gt;You come, you hear, your mind explodes, and then you bond with everyone around you who also has an exploded brain. &lt;/div&gt;                      &lt;h2 style="text-align: center;"&gt;                         Implementation                    &lt;/h2&gt;                     &lt;div id="tech"&gt; They are made of wood or gourds, they are filled with wires and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;techy&lt;/span&gt; stuff, and they are played with the hands, the mind, and the spirit. &lt;/div&gt;                      &lt;h2 style="text-align: center;"&gt;                         Conclusion                     &lt;/h2&gt;                     &lt;div id="conclusion"&gt; We are closer to understanding Mr. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;McMasters&lt;/span&gt;' story of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;Yalim&lt;/span&gt; from the Four Generations and the &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_18"&gt;byproducts&lt;/span&gt; form a bounty of knowledge about &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;microcontrollers&lt;/span&gt;, serial communication, the innards of gourds, and many, many other things. &lt;/div&gt;                      &lt;h2 style="text-align: center;"&gt;                         References                     &lt;/h2&gt;                     &lt;div id="references"&gt; All credit goes to Mr. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;McMasters&lt;/span&gt;, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;Yalim&lt;/span&gt;, and the little receptors in ourselves that allow us to hear from the both of them.&lt;br /&gt;&lt;br /&gt;&lt;h2 style="text-align: center;"&gt;Photos &lt;/h2&gt;&lt;h2 style="text-align: center; font-weight: normal;"&gt;&lt;span&gt;&lt;span style="font-size:100%;"&gt;(more photos on the way!)&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;  &lt;h2 style="text-align: center; font-weight: normal;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1786-1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1786-1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;Charles working on the GUI&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1805-1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1805-1.jpg" alt="" border="0" /&gt;&lt;/a&gt;the analog PlayStation style joysticks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1793-1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1793-1.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;h2 style="text-align: center;"&gt; &lt;/h2&gt;&lt;div style="text-align: center;"&gt;the bottom of a beautifully soldered XBee breakout board&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1791-1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1791-1.jpg" alt="" border="0" /&gt;&lt;/a&gt;XBee!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1810-1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1810-1.jpg" alt="" border="0" /&gt;&lt;/a&gt;the neck of the GuiToque&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1812-1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://i62.photobucket.com/albums/h84/joshbg2k/DSCN1812-1.jpg" alt="" border="0" /&gt;&lt;/a&gt;thumb board on the back of the neck&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/860221418161928675-7492119759588245353?l=polyvox10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://polyvox10.blogspot.com/feeds/7492119759588245353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=860221418161928675&amp;postID=7492119759588245353' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/860221418161928675/posts/default/7492119759588245353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/860221418161928675/posts/default/7492119759588245353'/><link rel='alternate' type='text/html' href='http://polyvox10.blogspot.com/2007/12/introducing-polyvox-series.html' title='Introducing the Colliadora Series'/><author><name>Driving to MIA!</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-860221418161928675.post-4003612478927085605</id><published>2007-08-05T14:15:00.000-04:00</published><updated>2007-12-05T14:16:55.577-05:00</updated><title type='text'>Look at Our Slideshow</title><content type='html'>&lt;a href="http://www.flickr.com/photos/45006005@N00/sets/72157603386286919/show/"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/860221418161928675-4003612478927085605?l=polyvox10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://polyvox10.blogspot.com/feeds/4003612478927085605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=860221418161928675&amp;postID=4003612478927085605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/860221418161928675/posts/default/4003612478927085605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/860221418161928675/posts/default/4003612478927085605'/><link rel='alternate' type='text/html' href='http://polyvox10.blogspot.com/2007/12/look-at-our-slideshow.html' title='Look at Our Slideshow'/><author><name>Driving to MIA!</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-860221418161928675.post-1670552561389834541</id><published>2007-06-05T13:18:00.000-04:00</published><updated>2007-12-05T13:21:25.542-05:00</updated><title type='text'>Playback Mode Source Code</title><content type='html'>/*&lt;br /&gt;EXPLANATION OF PLAYBACK MODE&lt;br /&gt;&lt;br /&gt;5 Maps uploaded from the GUI:&lt;br /&gt;Maps are different setups for Buttons and all the values contained within them.&lt;br /&gt;&lt;br /&gt;10 Buttons per Map:&lt;br /&gt;Buttons are analog joysticks with momentary digital switches on the z-axis.&lt;br /&gt;&lt;br /&gt;3 Positions per Button:&lt;br /&gt;Positions are different ways to move a Button:&lt;br /&gt;Low = Low range on the analog stick.&lt;br /&gt;Middle = High reading on the digital switch.&lt;br /&gt;High = High range on the analog stick.&lt;br /&gt;&lt;br /&gt;3 Slots per Position:&lt;br /&gt;Slots are places that store Properties of Abilities.&lt;br /&gt;Each Slot value in the fullArray contains two bytes:&lt;br /&gt;Which Map and which Slot on that Map&lt;br /&gt;&lt;br /&gt;3 Properties of Abilities per Slot:&lt;br /&gt;Properties include a Declarator of Ability,&lt;br /&gt;Ability, and degree of Ability.&lt;br /&gt;EXAMPLE: Properties for Slot[0]&lt;br /&gt;         Property[0] = 1 // a note-on channel change&lt;br /&gt;         Property[1] = 144 // note-on for channel one&lt;br /&gt;         Property[2] = 254 // an unused byte&lt;br /&gt;        &lt;br /&gt;         Properties for Slot[1]&lt;br /&gt;         Property[3] = 4 // an octave change&lt;br /&gt;         Property[4] = 146 // octave change on channel 3&lt;br /&gt;         Property[5] = 48 // (48 - 60) + pitches on channel 3&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;#include &lt;avr/pgmspace.h&gt; // Library for Flash memory. This lets us store values in memory so that we can recall our maps without uploading again.&lt;br /&gt;PROGMEM  prog_uint16_t savedArray[2250];&lt;br /&gt;&lt;br /&gt;byte fullArray[2250]; //This stores all the numbers we'll need for everything.&lt;br /&gt;&lt;br /&gt;boolean uploadMode = false; // True if the digital read of the PBULpin is 0, and it runs communication with the GUI from the computer&lt;br /&gt;boolean playbackMode = false; // True if the digital read of the PBULpin is 1, and it runs communication with the CDo&lt;br /&gt;boolean uploadComplete = false; // True once fullArray is loaded up with Serial.read from the GUI.&lt;br /&gt;boolean valuesSaved = true; // True once fullArray is saved into EEPROM.&lt;br /&gt;boolean valuesLoaded = false; //For loading values from EEPROM when in the beginning of playback mode. This takes 256 seconds.&lt;br /&gt;boolean slotParse = false; //For getting active slot values from the fullArray.&lt;br /&gt;int firstSlotbyte = 0;&lt;br /&gt;int secondSlotbyte = 0;&lt;br /&gt;int slotCounter = 0;&lt;br /&gt;boolean propertyParse = false; //For getting property values for each slot.&lt;br /&gt;&lt;br /&gt;int activeMap = 0;&lt;br /&gt;byte slot[450]; // number of possible slot numbers&lt;br /&gt;byte declarator[450];&lt;br /&gt;byte ability[450];&lt;br /&gt;byte degree[450];&lt;br /&gt;int propertyCounter = 0;&lt;br /&gt;int PBULpin = 13;&lt;br /&gt;&lt;br /&gt;//variables for mux&lt;br /&gt;int muxValue[16];&lt;br /&gt;int a= 2;     &lt;br /&gt;int b= 3;      &lt;br /&gt;int c= 4;       &lt;br /&gt;int d= 5; &lt;br /&gt;int analog0 = 0;   &lt;br /&gt;&lt;br /&gt;//variables for midiBytes&lt;br /&gt;byte midiByte1[10];&lt;br /&gt;byte midiByte2[10];&lt;br /&gt;byte midiByte3[10];&lt;br /&gt;&lt;br /&gt;void setup() {&lt;br /&gt; &lt;br /&gt;  // initialize serial communications at 9600 bps:&lt;br /&gt;  if(digitalRead(PBULpin) == 0){ //uploadMode&lt;br /&gt;  Serial.begin(9600);&lt;br /&gt;  uploadMode = true;&lt;br /&gt;  }else if(digitalRead(PBULpin) == 1){&lt;br /&gt;  Serial.begin(31250);&lt;br /&gt;  playbackMode = true;&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;  // fill Slots with  ("blanks")&lt;br /&gt;  for (int i = 0; i &lt; 127; i++) {&lt;br /&gt;    slot[i] = 254;&lt;br /&gt;  }&lt;br /&gt; &lt;br /&gt;  //variables for mux&lt;br /&gt;  pinMode(analog0, INPUT);&lt;br /&gt;  pinMode(a,OUTPUT);&lt;br /&gt;  pinMode(b,OUTPUT);&lt;br /&gt;  pinMode(c,OUTPUT);&lt;br /&gt;  pinMode(d,OUTPUT);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void loop() {&lt;br /&gt;  //============================&lt;div id="1eqq" class="ArwC7c ckChnd"&gt;&lt;wbr&gt;==============================&lt;wbr&gt;=============================&lt;br /&gt;  //Upload&lt;br /&gt;   if(uploadMode){&lt;br /&gt;     if(!uploadComplete){&lt;br /&gt;        if (Serial.available () &gt; 0) {&lt;br /&gt;           for (int i = 0; i &lt; 512; i++){&lt;br /&gt;      fullArray[i] = Serial.read();&lt;br /&gt;       //Serial.print(Pvalues[i],BYTE&lt;wbr&gt;); // Uncomment if you need to check for a problem between Processing and Arduino&lt;br /&gt;       }&lt;br /&gt;       }  &lt;br /&gt;    uploadComplete = true;&lt;br /&gt;    valuesSaved = false;&lt;br /&gt;   }&lt;br /&gt;   //----------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;------------------------------&lt;br /&gt;   if(!valuesSaved){&lt;br /&gt;     for (int i = 0; i &lt; 512; i++){&lt;br /&gt;       if (fullArray[i] != 255 &amp;amp;&amp;amp; fullArray[i] !=-1){&lt;br /&gt;       PROGMEM  prog_uint16_t savedArray[i] = fullArray[i];&lt;br /&gt;       //delay(100); //uncomment if you need to slow it down&lt;br /&gt;     }  &lt;br /&gt;     } &lt;br /&gt;     valuesSaved = true;&lt;br /&gt;   }&lt;br /&gt;   }&lt;br /&gt;   //============================&lt;wbr&gt;==============================&lt;wbr&gt;==============================&lt;wbr&gt;====&lt;br /&gt;   //Playback&lt;br /&gt;   if(playbackMode){ &lt;br /&gt;     //Load the fullArray from EEPROM&lt;br /&gt;     if(!valuesLoaded){&lt;br /&gt;      for (int i = 0; i &lt; 512; i++){&lt;br /&gt;       fullArray[i]  = pgm_read_word_near(savedArray + i);&lt;br /&gt;        /* FOR DEBUGGING&lt;br /&gt;        Serial.print(i);&lt;br /&gt;        Serial.print("\t");&lt;br /&gt;        Serial.print(fullArray[i], DEC);&lt;br /&gt;        Serial.println();&lt;br /&gt;        */&lt;br /&gt;      }&lt;br /&gt;      valuesLoaded = true;&lt;br /&gt;     }&lt;br /&gt; //---------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;-------&lt;br /&gt;  // copy Slots from fullArray, look for endByte 254 to be done&lt;br /&gt;  for (int i = 0; i &lt; 450; i+=2) {&lt;br /&gt;    if (!slotParse) {                         // logic gate&lt;br /&gt;      if (fullArray[i] != 254) {// if the full array hasn't reached the 254 yet...&lt;br /&gt;        firstSlotbyte = fullArray[i];&lt;br /&gt;        secondSlotbyte = fullArray[i+1];&lt;br /&gt;        slots[slotCounter] = firstSlotbyte * secondSlotbyte;           &lt;br /&gt;        slotCounter++;                &lt;wbr&gt;        &lt;br /&gt;      } else {&lt;br /&gt;        slotCounter++;&lt;br /&gt;        slotParse = true;                      // when it reaches a 254, we're finished with the active slots&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  //----------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;-------&lt;br /&gt;  //copy the rest of the fullArray into the property array&lt;br /&gt;   if (!propertyParse) {&lt;br /&gt;   for (int i = slotCounter; i &lt; 2250; i+=3) {   // start looking in full array AFTER the slots&lt;br /&gt;   if(fullArray[i] !=254){&lt;br /&gt;        declarator[propertyCounter] = fullArray[i]; &lt;br /&gt;        ability[propertyCounter] = fullArray[i+1];&lt;br /&gt;        degree[propertyCounter] = fullArray[i+2];&lt;br /&gt;        propertyCounter++;  &lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;      propertyParse = true;&lt;br /&gt;   }&lt;br /&gt;   //----------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;--------&lt;br /&gt;   //Constantly read in multiplexer values&lt;br /&gt;   for (int muxPin = 0; muxPin &lt; 16; muxPin ++) {&lt;br /&gt;    int pinOne = 1  &amp;amp; muxPin;&lt;br /&gt;    int pinTwo = 1  &amp;amp; (muxPin &gt;&gt; 1) ;&lt;br /&gt;    int pinThree = 1  &amp;amp; (muxPin &gt;&gt; 2);&lt;br /&gt;    int pinFour = 1  &amp;amp; (muxPin &gt;&gt; 3);&lt;br /&gt;&lt;br /&gt;    digitalWrite(a,pinOne);&lt;br /&gt;    digitalWrite(b,pinTwo);&lt;br /&gt;    digitalWrite(c,pinThree);&lt;br /&gt;    digitalWrite(d,pinFour);&lt;br /&gt;&lt;br /&gt;    muxValue[muxPin] = analogRead(analog0);&lt;br /&gt;&lt;br /&gt;    //Serial.print(muxValue[muxPin&lt;wbr&gt;], DEC);&lt;br /&gt;    //Serial.print("\t");&lt;br /&gt;  }&lt;br /&gt;   //----------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;----------&lt;br /&gt;   //constantly check to see which map is active&lt;br /&gt;   for (int i = 8; i &lt; 13; i ++){&lt;br /&gt;   if( muxValue[i]== 1023){&lt;br /&gt;     activeMap = i-7;&lt;br /&gt;   }&lt;br /&gt;   }&lt;br /&gt;   //----------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;------------------------------&lt;wbr&gt;----------&lt;br /&gt;   //Joysticks&lt;br /&gt;     //Analog low for 1 through 5&lt;br /&gt;     for (int i = 0; i &lt; 5; i ++){&lt;br /&gt;       if(muxValue[i] &lt; 300){ //if position low on button i&lt;br /&gt;         for(int j = 0; j &lt; 450; j++){ // look through the slots array to see if it has active slots&lt;br /&gt;           if(slot[j] == i*3 || slot[j] == (i*3)+1 || slot[j] == (i*3)+2){ //if it does then grab the properties and send them to the appropriate function&lt;br /&gt;            if(declarator[j] == 1){&lt;br /&gt;              channelFunction(ability[j]);&lt;br /&gt;            }else if(declarator[j] == 2){&lt;br /&gt;              pitchFunction(ability[j]);&lt;br /&gt;            }else if(declarator[j] == 3){&lt;br /&gt;              velocityFunction(ability[j], degree[j]);&lt;br /&gt;            }else if(declarator[j] == 4){&lt;br /&gt;              octaveFunction(ability[j]&lt;wbr&gt;,degree[j]);&lt;br /&gt;            }else if(declarator[j] == 5){&lt;br /&gt;              pitchbendFunction(ability[j]);&lt;br /&gt;            }else if(declarator[j] == 6){&lt;br /&gt;              ccFunction(ability[j],degre[j];&lt;br /&gt;            }&lt;br /&gt;           }&lt;br /&gt;         }&lt;br /&gt;       }&lt;br /&gt;     } &lt;br /&gt;         }&lt;br /&gt;        &lt;br /&gt;       }&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/860221418161928675-1670552561389834541?l=polyvox10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://polyvox10.blogspot.com/feeds/1670552561389834541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=860221418161928675&amp;postID=1670552561389834541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/860221418161928675/posts/default/1670552561389834541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/860221418161928675/posts/default/1670552561389834541'/><link rel='alternate' type='text/html' href='http://polyvox10.blogspot.com/2007/06/playback-mode-source-code.html' title='Playback Mode Source Code'/><author><name>Driving to MIA!</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
