ArduinoOPL2
ArduinoOPL2 copied to clipboard
OPL3 Duo with OPL3 demotune hangs with Raspberry Pi
Hi, I'm using an original Raspberry Pi B model, and the OPL3 version of the demotune program hangs about 5 seconds in, playing the same note forever. The other demotune program doesn't have this issue.
The hardware test seems fine, but I don't know what that program is really supposed to sound like.
I'll have a look to see if there is an issue.
I've not been able to reproduce this issue. If it still exists then please provide more info like what software versions are running on your Pi.
I'm using the latest Raspberry Pi OS release on a Pi 1 B model, that much I know. I will make a video to demonstrate where the demo song is hanging up. for now I can put an arrow where the song is hanging on voice1:
v
const char voice1[] = "i96t150o5l8egredgrdcerc<b>er<ba>a<a>agdefefedr4.regredgrdcerc<b>er<ba>a<a>agdedcr4.c<g>cea>cr<ag>cr<gfarfearedgrdcfrc<bagab>cdfegredgrdcerc<b>er<ba>a<a>agdedcr4.cro3c2r2";
const char voice2[] = "i96o4l8crer<br>dr<ar>cr<grbrfr>cr<grbr>crer<gb>dgcrer<br>dr<ar>cr<grbrfr>cr<grbr>ceger4.rfrafergedrfdcrec<br>d<bar>c<agrgd<gr4.o4crer<br>dr<ar>cr<grbrfr>cr<grbr>cege";
const char voice3[] = "i2o3l8r4gr4.gr4.er4.err4fr4.gr4.gr4.grr4gr4.er4.er4.frr4gr4>ccr4ccr4<aarraar4ggr4ffr4.ro4gab>dr4.r<gr4.gr4.err4er4.fr4.g";
I will try on a newer model Raspberry Pi this week and see if it hangs there too.
Odd - it runs fine with the Pi 4, but not the Pi 1! I wonder what's going on there?
Can you check what version of Wiring Pi is running on both Pis with gpio -v
? Maybe there is a difference there, or could there be some other software running in the background interfering with the gpio?
The Pi 1 has this:
gpio -v
gpio version: 2.50
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty
Raspberry Pi Details:
Type: Model B, Revision: 02, Memory: 512MB, Maker: Sony
* Device tree is enabled.
*--> Raspberry Pi Model B Rev 2
* This Raspberry Pi supports user-level GPIO access.
I'll check the Pi 4 tonight.