This NXT reads a strip a paper, then plays the melody that it reads from the paper strip.
4 comments:
nxTeach
said...
How is the tune encoded on the paper? To me, it doesn't look like there are enough marks on the paper to produce such a long, complicated melody. Does anyone know where we can get more details?
I think the light sensor reads the color on the paper, and each color stands for a "note" in the program. If I can get more information, I'll post it here.
Oh, you're right. I didn't look close enough the first time. I was thinking both note duration and pitch were encoded, but it looks like the colors only encode pitch.
Rick is right, its just a simple player. I made it for a school project. Each color corresponds to a note which is determined by the amount of light that is reflected back to the light sensor.
4 comments:
How is the tune encoded on the paper? To me, it doesn't look like there are enough marks on the paper to produce such a long, complicated melody. Does anyone know where we can get more details?
nxteach,
I think the light sensor reads the color on the paper, and each color stands for a "note" in the program. If I can get more information, I'll post it here.
Rick
Oh, you're right. I didn't look close enough the first time. I was thinking both note duration and pitch were encoded, but it looks like the colors only encode pitch.
Rick is right, its just a simple player. I made it for a school project. Each color corresponds to a note which is determined by the amount of light that is reflected back to the light sensor.
Post a Comment