Closed pioneerman2k1 closed 6 years ago
Yes that is possible. In fact I have a Teensy ordered that I hope to receive by the end of this week to start implementing this :)
Nice! In that case u can use it (like MUNT) as an Midi Device. So u would be able to Play on an MIDI-Keyboard and use the OPL2 Board as Output. Cant wait for it!
Sounds nice! Another thing is, that u can use it as an Midi-Device in DosBox as Output Device. That would be so nice!
Feel free to give the linked branch a try and let me know about any issues.
After building the TeensyMidi.ino sketch the OPL2 board should show up as 'OPL2 Audio Board MIDI'. Using the board as a MIDI instrument works great from what I tested in MIDI-OX and DoxBox. Pitch control is still missing and I'm making some assumptions around channel volume control, but so far it seems to work very well!
Known issues with games in DosBox: Descent: Game crashes when flying through the exit. Not sure is this is my DosBox setup, or some MIDI event I should handle / respond to Beneath a steel sky: Game creahes when walking outside on first screen. Same as Descent. DosBox will unfreeze when resetting Teensy. Epic: Low volume probably due to my interpretation of the volume control Simon the sorcerer - Very low volume. Not sure if this is due to my code since Adlib DRO exports have the same issue.
There was missing the usb_names.h in the lib.
Got this Error:
**_Arduino: 1.8.5 (Windows 10), TD: 1.42, Board: "Teensy++ 2.0, MIDI, 16 MHz, US English"
In file included from C:\Users\user\AppData\Local\Temp\arduino_build_815943\sketch\OPL2.cpp:49:0:
C:\Users\user\AppData\Local\Temp\arduino_build_815943\sketch\OPL2.h:19:0: warning: "ARDUINO" redefined
^
i got the same Error Message. I updated all libs, but got this error, too
Arduino: 1.8.5 (Windows 10), TD: 1.42, Board: "Teensy++ 2.0, MIDI, 16 MHz, US English"
In file included from C:\Users\Pione\OneDrive\Desktop\ArduinoOPL2-teensy_midi\examples\TeensyMidi\TeensyMidi.ino:19:0:
C:\Users\Pione\Documents\Arduino\libraries\ArduinoOPL2-teensy_midi\src/OPL2.h:19:0: warning: "ARDUINO" redefined
^
@saschaamend Hmm surprising that it's complaining about usb_names.h
missing. It's also not there in the Teensy example code where I copied it from. My suspicion is that the line should've been #include <usb_names.h>
and I was just lucky with the IDE helping out in resolving the file.
After searching for the file I found it in the Teensy3 folder. It does not look specific to Teensy 3.0 or later, so if changing the include is not helping then maybe including this header in the lib will help? Worst case is that it really is only for 3.0 and later (I'm using a Teensy 3.6) in which case I need to make some more modifications.
@pioneerman2k1 From
Mehrere Bibliotheken wurden für "OPL2.h" gefunden Benutzt: C:\Users\Pione\Documents\Arduino\libraries\ArduinoOPL2-teensy_midi Nicht benutzt: C:\Users\Pione\Documents\Arduino\libraries\ArduinoOPL2-master
it looks like you have two versions of the library in the libraries folder. The Arduino IDE does not like that. Try moving out the master and only leave this branch in there. Could that also be the case for you @saschaamend ?
I will push some changes soon that will hopefully fix the usb_names issue and also get rid of a warning. Thanks for the feedback it is very helpful!
i followed the instructions, but still get this error. I also tried it on the Notebook of my wife with a clean install of Arduino IDE. The same error Message..
With the new brench it workt for me. This evening i will test some of my favorite Dos Games..
Excellent!
@pioneerman2k1 I tried to reprodce your issue for a bit, but no 'luck' so far... So maybe the latest commit also fixes your issue automagically
I cant get any sound from it.. The Code work for me, but with teensy ++ 2.0 no sound at all I also tried the DemoTune.ino with no luck. Maybe the teensy ++ 2.0 has a different pinout?
Am I correct with this?
btw. i am using Abelton Live 9 to test my Teensy Midi device. With the SN76489 it works fine.
Same for me.. Wireing is correct but no sound. I ordered an Teensy LC. It is the low cost model but has more capabilities than the ++ 2.0
Looking at the pinout for the Teensy ++2.0 it looks like hardware SPI is not on pins 11 - 13. https://www.pjrc.com/teensy/td_libs_SPI.html
Can you give the following a try? Reset = E0 A0 = E1 Latch = C0 Data = B2 Shift = B1
Cant believe it, but it does work for me happy
Teensy support has been added to the library and released as v1.4.2
Closing this issue.
Is it possible to add support for the teensy 2.0++? The Teensy is able to act like an USB Midi device.