Board Thread:General Discussion/@comment-24854750-20140615221817/@comment-24454571-20140625025911

I definitely think that I'm getting there- I'm much more interested in the means than the destination. Hearing about other people's experiences and explanations for codes is my favorite way to learn how to code, but it seems like there aren't very many people who are capable of or enjoy talking a whole lot about coding.

I'd really like to study Randomous' Random Generation code, but it seems incredibly complex to me so I've having trouble figuring out what's going on in there. I'll have to nail down the whole Arrays thing and really take the time to go through and play out those processes in my mind. There aren't many notes on the math going on behind it, which is what I'm really interested in.

I ended up mocking up my own Random Tile program as follows: it chooses a random direction and paints a tile 30 times; it also allows the user to re-start the code, and something odd that boggled my mind was that pretty consistently at around 7 times restarting the code the computer will run out of memory- I've got no idea why it's happening, I thought with clear at the top of the page and everything that wouldn't happen.

@START CLEAR:ACLS

X=112:Y=80

@DRAW GFILL X,Y,X+32,Y+32,RND(255)

'END T=T+1:IF T>=30 THEN GOTO @END

@DIRECT D=RND(4)+1 IF D==1 THEN Y=Y-32 IF D==2 THEN Y=Y+32 IF D==3 THEN X=X-32 IF D==3 THEN X=X+32 GOSUB @DRAW

@END VSYNC 1 IF BUTTON THEN GOTO @START GOTO @END

Initially I had planned on creating a more complex code that checked the 8 tiles around a square to see if any adjacent squares were painted so that it can fill in 'blocks' to give it more bulk, but when I tried working that out by hand I figured I'd have to use so many variables that it'd be a much better idea to use Arrays.

I think I'd use an 8,6 Array for 32x32 squares, then make the first square start in a random place, choosing random directions, checking for adjacent squares, and avoiding boundaries, then do that ~10 times.

-Hey, I checked out your profile and saw that you've been composing music for quite a while. I've been attempting to more consistently/coherently writing music as of late- my older projects are generally very short or are unfinished parts. I've got a keyboard that I really like to spend a lot of time on improvising or sight-reading mostly classical music, and I've also got a book of blank sheet-music pages that I've been gaining more confidence in writing in. This year I've really been focusing on developing a more technical mind.

If you're interested in starting a correspondence with me via email you can contact me at azihayya@gmail.com; I'd certainly appreciate the opportunity to share dialogue with some peers relating to common interests. Music is one of those things that has traditionally been very difficult to define in any sort of objective way- particularly with the notion of Tempo, from what I've observed. I'd also enjoy the possibility of constructing an RPG with someone else - an RPG seems like one of the more stream-lined things that one could create using PTC.

I tend to be drawn to very complex ideas; you may be able to discern what's going on in the sound clip that I uploaded to that account (I actually own both that sound cloud as well as the one from the other song which I reposted by accident) - sort of unorthodox in its complexity, however, somehow very pleasant to listen to. Composing music digitally is another hobby that I've been attempting to pick up, in which sound design has been my focus there - so far I've mostly been working with the 'Operator' instrument in Ableton Live.