Computer Science Canada Need help with Music.Play and Music.Sound |
Author: | PianoGirl [ Thu Jan 06, 2005 5:53 pm ] |
Post subject: | Need help with Music.Play and Music.Sound |
I'm currently trying to make a program that will play certain notes depending on the key you press using Turing. However I don't know how to make it so I can play bass clef notes and treble clef notes at the same time. In turing, you use < or > to raise or lower the octave, but is there any way to make it so that you can play a note one octave lower than the other at the same time? I tried using Music.Sound to do this and it does work by specifying the different frequencies, but the forking (used for chords) is not working properly and does not sound good. Please help me out, thanks a bunch! - Julie |
Author: | Cervantes [ Thu Jan 06, 2005 8:10 pm ] |
Post subject: | |
You may be out of luck. Turing's sound capabilities are pretty poor. Though I'm not very experienced with them, so I could easily be wrong. |
Author: | Bored [ Thu Jan 06, 2005 9:22 pm ] | ||
Post subject: | |||
You could always create a couple processes and fork to play all of the. And have htes processes run off of a timer. For eaxample:
This code would play a sound at five seconds (noteOne) from starting the program, and another at ten seconds (noteTwo) and finally two at 15 seconds (both notes) and would put "done" on the screen at 20 seconds P.S. You can copy and paste this as a base to start from if you'd like, just remember to replace the .....'s with the proper notes |
Author: | Cervantes [ Thu Jan 06, 2005 10:17 pm ] | ||
Post subject: | |||
hmm, I was playing around, and, based on Bored's idea, came up with this:
I think it's a good example of a.) how Turing's Music/Sound capabilities suck and b.) how Turing's processes suck. ![]() |
Author: | Bored [ Thu Jan 06, 2005 10:50 pm ] | ||
Post subject: | |||
Crevantes i've expanded a bit on your idea and added my own in heres a working simple code.
Even though it's pretty simple right now with more processes and some time to right out all the timing loops you could compose some pretty cool pieces |
Author: | MihaiG [ Thu Jan 06, 2005 10:57 pm ] | ||
Post subject: | |||
he he he heres a good thing...
make cool songs...i made them using my musical ear |