Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MGOS

Pages: 1 ... 17 18 [19] 20 21 ... 23
271
Axe / Sprite/Picture rotating
« on: January 07, 2012, 08:54:33 am »
I wanted to test the tan-1 function in the latest version of axe and tried to rotate a spite with this little program:

Code: [Select]
:ClrDraw
:Draw sprite with size E*F at (0|0)
:For(A,0,E-1)
:  For(B,0,F-1)
:    If pxl-Test(A,B)
:      sqrt(4*A*A+(4*B*B))->D  .four times precision
:      arctan(A,B)->W
:      W+32->W  .Let's rotate that 45 degrees or whatever you like
:      sin(W)*D//512->Y
:      cos(W)*D//512->X
:      Pxl-On(X+32,Y+32) .A little offset
:    End
:  End
:End
:DispGraph

I tried it with only a box and it works, ut this gives me some really bad quality results. When I try to rotate pictures, it is even worse.

Where is the fault in my program? Are the trigonometry functions to low resulution? The square root?
What can I do to make it better?

272
TI Z80 / Re: TI-Studio: An Axe music making program
« on: January 06, 2012, 07:02:19 am »
Currently, there are only 1/8 notes. Longer notes aren't planned. See one of my previous posts for explanation why.
Often it is ok if you just enter a short note and a rest, but I don't know how fast your song is etc.

I think I will add the possibility to store up to 8 full songs in different appvars, but I won't make an Open/Save dialog with user defined file names, that isn't worth the additional space it takes up in the program. The Appvars will be craeted only if used, maybe I name then TISsong1, TISsong2 and so on.

If press the save key, a box opens and you can see which file isn't used/created yet and you can press a number key to save, it asks to confirm if you're overwriting a file which is already in memory. To load a file it will me something similar, only that you cannot open a file that isn't in memory. I also will add a NEW SONG option in that dialog box, which erases the current data in the editor.

273
TI Z80 / Re: TI-Studio: An Axe music making program
« on: January 06, 2012, 05:11:33 am »
It saves the whole song as appvar of 272 bytes (+name) when you click STO->.
The first 8 * 32 = 256 bytes are the notes in patterns, the last 16 bytes is the playlist.
{[32 bytes of p1][32 bytes of p2]...[32 bytes of p8][16 bytes of playlist]}
the values of the patterns' bytes range from 0 - 47 and 64 (0 = top C, 47 = lowest C#, 64 no note/rest)
the values of the playlist's bytes range from 0 - 8 (0 = no pattern, 1 = pattern one, 8 = pattern 8 )

I hope that helps.

Later I will add the possibility to save multiple songs, but I'm not sure if I make only one appvar for all of them (inline) or for every song another appvar.

274
The Axe Parser Project / Re: Axe Parser
« on: January 05, 2012, 09:20:00 am »
This sounds great so far! I love it when the executeble's size is reduced without having to optimize a lot and make the code unreadable.
But will it be also possible to compile the programs to noshell? Because I like that the executable doesn't need anything else and another app to transfer takes a lot of time. Most of my friends don't understand much about the calculator, they only want to play my games and get confused when they need multiple files ^^ ... Now, it is only one program, they know how to execute it. They don't have watch out to delete accidentally the axe app or so. That was one main reason (beside better speed and graphics) for me to switch from xLib to axe.

275
TI Z80 / Re: TI-Studio: An Axe music making program
« on: January 05, 2012, 04:36:57 am »
Ok, I try what I can do here...

  • slower cursor movement - no problem, I will add that
  • saving more songs - maybe a bit difficult, but I think thats possible for me too
  • different note lengths - that is quite hard I think. One thing is that axe doesn't support notes longer than 65xxx ticks (or whatever) so I would have to merge to notes exactly at the right time. Also I'd have to redo the whole save and input routines. So definitly not in the next update, but maybe I add this later.

276
TI Z80 / Re: TI-Studio: An Axe music making program
« on: January 03, 2012, 08:00:09 am »
Dude, this is just totally AWESOME. I will try it asap.

Cool. But please make sure to redownload the file, there was a little bug with the note entry.

277
TI Z80 / TI-Studio: An Axe music making program
« on: January 02, 2012, 09:03:14 am »
Hey guys! After my little PianoRoll sequencer, Blue Raven gave me the idea to add a playlist and different patterns, just like in FL Studio, but for TI-83+.
So here is a complete new program (some code is recycled though) with those features:

  • Input of up to 8 different patterns à each 4 bars
  • Playlist with up to 16 entries
  • Select, copy, cut & paste parts of a pattern
  • Transpose entire selection or offbeats of selection
  • Riff machine
  • Speed / tempo selection from 80 to 500 bpm
  • Save and load song
  • and of course, play song or pattern with audio output!

                       ---> DOWNLOAD <---


How to access those functions is discribed in the attached readme document.
Have fun testing. There are no bugs known, but tell me if you still find one.
Edit: Found a bug with the note entry, now fixed.


Some screenies:

278
Axe / Re: Axe Q&A
« on: December 31, 2011, 12:32:32 pm »
It's more like an editor, so I think getkey->K is good for this. But if I used both functions, would they still work both fine?

279
Axe / Re: Axe Q&A
« on: December 31, 2011, 11:52:30 am »
Wow, this is exactly what I needed - thanks!

But how can I handle the other possible keypresses? Should I change everything to getkey->K and check the other possibilities with the inData, or can I leave the getkey()?

This
Code: [Select]
Repeat getkey(15)
getkey->K
inData(K,Number-Possibilities)->N
if N<9 + N
do number stuff
elseif getkey(whatever)
do other stuff
elseif getkey(whatever)
do other stuff
End
End
Or that:
Code: [Select]
0->K
Repeat K=15
getkey->K
inData(K,All Possibilities)->N
if N<9 + N
do number stuff
elseif N=whatever
do other stuff
elseif N=whatever
do other stuff
End
End

280
Axe / Re: Axe Q&A
« on: December 31, 2011, 08:25:09 am »
Another question about number input:

I need a function in my program that checks if a number key from 1 - 8 is pressed. It should return the a value between 1 and 8, or 0 if none of them is pressed. I already looked at the number input routine, but it isn't that what I need.
Would you recommend a LUT, a mathematical way or only some Ifs and Elses?

281
TI Z80 / Re: Piano Roll Sequencer
« on: December 30, 2011, 01:35:05 pm »
I wasn't thinking at patterns and playlists, but just at a way of avoiding scrolling.
This would have became TIStudio. ^^

But thinking of the idea of patterns and playlists, I guess it could be doable...

Maybe the num keys to switch between the patterns (1-8) and another screen for the playlist. If you press play in the pattern screen, it only plays the pattern, if you press it in the playlist screen it plays the whole song, looping through each pattern. Graph will display the playlist, the Keys 1 - 8 the patterns.

With the select function you will only be able to highlight complete bars, but you can copy, cut & paste them in and to all patterns.

Buttons + and - will increase or decrease the speed, the arrow keys are for vertical and horizontal shifting of the selected part.

The STO-> will save the whole song, LN will load it.

Lot to do, but the work will be worth it, I hope.

282
TI Z80 / Re: Piano Roll Sequencer
« on: December 30, 2011, 11:54:51 am »
Ah... Well, scrolling is not necessary, you could make the user jump to several "boards", each board being a part of the big sequencer.

So like patterns and playlist in FL? Woohoo.... somethin' big coming up

283
TI Z80 / Re: Piano Roll Sequencer
« on: December 30, 2011, 11:21:01 am »
And why not a longer sequencer ? But maybe the lists are too short for that...

Should be possible, it only uses 32 bytes for 4 bars. I'm only afraid of doing scrolling  :P

284
TI Z80 / Re: Piano Roll Sequencer
« on: December 30, 2011, 10:46:31 am »
Awesome ! Fast (maybe a bit too much), easy to use, powerful... Nice job !
The riff machine really adds something, but how about adding customized settings, because here it's totally random. If there were an option to save songs to some Data, it would be perfect.

Saving will be added, for sure. (It still crashes always...)
What do you mean with costomized settings? Something like those in FL? Because that would make the whole thing a lot more difficult and bigger, but maybe later.

Already added (for next version):
- reversing
- cloning

I also will try these things:
- highlighting notes
- copy, cut & paste
- editing only highlighted parts




285
TI Z80 / Re: Piano Roll Sequencer
« on: December 28, 2011, 11:32:39 am »
Ok... Next update and probably the last for some time

- Slightly changed design
- Speed more acurate
- new melody for the random riff generator
- ability to copy downbeats to offbeats, shift offbeats up/down, swap downbeats and offbeats
- Full documentation of functions in program (press Zoom)

Pages: 1 ... 17 18 [19] 20 21 ... 23