HP Prime BEEPER.
|
07-01-2023, 08:00 PM
(This post was last modified: 07-04-2023 07:16 PM by matalog.)
Post: #11
|
|||
|
|||
RE: HP Prime BEEPER.
I have been doing a little bit of work on the Beeper for the HP Prime, and finally ready to share an early version to see if it is working for others.
Latest things available: * - Variable Lengths of notes. Although I don't show too much in the video, any note can be any length. If this is something that you really care about, then PM me as I have a different version with 256 assignable note lengths 4ms apart. * - Fast Repeat of full passage. The length of the 'tune' is determined by L1. If L1 is 5 in length then so will the final tune. The notes will repeat so fast that it will seem like an unlimited length, and if you like it so much that you never stop playing it, then, in 2 hours your battery will be wasted! * - Change Speed live. Press EEX to increase the speed of the tune by one increment and press ALPHA to decrease the speed of the tune by one increment. * - Change Key of tune live. Press LOG to increase the Key of the tune by one semitone, and press ENTER to decrease the key of the tune by one semitone. Instructions to use: Make a variable called YZ (there has to be one or the program won't run). Decent value is YZ:=10. Doesn't matter too much what it is, as long as it is between 1 and 255. It will be necessary to run the program. IMPORTANT*** - If you want to control the Length of each note, then there has to be a list called L9. L9(1) should be 255 and L9(2) should be the Length (or SIZE()) of L1. This is a measure to ensure that the length of individual notes is only considered when definitely wanted. Otherwise every note length will be the value of YZ. L7 holds the lengths of each note (when it in enabled as above). 1 is one second, 2 is 1/2 second, 3 is 1/3 second etc. I have another version of the program where lengths of 256 portions of a second are available and much more definable in regards to lengths. When it is not enabled as above, then each space in L9 will be the value in YZ. I will edit this post as required to help potential users of the program :-). As a first step for users to try this out, here is a zip file that should be used to install on the Arduino Leonardo or Leonardo Mini: https://bit.ly/44ttgEa You should copy the HP_Beeper folder, which is inside HP_Beeper_Arduino_Leonardo.rar, to your Arduino folder, where you save your programs. I have included the 2 libraries in the folder, so hopefully you won't have to download them - and it should be simply a matter of sending the opened file to the Arduino from the editor. Next part is the HP Prime program. This includes a shortcut key, so that if you have User shortcut buttons enabled then you just have to press the Units button left of Catalog, to access the beeper program. BEEP Program: https://www.dropbox.com/s/3pqgpgm2ku6n0m...pprgm?dl=0 You just copy BEEP.hpprgm to the Programs area on your HP Prime G2. You can do that in the HP Connectivity Kit. You will most likely have to change the numbers within parenthesis on line 12 of the program "L2:=USBOpen(9025,32822); " to whatever your caluclator returns when you have an arduino connected and you enter "USBOpen()". Please let me know if anything isn't working and I Will try to fix problems or help towards solutions at this early stage of development. Also let me know if you get it working. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP Prime BEEPER. - matalog - 05-24-2023, 01:09 AM
RE: HP Prime BEEPER. - Stevetuc - 05-24-2023, 09:35 AM
RE: HP Prime BEEPER. - matalog - 05-25-2023, 12:30 PM
RE: HP Prime BEEPER. - gehakte_bits - 05-24-2023, 07:28 PM
RE: HP Prime BEEPER. - ijabbott - 05-24-2023, 07:36 PM
RE: HP Prime BEEPER. - Mark Power - 05-24-2023, 10:31 PM
RE: HP Prime BEEPER. - matalog - 05-25-2023, 12:34 PM
RE: HP Prime BEEPER. - Amer7 - 05-25-2023, 11:53 AM
RE: HP Prime BEEPER. - Mark Power - 05-25-2023, 06:08 PM
RE: HP Prime BEEPER. - matalog - 05-26-2023, 10:04 PM
RE: HP Prime BEEPER. - matalog - 07-01-2023 08:00 PM
RE: HP Prime BEEPER. - Insoft - 07-04-2023, 06:39 PM
RE: HP Prime BEEPER. - matalog - 07-04-2023, 07:16 PM
|
User(s) browsing this thread: 1 Guest(s)