Paulie Posted July 30, 2006 Share Posted July 30, 2006 (edited) If you know how to play the piano, this is an easy beep player that has functions based on the numbers of the keysSee lastest post For GUI V. 2!!!heres old code:CODE#cs§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§Beep Songsby PaulieParameters:_*Key*($duration)*Key* - # of keyboard keyDuration - How long to hold it§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§#ceGlobal $list[100]$list = StringSplit("4186.01|3951.07|"& _"3729.31|3520.00|3322.44|"& _"3135.96|2959.96|2793.83|"& _"2637.02|2489.02|2349.32|"& _"2217.46|2093.00|1975.53|"& _"1864.66|1760.00|1661.22|"& _"1567.98|1479.98|1396.91|"& _"1318.51|1244.51|1174.66|"& _"1108.73|1046.50|987.767|"& _"932.328|880.000|830.609|"& _"783.991|739.989|698.456|"& _"659.255|622.254|587.330|"& _"554.365|523.251|493.883|"& _"466.164|440.000|415.305|"& _"391.995|369.994|349.228|"& _"329.628|311.127|293.665|"& _"277.183|261.626|246.942|"& _"233.082|220.000|207.652|"& _"195.998|184.997|174.614|"& _"164.814|155.563|146.832|"& _"138.591|130.813|123.471|"& _"116.541|110.000|103.826|"& _"97.9989|92.4986|87.3071|"& _"82.4069|77.7817|73.4162|"& _"69.2957|65.4064|61.7354|"& _"58.2705|55.0000|51.9130|"& _"48.9995|46.2493|43.6536|"& _"41.2035|38.8909|36.7081|"& _"34.6479|32.7032|30.8677|"& _"29.1353|27.5000|", "|");Notes Go Here ;Format - Number of key on the piano (1 lowest-88 highest), Duration to hold;-------------------Func _R($dura) Sleep($dura)EndFuncFunc _88($dura) Beep($list[1], $dura)EndFuncFunc _87($dura) Beep($list[2],$dura)EndFuncFunc _86($dura) Beep($list[3],$dura)EndFuncFunc _85($dura) Beep($list[4],$dura)EndFuncFunc _84($dura) Beep($list[5],$dura)EndFuncFunc _83($dura) Beep($list[6],$dura)EndFuncFunc _82($dura) Beep($list[7],$dura)EndFuncFunc _81($dura) Beep($list[8],$dura)EndFuncFunc _80($dura) Beep($list[9],$dura)EndFuncFunc _79($dura) Beep($list[10],$dura)EndFuncFunc _78($dura) Beep($list[11],$dura)EndFuncFunc _77($dura) Beep($list[12],$dura)EndFuncFunc _76($dura) Beep($list[13],$dura)EndFuncFunc _75($dura) Beep($list[14],$dura)EndFuncFunc _74($dura) Beep($list[15],$dura)EndFuncFunc _73($dura) Beep($list[16],$dura)EndFuncFunc _72($dura) Beep($list[17],$dura)EndFuncFunc _71($dura) Beep($list[18],$dura)EndFuncFunc _70($dura) Beep($list[19],$dura)EndFuncFunc _69($dura) Beep($list[20],$dura)EndFuncFunc _68($dura) Beep($list[21],$dura)EndFuncFunc _67($dura) Beep($list[22],$dura)EndFuncFunc _66($dura) Beep($list[23],$dura)EndFuncFunc _65($dura) Beep($list[24],$dura)EndFuncFunc _64($dura) Beep($list[25],$dura)EndFuncFunc _63($dura) Beep($list[26],$dura)EndFuncFunc _62($dura) Beep($list[27],$dura)EndFuncFunc _61($dura) Beep($list[28],$dura)EndFuncFunc _60($dura) Beep($list[29],$dura)EndFuncFunc _59($dura) Beep($list[30],$dura)EndFuncFunc _58($dura) Beep($list[31],$dura)EndFuncFunc _57($dura) Beep($list[32],$dura)EndFuncFunc _56($dura) Beep($list[33],$dura)EndFuncFunc _55($dura) Beep($list[34],$dura)EndFuncFunc _54($dura) Beep($list[35],$dura)EndFuncFunc _53($dura) Beep($list[36],$dura)EndFuncFunc _52($dura) Beep($list[37],$dura)EndFuncFunc _51($dura) Beep($list[38],$dura)EndFuncFunc _50($dura) Beep($list[39],$dura)EndFuncFunc _49($dura) Beep($list[40],$dura)EndFuncFunc _48($dura) Beep($list[41],$dura)EndFuncFunc _47($dura) Beep($list[42],$dura)EndFuncFunc _46($dura) Beep($list[43],$dura)EndFuncFunc _45($dura) Beep($list[44],$dura)EndFuncFunc _44($dura) Beep($list[45],$dura)EndFuncFunc _43($dura) Beep($list[46],$dura)EndFuncFunc _42($dura) Beep($list[47],$dura)EndFuncFunc _41($dura) Beep($list[48],$dura)EndFuncFunc _40($dura) Beep($list[49],$dura)EndFuncFunc _39($dura) Beep($list[50],$dura)EndFuncFunc _38($dura) Beep($list[51],$dura)EndFuncFunc _37($dura) Beep($list[52],$dura)EndFuncFunc _36($dura) Beep($list[53],$dura)EndFuncFunc _35($dura) Beep($list[54],$dura)EndFuncFunc _34($dura) Beep($list[55],$dura)EndFuncFunc _33($dura) Beep($list[56],$dura)EndFuncFunc _32($dura) Beep($list[57],$dura)EndFuncFunc _31($dura) Beep($list[58],$dura)EndFuncFunc _30($dura) Beep($list[59],$dura)EndFuncFunc _29($dura) Beep($list[60],$dura)EndFuncFunc _28($dura) Beep($list[61],$dura)EndFuncFunc _27($dura) Beep($list[62],$dura)EndFuncFunc _26($dura) Beep($list[63],$dura)EndFuncFunc _25($dura) Beep($list[64],$dura)EndFuncFunc _24($dura) Beep($list[65],$dura)EndFuncFunc _23($dura) Beep($list[66],$dura)EndFuncFunc _22($dura) Beep($list[67],$dura)EndFuncFunc _21($dura) Beep($list[68],$dura)EndFuncFunc _20($dura) Beep($list[69],$dura)EndFuncFunc _19($dura) Beep($list[70],$dura)EndFuncFunc _18($dura) Beep($list[71],$dura)EndFuncFunc _17($dura) Beep($list[72],$dura)EndFuncFunc _16($dura) Beep($list[73],$dura)EndFuncFunc _15($dura) Beep($list[74],$dura)EndFuncFunc _14($dura) Beep($list[75],$dura)EndFuncFunc _13($dura) Beep($list[76],$dura)EndFuncFunc _12($dura) Beep($list[77],$dura)EndFuncFunc _11($dura) Beep($list[78],$dura)EndFuncFunc _10($dura) Beep($list[79],$dura)EndFuncFunc _9($dura) Beep($list[80],$dura)EndFuncFunc _8($dura) Beep($list[81],$dura)EndFuncFunc _7($dura) Beep($list[82],$dura)EndFuncFunc _6($dura) Beep($list[83],$dura)EndFuncFunc _5($dura) Beep($list[84],$dura)EndFuncFunc _4($dura) Beep($list[85],$dura)EndFuncFunc _3($dura) Beep($list[86],$dura)EndFuncFunc _2($dura) Beep($list[87],$dura)EndFuncFunc _1($dura) Beep($list[88],$dura)EndFunc Edited March 22, 2008 by Paulie Link to comment Share on other sites More sharing options...
Paulie Posted July 30, 2006 Author Share Posted July 30, 2006 added new sample Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 added new sampleNo opinions For real?! Link to comment Share on other sites More sharing options...
taurus905 Posted July 31, 2006 Share Posted July 31, 2006 No opinions For real?! Paulie,I don't think anyone knows what to do with the three scripts you posted. I know I sure don't. Maybe you can explain.taurus905 "Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs Link to comment Share on other sites More sharing options...
NELyon Posted July 31, 2006 Share Posted July 31, 2006 i understand. And this could be useful for a boring day. Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 (edited) @CodeMyster- that was pretty much the point Paulie, I don't think anyone knows what to do with the three scripts you posted. I know I sure don't. Maybe you can explain. taurus905Lol, probably should have... :"> Ok here it goes If you were to look at the layout of a full Piano, and count the keys, you'd find 88 in all You call each note like you would the beep function, except there is only one parameter (duration) for me this makes beep song writing easier. So look at your nifty piano layout and find Middle C is key 40 to play Middle C for 2 seconds, you would do this _40(2000) say you wanted to write a song using the basic 5 keys (middle C and 4 white keys after it) _40(200) _42(200) _44(200) _45(200) _47(200) Note: the easiest formating is if you put the actual script in the include file, then you can make scripts with just the calls So to use my sample Put code into the include folder include it in one of my sample scripts the Beta Run I know its a pointless script, but it beats my musical keyboard script for songs by like 1000000x and you don't actually need to know the note names to do it if you have any more questions i'll try to explain more if you ask Edited July 31, 2006 by Paulie Link to comment Share on other sites More sharing options...
(^_^) Posted July 31, 2006 Share Posted July 31, 2006 (edited) Paulie,I don't think anyone knows what to do with the three scripts you posted. I know I sure don't. Maybe you can explain.taurus905haha ... not hard #include his beep songs function then play the song quite fun id like to think im his insperation for creating this he made some crazy beep for his mouse box game witch he added more after i put some in but im prolly notand i dont care about spell check... Edited July 31, 2006 by (^_^) [center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center] Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 )" data-cid="214823" data-date="Jul 30 2006, 10:40 PM">haha ... not hard #include his beep songs function then play the song quite fun id like to think im his insperation for creating this he made some crazy beep for his mouse box game witch he added more after i put some in but im prolly notand i dont care about spell check...Lol, I was always into the beep function, and when you put the beeps in the game i'm likeDuh!, why didn't I think of that?and i've always wanted to write beep songs and this script lets me do it easier than trying to get the note names and whateverSo i hope you like it, and I think i'm working on 'Fur Elise' Next, but i suck at that on the actual piano so its harder to do in code Link to comment Share on other sites More sharing options...
(^_^) Posted July 31, 2006 Share Posted July 31, 2006 (edited) Lol, I was always into the beep function, and when you put the beeps in the game i'm likeDuh!, why didn't I think of that?hahahaanyways nice function quite fun Edited July 31, 2006 by (^_^) [center][font="Arial Black"] DESEAN[/font][/center] [center]<<<WOW Fi$her>>>[/center][center]<<<mp3 player>>>[/center] Link to comment Share on other sites More sharing options...
taurus905 Posted July 31, 2006 Share Posted July 31, 2006 Paulie, Thanks for the explaination. I didn't realize at first that you had to paste the sample into the middle of the code to get it to work. This is something I would have been interested in a few years ago. Maybe I will become interested again. I have an HP-41CX that I wrote some songs for. I wanted to write "This Bud's for you." I generally like to be able to download a script and run it. If it does something I like, then I try to strip the parts that contain the funtionality I want. taurus905 "Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 (edited) Paulie,Thanks for the explaination. I didn't realize at first that you had to paste the sample into the middle of the code...taurus905Ya i probably should have been more clear the first time,Nvm not a midi orented song huhBeep songs are awesome Edited July 31, 2006 by Paulie Link to comment Share on other sites More sharing options...
taurus905 Posted July 31, 2006 Share Posted July 31, 2006 Paulie, I never learned how to play the piano, but maybe it's not too late. How hard would it be to adapt your script to turn your keyboard into a piano? I think that would be really cool. taurus905 "Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs Link to comment Share on other sites More sharing options...
theguy0000 Posted July 31, 2006 Share Posted July 31, 2006 coolis there any way to change the volume of the internal speaker?where did u find out what notes are what frequencies?why use Global $list[100] when there are only 89 elements?where can i find names of all the notes and what number they go to? The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 Paulie,I never learned how to play the piano, but maybe it's not too late. How hard would it be to adapt your script to turn your keyboard into a piano?I think that would be really cool. taurus905I could do that REALLY easy nowJust hotkeyset/_ispressed the functions in this script to keys you wantProblem is that there is only around 40-50 useable keys on a computer keyboard(with numpad), but 88 on a piano so laying it out is hard Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 (edited) cool is there any way to change the volume of the internal speaker? where did u find out what notes are what frequencies? why use Global $list[100] when there are only 89 elements? where can i find names of all the notes and what number they go to? :)I used this wikki http://en.wikipedia.org/wiki/Piano_key_frequencies give all not names and frequencies But i discovered an error in the script the lowest 6 frequencies aren't played by the computer so i guess we have to make do without the lowest half of the first octave Edit: I didn't double post 100 is a nice round number they have a Low- med- high but i don't know how to change it Edited July 31, 2006 by Paulie Link to comment Share on other sites More sharing options...
theguy0000 Posted July 31, 2006 Share Posted July 31, 2006 (edited) I could do that REALLY easy nowJust hotkeyset/_ispressed the functions in this script to keys you wantProblem is that there is only around 40-50 useable keys on a computer keyboard(with numpad), but 88 on a piano so laying it out is hardi found 100. assuming esc, F1-F12, PrtSc, Pause/break, backspace, tab, enter, both shift keys, the numpad, and that little key with a picture of a dropdown menu on it all count as useable keys...edit: oops you double posted Edited July 31, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 (edited) i found 100. assuming esc, F1-F12, PrtSc, Pause/break, backspace, tab, enter, both shift keys, the numpad, and that little key with a picture of a dropdown menu on it all count as useable keys...edit: oops you double posted But you cant hotkeyset JUST the mod keys like shift and ctrl or whateverso i got 26 letters4 arrow keys20 numbers with numpad and ones above letters11 other keys like brakets or whateverthen the 6 keys like insert/delete/pgupF# keys are too far from the rest of the keys to be functional as a piano plus like 5 are taken by WindowsBut even if we count themand even though prtscreen and whatever are so far in the corner that if they were needed in a song you'd never be able to find them i'll count them in26042011060703---87thats still not enoughyou also gotta consider the fact that you need to quickly be able to find each key like on a piano to play them so having to go from Pause/Break to the "squigley thing ~" is really impractical Edited July 31, 2006 by Paulie Link to comment Share on other sites More sharing options...
theguy0000 Posted July 31, 2006 Share Posted July 31, 2006 you're right of course. oh well anyway, what about exporting in midi format? is that possible in AutoIt? The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 anyway, what about exporting in midi format? is that possible in AutoIt?I'm sure it's possible, but to do it would probably involve figuring out how midi data is coded so it can be read by playerswhich is FAR beyond me(well far to much work for my lazy ass self )If anyone ever finds a way, I'd be happy to do whatever i can to help if neededOr just wait patiently until someone comes out with it then use it for myself Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2006 Author Share Posted July 31, 2006 Anyone else come up with another song or have any feedback? Really want to improve it if I can Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now