Comments (7)
First: An interesting idea, though generally there's no reason to include notes above a certain range at all since the drives just can't play them at all. I suppose if you were using the same interface to connect to a non-floppy-drive step motor though this might be useful.
Second: I'm hesitant to just add more channels to the Arduino code in-case people want to use the other PINs on the Arduino for something, but maybe that's not really a concern. The Java code already supports the maximum number of MIDI channels (16), so all that needs to change is the Arduino code.
Third: You probably shouldn't need to do that (it's not a problem for me), so that's probably a bug.
from moppyclassic.
hmm so i can just expand the arduino code like in your example to get 16 channels?
my problem is that some of my drives just cant play the highest notes, but others can. so it would be nice to set the limits in the interface. But i have no idea how to write in java ;)
The problem with the reconnect: i updated the code an recompiled it but it got even worse... the first time i just had to push reset but now i need to reconnect.
If you updated the code i will download the newest version and try again...
from moppyclassic.
You can indeed expand the Arduino code up to 16 channels without much issue (make sure you expand the arrays in the Arduino code as well).
I'm not saying no to an in-interface limit, but since the end goal would be to play all the written notes somehow (you don't just want to cut out chunks of music in a certain range), the music should probably be assigned to channels that can handle it, rather than cutting the notes out after the fact. In other words, it's probably better to just arrange music that your drives can actually play, rather than have the software not play all of your music.
I haven't changed the code relating to your connecting issue, but I've never had that problem either. I don't know for sure since I can't reproduce it, but it does sound a lot like COM drive issues. Maybe double-check that rxtxcomm is installed and happy, or try a different built of it from another site?
from moppyclassic.
Today i got the code working on an arduino mega 2560 with all 16 channels but the reset problem still appears.
The arduino keeps looping the resetAll function if it recieves the "100" reset message from the interface when i click on the reset button. it seem that the serial.Flush() doesnt work since i used arduino compiler version 1.0.
on the arduino site they said: "Flush: Waits for the transmission of outgoing serial data to complete. (Prior to Arduino 1.0, this instead removed any buffered incoming serial data.)"
from moppyclassic.
In Arduino 1.0 you have to replace Serial.flush() with something like
while(Serial.available() > 0){
Serial.read();
}
Works fine for me now.
from moppyclassic.
ohh thanks
works great and solved my reconnect problem :)
from moppyclassic.
Thanks again knorke74, I just updated the code so that that's fixed. Great catch.
Ultrawipf, I can't wait to see a video of 16 channels in action; that sounds amazing!
from moppyclassic.
Related Issues (20)
- Serial connect issue (libNRJavaSerial.dll) HOT 2
- Utilize headbanging HOT 5
- PinMode(13, OUTPUT) in Arduino code is used twice HOT 1
- To anyone who wants to start using Moppy quick HOT 1
- MIDI Keyboard not working HOT 2
- Scanner Motor / Arduino HOT 3
- Monitor and application, application small. Please Help HOT 1
- What am I doing wrong? HOT 3
- L298N H Bridges, 2 good scanners but no skill HOT 2
- Moppy And Bluetooth HOT 2
- Moppy Crashes when opening port HOT 1
- Using Arduino Leonardo built into Lattepanda HOT 1
- Converting Moppy to stepper motors HOT 1
- Having issues with midi channels HOT 2
- Can't select channels -- Interface issue? HOT 3
- Please Don't Delete Moppy 1.0 (b1e55ad) HOT 2
- MoppyDisk Crashes while connecting HOT 1
- Arduino code crashing MoppyDesk? HOT 1
- when i want to connect to the arduino using moppy the aplication closes HOT 3
- Floppy do not working HOT 19
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 moppyclassic.