GithubHelp home page GithubHelp logo

gota7 / gotasequencelib Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 6.0 157 KB

A platform-agnostic library for interpreting and playing sequence data for NintendoWare. The bulk of the player code was made by Kermalis.

License: GNU General Public License v3.0

C# 100.00%

gotasequencelib's Introduction

Hello, This Is Gota7!

I'm a soon to be college graduate with a degree in Computer Science. Here you can find my various programming projects which include editors, tools, reverse engineering work, and even a WIP programming language. Enjoy!


gotasequencelib's People

Contributors

gota7 avatar kitlith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gotasequencelib's Issues

Improve handling of commands embedded in midi files

GotaSequenceLib/SMF.cs

Lines 911 to 918 in c2c0510

if (dat.Contains(": ")) {
try {
SequenceCommand c = new SequenceCommand(); //THIS DOES NOT TAKE CARE OF JUMPS AS IT WILL JUMP TO THE MARKER TRACK.
if (int.Parse(dat.Split(':')[0]) == trackNum) {
c.FromString(dat.Substring(dat.IndexOf(":") + 2), labels, new Dictionary<string, int>());
commands.Add(c);
}
} catch { }

Ideally, this feature would:

  • Support jumps (referring to the comment, but i'm not really sure what it's talking about)
    • I'm not sure what the comment is on about, because it already seems to work fine (though it might not work if the label is located after the jump instruction)
    • I think I understand now. Some editors dump all markers onto a single track (or idk, maybe some dump on all of them?), and jumps only work if markers can be placed on specific tracks.
      • for that matter though, i think the command insertion only properly works if the marker is on the specific track as well -- it just doesn't insert the command if it's the wrong track.
  • Support multiple commands in a single marker (for i.e. a conditional jump cmp_eq 14, 10000; jump_if LS0)
  • Not require you to list the track number -- it's already in the middle of the track. (is there varying behavior by different midi editors?)
  • Support mentioning labels that occur after the current marker.

Random idea is to also support 'this command goes on every track' markers on track 0 with the ability to insert the current track number into the command somewhere. (this would essentially be a more powerful version of the commented out looping functionality)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.