
-----------------------------------
musicmaniac0428
Sat Dec 19, 2009 3:48 pm

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?

-----------------------------------
apomb
Sat Dec 19, 2009 4:04 pm

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 [url=http://compsci.ca/holtsoft/doc/parallelget.html] parallelget  and [url=http://compsci.ca/holtsoft/doc/parallelput.html] parallelput  doc links. 

Hope this helps

-----------------------------------
musicmaniac0428
Sat Dec 19, 2009 4:45 pm

RE:Music Help
-----------------------------------
thanks

-----------------------------------
musicmaniac0428
Sat Dec 19, 2009 8:37 pm

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

-----------------------------------
apomb
Sat Dec 19, 2009 8:56 pm

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.
