Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Don't need this anymore

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
Evil_Intentions
Expert Cheater
Reputation: 65

Joined: 07 Jan 2010
Posts: 214

PostPosted: Thu Jun 02, 2011 7:53 pm    Post subject: Don't need this anymore Reply with quote

Code:
public Pattern makeMusicPattern(String orderStr, Pattern[] pattern, boolean isHmy) {
        Pattern music = new Pattern();
        int index = 0;
        char curChar = '0';

        for (int i = 0; i < orderStr.length(); i++) {
            curChar = orderStr.charAt(i);
            if (curChar == 'f') {
                for (int i2 = 1; i2 <= durIndex; i2++) {
                    durString += "i";
                }

                try {
                    if (orderStr.charAt(i + 1) == 'f') {
                        durIndex++;
                    } else {
                        music.add((pattern[index]) + durString);
                        durString = "";
                        durIndex = 1;
                    }
                } catch (Exception e) {

                    music.add((pattern[index]) + durString);

                    durString = "";
                    durIndex = 1;
                }

            } else if (curChar == '+') {
                if (index == pattern.length - 1) {
                    if (rootNote + 12 <= 0 || ocIndex == maxOc) {
                        if (isHmy) {
                            setRootHmy();
                        } else {
                            setRoot();
                        }
                    } else {
                        rootNote += 12;
                        ocIndex++;
                    }
                    pattern = scalePattern(scaleCode, rootNote);
                    index = 0;
                } else {
                    index++;
                }
                //music.add(rest);
            } else if (curChar == '-') {
                if (index == 0) {
                    if (rootNote - 12 <= 0 || ocIndex == minOc) {
                        if (isHmy) {
                            setRootHmy();
                        } else {
                            setRoot();
                        }
                    } else {
                        rootNote -= 12;
                        ocIndex--;
                    }
                    pattern = scalePattern(scaleCode, rootNote);
                    index = pattern.length - 1;
                } else {
                    index--;
                }
            } else if (curChar == ' ') {
                durIndex = 1;
            }
        }
        return music;
    }


you haven't seen my latest project, lol.

that code is just 0.1% of the rest, better than some gay Audio program.

i'm working on a fractal music program (something 99% of CEF can't write) in Java.
Back to top
View user's profile Send private message
Evil_Intentions
Expert Cheater
Reputation: 65

Joined: 07 Jan 2010
Posts: 214

PostPosted: Thu Jun 02, 2011 9:00 pm    Post subject: Re: Don't need this anymore Reply with quote

Shrooms wrote:
Evil_Intentions wrote:
Code:
public Pattern makeMusicPattern(String orderStr, Pattern[] pattern, boolean isHmy) {
        Pattern music = new Pattern();
        int index = 0;
        char curChar = '0';

        for (int i = 0; i < orderStr.length(); i++) {
            curChar = orderStr.charAt(i);
            if (curChar == 'f') {
                for (int i2 = 1; i2 <= durIndex; i2++) {
                    durString += "i";
                }

                try {
                    if (orderStr.charAt(i + 1) == 'f') {
                        durIndex++;
                    } else {
                        music.add((pattern[index]) + durString);
                        durString = "";
                        durIndex = 1;
                    }
                } catch (Exception e) {

                    music.add((pattern[index]) + durString);

                    durString = "";
                    durIndex = 1;
                }

            } else if (curChar == '+') {
                if (index == pattern.length - 1) {
                    if (rootNote + 12 <= 0 || ocIndex == maxOc) {
                        if (isHmy) {
                            setRootHmy();
                        } else {
                            setRoot();
                        }
                    } else {
                        rootNote += 12;
                        ocIndex++;
                    }
                    pattern = scalePattern(scaleCode, rootNote);
                    index = 0;
                } else {
                    index++;
                }
                //music.add(rest);
            } else if (curChar == '-') {
                if (index == 0) {
                    if (rootNote - 12 <= 0 || ocIndex == minOc) {
                        if (isHmy) {
                            setRootHmy();
                        } else {
                            setRoot();
                        }
                    } else {
                        rootNote -= 12;
                        ocIndex--;
                    }
                    pattern = scalePattern(scaleCode, rootNote);
                    index = pattern.length - 1;
                } else {
                    index--;
                }
            } else if (curChar == ' ') {
                durIndex = 1;
            }
        }
        return music;
    }


you haven't seen my latest project, lol.

that code is just 0.1% of the rest, better than some gay Audio program.

i'm working on a fractal music program (something 99% of CEF can't write) in Java.


I believe we just discovered a new meme.



Full credits to you bro.
Back to top
View user's profile Send private message
Up2Admin
I'm a spammer
Reputation: 126

Joined: 17 Oct 2007
Posts: 6549
Location: Texas

PostPosted: Fri Jun 03, 2011 2:05 pm    Post subject: Reply with quote

Wow, Java looks extremely simple. Same syntax as Actionscript/PHP/Javascript, I could probably get pretty good at it.
_________________
Back to top
View user's profile Send private message Visit poster's website
Evil_Intentions
Expert Cheater
Reputation: 65

Joined: 07 Jan 2010
Posts: 214

PostPosted: Fri Jun 03, 2011 2:14 pm    Post subject: Reply with quote

Up2Admin wrote:
Wow, Java looks extremely simple. Same syntax as Actionscript/PHP/Javascript, I could probably get pretty good at it.


I love java actually. I havn't touched C++ in months
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites