<p dir="ltr" style="margin-top:0; margin-bottom:0;">Yes, I agree with Don. You should do it the way original pneumatic roll worked, make sensing device large enough to never be fully covered by a gap between holes. It may be not so easy with tiny LEDs and optotransistors, but if you add 2 optos in a distance that is half the distance between holes, it will work.</p>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Why bother with tunable filters or counters if you can do it the right way from the start like it was invented 100 years ago.</p>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">Romn</p>
<br>
<p dir="ltr" style="margin-top:0; margin-bottom:0;">PS. Who am I to say "I agree with Don". I can only be happy that I think the same way as the master himself :) </p><br><br>---- Użytkownik Donald Tillman napisał ----<br><br>Interesting problem.<br><br>Try setting up the light source and phototransistor for an aperture width of exactly the distance between sequential holes.  Ie., one hole plus one space.<br><br>  -- Don<br>--<br>Donald Tillman, Palo Alto, California<br><a href="https://www.till.com">https://www.till.com</a><br><br>> On Nov 10, 2022, at 5:56 PM, Jean-Pierre Desrochers <<a href="mailto:jpdesroc@oricom.ca">jpdesroc@oricom.ca</a>> wrote:<br>> <br>> Hi all,<br>>  <br>> My Player piano reader project is going fine so far..<br>> Some little robotics stuff (stepper motors, sensors, etc..) going on now..<br>> I’m now in the process of reading the small holes scrolling<br>> with the music paper rolls ‘sandwiched’ between Infrared leds and 88 x Photo transistors (see the image below).<br>> The actual music data appears on the paper as parallel lines of small successive holes<br>> shown in blue below. Because of the need of paper sturdyness for long duration notes the original paper punches<br>> made small successive holes in the same note line instead of a steady cut in paper<br>> that could eventualy be damaged over time..<br>> That is shown by the blues dots below (successive holes).<br>> Now I need to read these constant note ‘ignoring’  all the occuring small holes<br>> during these long  duration notes..<br>> The second line shows what the reading Photo transistor ‘sees’<br>> and the third line shows an ideal reading stored in the micro.<br>> So far there are 2 ways I found to get close of the ideal reading :<br>> #1  Place a capacitor in parallel with each Photo transistors to get rid of the ‘pulsating holes’ on a continuous note<br>> #2  Use software with separate counters to ‘skip’ the incoming small pulses just enough not to miss any ‘real’ short notes.<br>> My challenge here is that the paper roll speed will be a variable one<br>> which could be varied from  1feet/min  up to  13feet/min.<br>> That’s a  1 to 13 ratio !!<br>> So method #1 using caps in parallel with the photo-transistors (fixed RC time)  will not be feasable (I think).<br>> Is there another way you could think of to get rid of these small pulses<br>> when necessary ? <br>> Thanks !<br><br>_______________________________________________<br>Synth-diy mailing list<br><a href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><br><a href="http://synth-diy.org/mailman/listinfo/synth-diy">http://synth-diy.org/mailman/listinfo/synth-diy</a><br>Selling or trading? Use <a href="mailto:marketplace@synth-diy.org">marketplace@synth-diy.org</a><br>