digdugnate Posted June 23, 2017 Share Posted June 23, 2017 I've been refining my programming knowledge with Basic and Extended Basic before tackling Assembly (plus it's a little easier while I'm studying for a certification, too)- i love music so I've been looking at program code and ways I can make my own music programs better. The Extended Basic manual gives some really great info on the frequencies for notes/etc, but I was wanting an easy way to compute additional frequencies based on a half-step between notes. Here's what I came up with: 10 LET F=110 20 FOR I=1 TO 91 30 PRINT F 40 LET F=F*92^(1/12)) 50 NEXT I 60 END I had also started lists for different scales (chromatic, pentatonic) to make things a little easier as I code through written music. Pretty neat stuff! Quote Link to comment Share on other sites More sharing options...
+TheBF Posted June 23, 2017 Share Posted June 23, 2017 I've been refining my programming knowledge with Basic and Extended Basic before tackling Assembly (plus it's a little easier while I'm studying for a certification, too)- i love music so I've been looking at program code and ways I can make my own music programs better. The Extended Basic manual gives some really great info on the frequencies for notes/etc, but I was wanting an easy way to compute additional frequencies based on a half-step between notes. Here's what I came up with: 10 LET F=110 20 FOR I=1 TO 91 30 PRINT F 40 LET F=F*92^(1/12)) 50 NEXT I 60 END I had also started lists for different scales (chromatic, pentatonic) to make things a little easier as I code through written music. Pretty neat stuff! That's a fun project. I am a musician and producer myself but have been programming for almost as long. Another exercise for you could be to open a file and have your note frequency calculator program print the values out to a file as BASIC DATA statements. Sort of like below. BUT please read the manual on the OPEN statement, I have not used TI BASIC for many years so my memory is faulty. 5 OPEN #1:"FILENAME" BLAH BLAH (check your manual) 10 LET F=110 20 FOR I=1 TO 91 30 PRINT #1: I * 100;" DATA "; F 40 LET F=F*92^(1/12)) 50 NEXT I 60 END But if you make the text file you could use it like a prefab building block for future music programs. Just an idea. 1 Quote Link to comment Share on other sites More sharing options...
+Lee Stewart Posted June 23, 2017 Share Posted June 23, 2017 In Classic99, you can open the “CLIP” device and PRINT to it if you are developing on a PC. ...lee 1 Quote Link to comment Share on other sites More sharing options...
digdugnate Posted June 23, 2017 Author Share Posted June 23, 2017 In Classic99, you can open the “CLIP” device and PRINT to it if you are developing on a PC. ...lee The funny thing is up to this point I'm doing everything the hard way and messing around with my TI I guess it would make sense to dork around with Classic99/etc on my PC. Quote Link to comment Share on other sites More sharing options...
+Lee Stewart Posted June 24, 2017 Share Posted June 24, 2017 I should add that the CLIP device is the Windows clipboard and that you should paste it to a text file when you are done accumulating text. ...lee Quote Link to comment Share on other sites More sharing options...
+Vorticon Posted June 24, 2017 Share Posted June 24, 2017 While certain specialized applications like interfacing require coding on real hardware, everything else is so much easier and faster when done in emulation first. I absolutely get the special nostalgic feeling of coding on real hardware, and some of us create amazing stuff doing just that like Marc Hull for example, but there comes a point where the aggravation of aging and flaky hardware is counterproductive in my view... 3 Quote Link to comment Share on other sites More sharing options...
Airshack Posted June 25, 2017 Share Posted June 25, 2017 While certain specialized applications like interfacing require coding on real hardware, everything else is so much easier and faster when done in emulation first. I absolutely get the special nostalgic feeling of coding on real hardware, and some of us create amazing stuff doing just that like Marc Hull for example, but there comes a point where the aggravation of aging and flaky hardware is counterproductive in my view... Have you tried Tidbit? Allows programming BASIC with labels in place of line numbers which really improves the BASIC experience. Editing on a modern PC + Tidbit = a delight! 2 Quote Link to comment Share on other sites More sharing options...
+Vorticon Posted June 25, 2017 Share Posted June 25, 2017 Have you tried Tidbit? Allows programming BASIC with labels in place of line numbers which really improves the BASIC experience. Editing on a modern PC + Tidbit = a delight! I programmed Panzer Strike using TidBit exclusively. It was a godsend 3 Quote Link to comment Share on other sites More sharing options...
Airshack Posted June 25, 2017 Share Posted June 25, 2017 Where may one find Panzer Strike? Quote Link to comment Share on other sites More sharing options...
digdugnate Posted June 26, 2017 Author Share Posted June 26, 2017 Where may one find Panzer Strike? i found it on gameshelf. http://tigameshelf.net/xb.htm Quote Link to comment Share on other sites More sharing options...
digdugnate Posted June 26, 2017 Author Share Posted June 26, 2017 I programmed Panzer Strike using TidBit exclusively. It was a godsend Hmm, these are super ideas! I've pulled out some sheet music, actually, i was going to use for my next program so I'll definitely try out the stuff you guys have suggested. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.