My first program on HP-50g - Music.
|
06-08-2021, 01:06 AM
Post: #10
|
|||
|
|||
RE: My first program on HP-50g - Music.
Hello!
In HP48 I used to do something like store all notes in vars and so recall it from a program. I think that it also works in HP50. I store all notes as a var, so recall it from a main program. For example: <<440 .1 BEEP>> STO it in the var "LA" and do the same for "Re", "Mi", "Fa", "Sol", "La", "Si", sharp, flat and so on. Exemple of the main program: <<LA DO DO RE MI FA FA SOL SOL SI SI>> store it as MUSIC and and so run it. This avoid you to type everytime the musical note time and frequency, makig the program shorter:-) Kind regards, Carlos quote='matalog' pid='148834' dateline='1623101377'] (06-07-2021 12:11 PM)Joe Horn Wrote: Just a thought: In that case, the program might play smoother if you omit the inner loop, since the 50g supports list processing. Also, none of the variables are needed. Omit the 1 'N' STO, and replace everything after the end of the list with the following: That makes it run quite a bit faster, it's now better to change the note length to 0.1 to slow it down a little. I guess it will leave less time between beeps, which has to help. hanks for sharing that trick. [/quote] Carlos - Brazil Time Zone: GMT -3 http://area48.com |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)