Giter VIP home page Giter VIP logo

thirtydollarlib-py's Introduction

Logo
GitHub issues GitHub Nuget
DON'T YOU LECTURE ME WITH YOUR THIRTY DOLLAR LIBRARY

DON'T YOU LECTURE ME WITH YOUR THIRTY DOLLAR LIBRARY, or ThirtyDollarLib for short, is a .NET library that helps construct and parse ๐Ÿ—ฟ files, or better known as Thirty Dollar Website sequencer files.

READ!! Info regarding ItemType

When programming the sounds, you might not be able to distinguish the control items and the actual sounds. To distinguish the 2, here is a list of control items to help out: Speed, Volume, Stop, LoopMany, Loop, LoopTarget, Cut, Combine, Jump, Target, Flash, StartPos, Pause

Installation

Like almost any other .NET library out there, the library is provided through NuGet. Installing this library should be pretty straightforward:

Visual Studio (GUI)

Right-click on your project node in the Solution Explorer, then click Manage NuGet Packages, or click Project > Manage NuGet Packages.
Then, type ThirtyDollarLib into the search box, click on the package, then click Install. Now you're ready to use the library!

Visual Studio (Package Manager Console)

Bring up the Package Manager Console by going to View > Other Windows > Package Manager Console. Then type Install-Package ThirtyDollarLib

dotnet CLI

cd into your project folder, then type dotnet add package ThirtyDollarLib.

Usage

If you wanna generate a sequence, here's a quick guide to get started:

using ThirtyDollarLib;

List<Item> items = new()
{
  new Item(ItemType.Speed, 2000, ControlModifier.Set)
};

for (int i = 0; i < 20; i++) items.Add(new Item(ItemType.Boom, i));

Sequence seq = new Sequence(items);
string converted = seq.ToString();

// do stuff with your sequence file, like writing it to a file

You can also parse a compiled sequence back into a Sequence object like so:

using ThirtyDollarLib;

string compiled = File.ReadAllText("sequence.๐Ÿ—ฟ"); // you can load the string in any way you'd like, we're only using files as an example
Sequence seq = Sequence.Parse(compiled);

// do stuff with your new Sequence, like appending data

Contribution stuff

If you wanna contribute to the docs, or the crappy codebase, do so with a pull request
That's pretty much all

thirtydollarlib-py's People

Contributors

4techguns avatar paul-31415 avatar

Watchers

James Cloos avatar  avatar

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.