GithubHelp home page GithubHelp logo

vism2889 / a_star_sequencer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.61 MB

An implementation of A* using P5.js with interfacing to sequence A/V events in MaxMSP.

Max 66.63% HTML 0.72% JavaScript 32.65%
music-composition maxmsp a-star-algorithm a-star p5js creative-coding computational-art

a_star_sequencer's Introduction

A_Star_Sequencer

An implementation of A* path planning algorithm purposed as a step sequencer used to trigger music events in maxMSP.

This project was made infinitely more approachable with the helpful documentation provided by Pawel Janicki which elaborates on how to integrate p5.js with maxMSP. Additionally, Daniel Shiffman's tutorial on implementing A* in p5.js was a truly wonderful resource to be able to reference.

Functionality

NOTE: The intended functionality of in/out messages is listed below but once the message is received into maxMSP the user can purpose the messages differently if they choose.

Input Messages Description
'set_stroke_color' Takes 3 arguments representing RGB values between 0-255 that set the stroke or 'outline' color of the 3D grid.
'set_background_color' Takes 3 arguments representing RGB values between 0-255 that set the background color of the 3D space.

Output Messages Description
'soundN' where N = [0,7] Outputs message to trigger sound listeners. (example: 'sound5')
'pitch_down_quarter' Decreases pitch by 25%.
'pitch_down_half' Decreases pitch by 50%.
'no_pitch' Sets to original pitch.
'pitch_up_half' Increases pitch by 50%.
'pitch_down_quarter' Increases pitch by 25%.

Mouse and Keyboard Interactivity

Actions Description
Mouse press + drag Rotates the perspective of A* grid.
Mouse press right side of screen Increases frame rate & tempo by a factor of 10.
Mouse press left side of screen Increases frame rate & tempo by a factor of 5.
Mouse press quadrant 1 Outputs pitch change message. Mouse release outputs 'no_pitch' message.
Mouse press quadrant 2 Outputs pitch change message. Mouse release outputs 'no_pitch' message.
Mouse press quadrant 3 Outputs pitch change message. Mouse release outputs 'no_pitch' message.
Mouse press quadrant 4 Outputs pitch change message. Mouse release outputs 'no_pitch' message.

a_star_sequencer's People

Contributors

vism2889 avatar

Watchers

 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.