Coder Social home page Coder Social logo

Description of the device about moppy2 HOT 2 CLOSED

Besteciler avatar Besteciler commented on August 21, 2024
Description of the device

from moppy2.

Comments (2)

DJthefirst avatar DJthefirst commented on August 21, 2024 1

I’ll just write out the general concept and can go into a deeper explanation later if you want. Basically the Song is in MIDI format so java has a lib that plays the song in time. when it is playing notes are generated and sent as note on and off commands. MIDI has 16 channels so these notes are messages with an assigned channel and command such as note 10 on or off. I would recommend looking at the midi protocol. After that the messages go through moppys mappers. The mapper is needed because floppy drives can only play one note at a time so chords are a problem. Notes are sorted by channel, sent to different drives with round robin, and removed if they are out of range etc. This is mapping individual notes to physical floppy drives. Then it is sent as new moppy msg to the drive which was encoded. It gets a device ID for each microcontroller and instrument Id. Then the microcontroller has an interrupt and counter that will toggle the pin at the frequency of the note from that lookup table.

from moppy2.

DJthefirst avatar DJthefirst commented on August 21, 2024

If your interested in how moppy works I would also suggest you look at my project Mechanical Midi Music which uses the same general idea. It might be easier to understand how Midi is used. The difference from Moppy is instead of being split between a java server and microcontroller I use an esp32 with Arduino to do all the processing on the micro controller. The communication fully uses the midi protocol so you can better use midi keyboards and controllers without a computer. Also instead of having a mapper I have virtual distributors that take a MIDI channel and distribute it to a pool of instruments(such as Floppy Drives). Still a work in progress.

from moppy2.

Related Issues (20)

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.