Comments (2)
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.
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)
- Windows Java Runtime Error HOT 2
- MoppyGUI wont connect to arduino HOT 2
- Floppy drive doesn't play music or startup tone HOT 13
- Compilation error: 'TIMER_RESOLUTION' was not declared in this scope HOT 7
- Nothing happens HOT 1
- code not compilation HOT 4
- Notes per channels HOT 1
- MoppyControlGUI.bat crashes HOT 10
- Default Sub-Address Script is Wrong
- Флоппи HOT 1
- ControlGUI sends mdi data to serial, board serial led indicates data comes but the floppy motor doesn't move HOT 10
- Startup Sound should default to true HOT 1
- ESP32 support HOT 2
- Issue with MoppyControlGUI HOT 9
- Using without GUI ? HOT 8
- Error when uploading to Arduino R3 HOT 32
- .Bat file not openning correctly HOT 1
- Checking COM port in Network Bridges list causes error - Failed to open serialPort HOT 5
- How to connect fdd to esp8266 HOT 2
- MoppyControlGUI not starting HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moppy2.