Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Music Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
musicmaniac0428




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
apomb




PostPosted: 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
musicmaniac0428




PostPosted: Sat Dec 19, 2009 4:45 pm   Post subject: RE:Music Help

thanks
musicmaniac0428




PostPosted: 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
apomb




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: