Computer Science Canada

Piano

Author:  DJ [ Sat May 24, 2003 3:23 pm ]
Post subject:  Piano

Heres a little piano program i made...
press keys a-j for notes a-g
press keys 1, 2, 4, 6, and 8 to change note length

Author:  Asok [ Sat May 24, 2003 4:03 pm ]
Post subject: 

you seem to be missing a pic in your zip file, it wont run properly.

Author:  Homer_simpson [ Sat May 24, 2003 4:40 pm ]
Post subject: 

get the same error here... =/

Author:  kythoon [ Sat May 24, 2003 4:47 pm ]
Post subject: 

and here

Author:  DJ [ Sat May 24, 2003 5:21 pm ]
Post subject:  Working now

I tried it on my own comp first

Author:  JSBN [ Sat May 24, 2003 6:06 pm ]
Post subject: 

a s d a d a d- s d f f s d f - d f g d g d g - f g h h f g h - g a s d f g h - h s d f g h j - k j h f j g k!

+ 5 bits

Author:  Corpy [ Sat May 24, 2003 6:28 pm ]
Post subject: 

ya same here Confused

Author:  Tony [ Sat May 24, 2003 8:12 pm ]
Post subject: 

looks good... though perhaps you can do something about that pouse between sounds... it kind of gets in the way

Author:  Homer_simpson [ Sun May 25, 2003 12:17 pm ]
Post subject: 

it doesn't play sixth notes =(
but looks nice Very Happy

Author:  white_dragon [ Mon Jan 12, 2004 6:24 pm ]
Post subject: 

mine doesn't work. i found da exact (or somethin like it) under da turing examples................... Rolling Eyes Rolling Eyes Rolling Eyes NO CREDIT FOR MAKIN A TING TAT'S NOT URS!!!!!!!!!!! Evil or Very Mad

Author:  Andy [ Mon Jan 12, 2004 8:19 pm ]
Post subject: 

whats wit u and flaming ppl.. white_dragon... be nice... or no bits for u

Author:  shorthair [ Thu Jan 15, 2004 5:10 pm ]
Post subject: 

I think the flame was fair , but it was harsh , theres no need to be takin things outta the book and callin them your own Mad Mad

Author:  white_dragon [ Wed Jan 28, 2004 7:08 pm ]
Post subject: 

sry bout tat but it's just tat ppl shouldn't take tings for they're own ting n give no credit 2 anyone else. sry bout tat again. Crying or Very sad just tryin 2 get a point across.

Author:  Paul [ Wed Jan 28, 2004 7:22 pm ]
Post subject: 

I didn't find it in the examples, a program with a graphical keyboard? Even if there is the same program, how do u know he didn't think up of the idea himself? afterall he did submit an exe file, how do u know if he copied the exact coding? (If I missed something here, I feel stupid in advance)

Author:  jonos [ Wed Jan 28, 2004 7:28 pm ]
Post subject: 

white_dragon wrote:
mine doesn't work. i found da exact <b>(or somethin like it)</b> under da turing examples................... Rolling Eyes Rolling Eyes Rolling Eyes NO CREDIT FOR MAKIN A TING TAT'S NOT URS!!!!!!!!!!! Evil or Very Mad


i don't think white_dragon thought he stole it for sure, maybe the large shout was just for everyone in general against stealing stuff.

Author:  Paul [ Wed Jan 28, 2004 7:31 pm ]
Post subject: 

The only thing I found in the turing examples was:
code:

% The "Music.Play" program.
% Play quickly (eighth notes)
Music.Play ("8cdefgab>c")
Music.Play ("<bagfedc")

% Now play slower (half notes)
Music.Play ("2cdefgab>c")
Music.Play ("<bagfedc")

Author:  McKenzie [ Wed Jan 28, 2004 8:08 pm ]
Post subject: 

It just happens way too often that someone posts something that they "borrowed". I think dragon was just a bit too trigger happy. The reality is when you look at the play command it screams "make a graphical example!" 8 years ago I used to give that as an assignment (noisy room)

Author:  Paul [ Wed Jan 28, 2004 8:11 pm ]
Post subject: 

Whoa, ur a teacher? Finally, someone who can make up for the gap my teacher left in my lessons by leaving for 30 min every other class Shifty
j/k

Author:  jonos [ Wed Jan 28, 2004 8:12 pm ]
Post subject: 

my teacher had all sound cards removed from the computers because (though she didn't teach it), someone found out the play() function and told everyone and so when she was talking people would start playing around with it. i think the sound or whatever it is to play frequency still works, i don't know though

Author:  McKenzie [ Wed Jan 28, 2004 8:20 pm ]
Post subject: 

Want to know 90% of what I teach in gr 11, here I posted it already
www.compsci.ca/v2/viewtopic.php?p=26623&highlight=#26623

Author:  Paul [ Wed Jan 28, 2004 8:52 pm ]
Post subject: 

EH?!? Im in grade 10 and we already learned all that except for the procedure and function, I learned procedure by myself, and we're only half way thru the year. Maybe u go deeper into it.

Author:  McKenzie [ Wed Jan 28, 2004 8:55 pm ]
Post subject: 

Did you download the examples???

Author:  shorthair [ Wed Jan 28, 2004 8:56 pm ]
Post subject: 

compsic has no real outline that anyone follows , all depends on the teacher if your grade 10 course wsa like that , then you have a rockin compsci teacher that knows what he is talking about , just llike McKenzie , but there are lots of unlucky peopel that get teachers that are just right out of the book peopel and thats really bad for programming

Author:  jonos [ Wed Jan 28, 2004 9:30 pm ]
Post subject: 

before our teacher came back from her break away from school (personal reasons), we had this guy who probably knew every single thing about computers BUT programming. he just gave us the book and told us to have fun.

Author:  white_dragon [ Thu Jan 29, 2004 10:53 am ]
Post subject: 

by the way.............i found where it is. DJ got it from a turing tutorial guide (3rd edition) by J.N.P Hume. it's a book. borrow it from a library or something. just makin a point.

Author:  Delta [ Thu Jan 29, 2004 11:44 am ]
Post subject: 

well either way.. I think DJ should spice it up a bit... like have it so you can save your songs... show a scale... let the user go up and down octaves, notes can be picked by clicking on the scale.. ya that'd be kewl... if you don't make it... I'm going to... after my pic~2~code program Smile

Author:  Paul [ Thu Jan 29, 2004 12:20 pm ]
Post subject: 

looks like after your done ur pic 2 code program, your up for anything.

Author:  Delta [ Thu Jan 29, 2004 1:36 pm ]
Post subject: 

ya its true... but thats because I like programming things that I haven't done yet... or anyone else have done... its funner that way... creativity and originality make your programs even better Smile

Author:  McKenzie [ Thu Jan 29, 2004 2:44 pm ]
Post subject: 

Here is some piano code I made for fun. Shows basic piano with a mouse.

Author:  Paul [ Thu Jan 29, 2004 3:06 pm ]
Post subject: 

can turing play longer notes?

Author:  shorthair [ Thu Jan 29, 2004 5:18 pm ]
Post subject: 

yeah either a full =1 , half = 2 , quarter =4 , eighth = 8 , sisteenth =16,

16 being the shorest and 1 being the longest

Author:  McKenzie [ Thu Jan 29, 2004 6:03 pm ]
Post subject: 

Oh there is lots of room for improvement in the program, record songs, sharps & flats, note length, highlight key pressed...

Author:  Paul [ Fri Jan 30, 2004 9:44 pm ]
Post subject: 

Im experimenting with this Music.Play thing, is there any way at all to make a long note, without a pause in the middle?

Author:  Delta [ Fri Jan 30, 2004 11:30 pm ]
Post subject: 

I'm not sure what pause your talking about... because if you just type

Music.Play ("1a2b4c8d6e")

then there are no pauses ... I think the only way to make it pause is by putting a 'p' in there...

Author:  Paul [ Sat Jan 31, 2004 12:44 pm ]
Post subject: 

Must be my slow computer, its 6 years old Embarassed

Author:  white_dragon [ Sat Feb 07, 2004 5:08 pm ]
Post subject: 

lol. 6 years old. get a new one.


: