@Discostew Maybe it'll be useful for your MM2 remake? All those QR's... if you had to stitch them by hand, it would be a nightmare! Unless you're going to release them individually/already have a stitcher.
@randomouscrap98 I've been using PTCUtilities QR code creator, which outputs the individual QR codes and makes an HTML page to display them all. It works, but it also means I'll have 100+ QR codes in a folder on my site, whereas I could probably use your program to make one image containing all codes, and reduce the clutter. I'll see what is needed when I get to that point.
Discostew
3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew
@Discostew I didn't know PTCUtilities did that! I should really use it, but I don't want to keep scanning QR codes every time I want to test it on my system. That's cool that it makes an HTML page though.
@MrSirr What is the point of the DATA 0 part in your arpeggio program? Also why do you have to put @ in front of the instrument number? Another question, why do you put quotation marks around the instrument and note data?
@MrSirr What is the point of the DATA 0 part in your arpeggio program? Also why do you have to put @ in front of the instrument number? Another question, why do you put quotation marks around the instrument and note data?
DATA 0 is just to indicate to the BGM functions that load/play music that it is the end of the current track.
The @x (where x is a number) is the way to set an instrument to the current channel. That's just basic MML design.
If you're referring to quotation marks for music like "CDEFGAB<C>", that's another design choice for MML to make it compatible with BASIC, as the only valid use of letters outside of quoted segments (which are strings in BASIC) are for functions, labels and variable names.
Discostew
3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew
@MrSirr What is the point of the DATA 0 part in your arpeggio program? Also why do you have to put @ in front of the instrument number? Another question, why do you put quotation marks around the instrument and note data?
DATA 0 is just to indicate to the BGM functions that load/play music that it is the end of the current track.
The @x (where x is a number) is the way to set an instrument to the current channel. That's just basic MML design.
If you're referring to quotation marks for music like "CDEFGAB<C>", that's another design choice for MML to make it compatible with BASIC, as the only valid use of letters outside of quoted segments (which are strings in BASIC) are for functions, labels and variable names.
Wow, you're good. Couldn't have explained it better myself(literally)
Well, I thought I'd share something that happened to me with you all in case it happens to you (although you may already know this):
I was implementing another feature in QuikNote which required a lot of jumping around and nested for-loops along with drawing/etc. Basically, it was doing a lot of repeated actions using for-loops. If I continuously ran a section of code within a for loop, the program would eventually crash with an "out of memory" error. Turns out that I was jumping out of a loop before the loop finished with a "GOTO" statement, but apparently however they've implemented the underlying code for "GOTO" doesn't take into account whether or not you're jumping out of the loop. They've probably got some code which keeps track of each loop you're in, and since I kept jumping out of the loop before finishing, it thought I was still in the loop, so when I came back to it, it thought I was in ANOTHER loop and made ANOTHER record for it. For you compiled language programmers out there, this is akin to "blowing the stack" because you made some super recursive function.
TLDR; Don't do this:
FOR I=0 TO 100
IF <WHATEVER> THEN <DO SOMETHING>:GOTO @ENDLOOP
NEXT @ENDLOOP
Note: This is perfectly acceptable (if not a little messy) in pretty much all languages that are compiled to machine code (and support unconditional jumps to a fixed location), because the machine's not going to care about what loop you're in.
@TexMurphy Recursion is nice, but I've never liked it. If I could make a function iterative instead of recursive, even at the expense of extra data structures/complexity, I would. But I know they're useful! And yeah, pointers are always a pain, but unfortunately necessary in a lot of cases.
I got bored this weekend and I made a simple drawing program. However, it only clears the screen with the a button. I'm going to fancy it up this week and get it up on twitter. (How do u post pics on nintendolife?)
Python, C/C++, Lua, Ruby rule (java is too complex lol)
Hey, I got bored this weekend and made a drawing program too! It's like it's the drawing program weekend or something. Well, really I got "inspiration" to make it, but it's still drawing program weekend lol.
I just got petit composer, and while it's simple to use I have one question. How would I use an MML string saved in a GRP file?
Do you know how it writes the MML string to the GRP? Assuming you are able to get the length and position it starts, you just read it pixel-by-pixel, left-to-right, top-to-bottom on the GRP until you have multiple strings of the MML track (with each string being up to 256 characters). You would then use BGMSET or BGMPLAY, taking those strings, and using them for the parameters. For example, if you had A1$, A2$,...,A9$ filled with MML data, you'd use BGMSET like this...
BGMSET 0,A1$,A2$,A3$,A4$,A5$,A6$,A7$,A8$,A9$
If you needed only 5 string variables, you could still use the remaining ones, so long as they are empty.
Hey, I got bored this weekend and made a drawing program too! It's like it's the drawing program weekend or something. Well, really I got "inspiration" to make it, but it's still drawing program weekend lol.
No way! Both of you and HamJam are inspired to write a drawing program? That's unbelievable, because ... me too!
Hey, how about we all do our drawing program and see which one is best?
Here's a quick one that I did in an hour:
@ramstrong Lol this is an interesting situation. But I've already made mine, it's in the QR code thread (and on the wiki). It's not really a graphics editing program but more of a place to jot down some things or to play with. It's fun to watch what you drew redraw itself (or at least, I like watching stuff draw itself).
Hey, I got bored this weekend and made a drawing program too! It's like it's the drawing program weekend or something. Well, really I got "inspiration" to make it, but it's still drawing program weekend lol.
No way! Both of you and HamJam are inspired to write a drawing program? That's unbelievable, because ... me too!
Hey, how about we all do our drawing program and see which one is best?
Here's a quick one that I did in an hour:
Forums
Topic: Petit Computer
Posts 2,701 to 2,720 of 9,620
Please login or sign up to reply to this topic