<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Texte brut Car";
        margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.TextebrutCar
        {mso-style-name:"Texte brut Car";
        mso-style-priority:99;
        mso-style-link:"Texte brut";
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR-CA link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoPlainText><span lang=EN-CA>I'm designing a piano Roll reader/player (yes antique paper piano rolls !)<br>that will read holes on a scrolling paper and play the actual musical notes<br>using MIDI standards..<br>This has already been done in the past but with very few documentations left<br>for DIYers like me.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-CA>So.. I'm thinking of using IR (940nm) LEDs, phototransistors and aligned short optical fibers<br>to read the actual scrolling holes. 90 phototransistors will be used as 'bit' readers.<br>I would use IR because paper is mostly opaque to 940nm wavelength<br>compared to visible light that could get through it.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-CA>Because of that high quantity of PT’s to be read I was thinking of using<br>rows/columns matrix of switches like keyboards in synths like this:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-CA><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-CA><img width=498 height=497 style='width:5.1875in;height:5.177in' id="Image_x0020_4" src="cid:image004.png@01D8B0B6.9A1910A0"></span><span lang=EN-CA><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-CA>But instead of switches like in this circuit I would use 2 pins phototransistors like this one:<br><img width=153 height=144 style='width:1.5937in;height:1.5in' id="Image_x0020_5" src="cid:image001.png@01D8B0B7.B9CD68A0"><br><br><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-CA>The resistors could be around 10K and this configuration would use only 2 x 8 bits ports.<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-CA>But I was wondering about using PT’s in a matrix like that would bring glitches or noise<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-CA>In the CPU readings.. <br>Has anybody used PT’s in such a circuit ?<o:p></o:p></span></p></div></body></html>