Code Monkey home page Code Monkey logo

rhythm-project's Introduction

Rhythm-Project

How to Use This Program: (1) Get a .sm file (2) Get an audio file (3) In code.js, edit the line: String lines [] = loadStrings("FILEPATH.sm"); to include your file. (4) In code.js, edit the line: var audio = new Audio("FILEPATH.abc"); to include your file. (5) Open main.html in your browser. Due to Chrome and IE security protocols, if you're running it locally, you need to open it in Firefox. (6) There are several options: (.) Change your scroll direction by changing line 20 in code.js, either "Up" or "Down" (.) Change your offset by changing the value of manualOffset on 68 in code.js (.) Turn the controller visualization on or off by changing showController on line 21 to either true or false

Technical Overview

Go to:

http://trumpet63.github.io/Rhythm-Project/

for documentation

Parses .sm file: (1) Converts text into an array of strings, one string per line of the text file (2) Finds title, artist, offset, and bpms (3) Finds the line number where the notes for each difficulty starts, and associates the names of the difficulties (4) Using the bpm and information about the measure, associates each note with a time position

Displays notes: (1) Based on the size of the display region, scroll speed, and receptor position, determines the range of times that can be displayed for a frame (2) Populates an array with the positions of the notes to be displayed on screen (3) Draws receptors and notes

Displays controller visualization: (1) Finds next note (2) Based on a set of rules, determine the point to which the hit-circle must move next (3) Determines distance of the nearest note from receptors (4) Determines the percent of the distance to the receptors that the note has traveled since it was first found (5) Display the hit circle based on that percent and its destination and origination points

rhythm-project's People

Contributors

trumpet63 avatar llyair avatar

Stargazers

Michael Eaton avatar Dominic Mussack avatar

Watchers

Tyler J. Alesse avatar  avatar  avatar

rhythm-project's Issues

Is this still active?

I'm curious if you've made any changes since the latest version, before I start to try to work on it

Held Notes Ignored

Stepfile conversion ignores held notes instead of converting them into regular notes

One Line Bpm

Stepfile conversion assumes bpm information does not exceed one line in the .sm file

CV Hit Glitches

The controller visualization hit-circle glitches slightly on faster songs

Inverse Speed

Speed currently works inverse to how it should, i.e. increasing the value reduces the speed

No CV Upscroll

Controller visualization module only works on downscroll

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.