Computer Science Canada Music Help |
Author: | musicmaniac0428 [ Sat Dec 19, 2009 3:48 pm ] |
Post subject: | Music Help |
Is it possible to program certain pins in your parallel port to create certain notes (programmed on turing) when their circuit is completed. If so, any suggestions on how to do this? |
Author: | apomb [ Sat Dec 19, 2009 4:04 pm ] |
Post subject: | RE:Music Help |
parallell put and parallell get... learn these along with a solid working knowledge of programming practices, and you're set. here are parallelget and parallelput doc links. Hope this helps |
Author: | musicmaniac0428 [ Sat Dec 19, 2009 4:45 pm ] |
Post subject: | RE:Music Help |
thanks |
Author: | musicmaniac0428 [ Sat Dec 19, 2009 8:37 pm ] |
Post subject: | RE:Music Help |
Any chance this could work... parallelput(1) var value:int loop value:=parallelget if value= 1 then play ("c") if value= 2 then play ("d") if value= 4 then play ("e") if value= 8 then play ("f") if value= 16 then play ("g") end loop |
Author: | apomb [ Sat Dec 19, 2009 8:56 pm ] |
Post subject: | RE:Music Help |
no, since you need to call the parallelget method, since that is the method that receives data from the parallel port. but otherwise, it looks like that might work properly... the only way to know for sure is to test it out. |