Computer Science Canada Turing music- Fix the code |
Author: | Blackfire [ Fri May 08, 2009 7:13 am ] |
Post subject: | Turing music- Fix the code |
Well the song is colors by flow >f8<g+8>g+16f+16d+16f16r16f16r16f16c8c+8 <g+8g+8>g+16f+16d+16f16r16f16r16f16c8c+8 <g+8g+8>g+16f+16d+16f16r16f16r16f16c8c+8 d+8f8d+8f8r8<<g+8>g+8f+8 f4.r8f8f+4f4 d+4c+4c4<g+8 >d+2d+4c+8d+4 c+8d+8f4.r8f8 It sounds just like the song but it skips sometimes. Hard to explain in text, give it a try and tell me whats wrong and ill try to fix it |
Author: | Kharybdis [ Fri May 08, 2009 7:44 am ] |
Post subject: | RE:Turing music- Fix the code |
Please use syntax tags ... The skips themselves (although i really didn't notice any), would result from incorrect coding. It DOES sound just like the song, so good job ![]() Again, i didn't notice any skips at all. |
Author: | Blackfire [ Fri May 08, 2009 8:16 am ] |
Post subject: | Re: Turing music- Fix the code |
i had to make a quick post so i didn't have time to read the rules and so on. thanks |
Author: | [Gandalf] [ Fri May 08, 2009 10:17 am ] |
Post subject: | RE:Turing music- Fix the code |
The last note of each play() or Music.Play() call is cut off half way or so, giving a skipping effect when it moves from one line to the other. As I recall, you can try to keep everything in one play() call, and double the length of the last note... Not the best solution, but I think it helps a bit. |
Author: | DanTheMan [ Thu May 14, 2009 8:41 am ] |
Post subject: | RE:Turing music- Fix the code |
-Scratch that- You need to put it all on one line. Luckily yours will fit. just place this code all in one line of your turing program: Music.Play (">f8<g+8>g+16f+16d+16f16r16f16r16f16c8c+8<g+8g+8>g+16f+16d+16f16r16f16r16f16c8c+8<g+8g+8>g+16f+16d+16f16r16f16r16f16c8c+8d+8f8d+8f8r8<<g+8>g+8f+8f4.r8f8f+4f4d+4c+4c4<g+8>d+2d+4c+8d+4c+8d+8f4.r8f8") Nice song. |