Computer Science Canada Fixing turing's Music.Play |
Author: | beard0 [ Mon Oct 31, 2005 4:36 pm ] | ||
Post subject: | Fixing turing's Music.Play | ||
Got the idea for this from an old topic that was brought up again, but implimented it in a more useful way. I made a module containing Play that is compatible with Turing's Music.Play, but doesn't cut off the last note. It also adds some features. note: to acheive dotted ntoes, use the [x,y] fraction notation that I have defined. Eg. dotted quarter = 1/4 + 1/2(1/4) = 1/4 + 1/8 = 3/8, therefore, use [3,8].
|
Author: | jamonathin [ Tue Nov 01, 2005 8:34 pm ] |
Post subject: | |
I dont have sound at school nor Turing at home, so i cant really test it, but i know what you mean about cutting off the last note. Everything in your code looks good, and its good to see that you added in dotted notes, gj ![]() |
Author: | [Gandalf] [ Wed Nov 02, 2005 12:28 am ] |
Post subject: | |
Yep, very nice code, and very functional. Think it's possible to add things like ties and slurs now? It's too bad we are stuck with messing around with frequencies when we could be handling midis, making nicer music. But, hey, what's one more thing to complain about, eh? ![]() |
Author: | beard0 [ Wed Nov 02, 2005 3:57 pm ] |
Post subject: | |
[Gandalf] wrote: Think it's possible to add things like ties and slurs now?
To achieve a tie, just add the two note length values, and use [x,y]. Acheiving slurs would be a little more difficult... the only thing I can think to do would be to make regular notes a little stacattoed, by placing small rests between them, and removing the rests for slurs. To actually slur wouldn't really be possible, as we're dealing with frquencies, unless what you're after is a trombone-style slur, which might be kinda fun. |