-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIDI file playing in a devcontainer #175
Comments
There is something fishy about Linux and timidity that I haven't had the time to look into -- please refer to #173 and see if that works? Happy to try running this dev container when I have time as per your other issue. Thanks for reporting this! |
Thanks for the info. Unfortunately I didn't manage to make the MIDI player nor the MIDI input feature on Linux. Meanwhile, here is the dev container I use when working on LilyPond projects. |
Sorry for putting this off for so long--I'm looking into this now |
Hmm -- the whole devcontainer crashed for me when I tried any MIDI action from the extension Is this what you see as well? @jeandeaual |
Opened https://github.com/microsoft/vscode/issues/123836 -- it is rather annoying to debug without any logs/trace |
This problem seems to stem from the |
@jeandeaual -- what is your host machine's OS? |
Opened jazz-soft/JZZ#43 for |
Fixed via |
The crashing behavior is fixed in #257 I doubt MIDI playback/input can actually be done reliably in a devcontainer, but at least now it does not crash when the MIDI buttons are pressed. Relevant: |
Reopening until we can have MIDI IO via docker (if that's at all possible) |
https://stackoverflow.com/a/41084959/9723640 -- it might be possible to forward audio out of a container--I've done this with PulseAudio with WSL2. The container would need to mount /dev/snd--I'll come back when I have time. |
@lhl2617 Sorry I didn't get back to you earlier, and thanks for investigating this issue!
I tested on Windows 10 (x64), Arch Linux (x64) and macOS Big Sur (Apple M1).
I tried again after uncommenting this line:
This is a minor inconvenience, but it'd be nice if all VSLilyPond features worked inside containers. |
I agree--I think overall piping audio out from a container into the host system is a challenge; however, I'll look into it deeper. I currently only have a Ubuntu 20.04 (x64) and Win10 (x64) machine. I am able to replicate the Windows 10 behaviour--I assume on Ubuntu it would be as you observed on Arch. I will soon obtain whatever 16 inch device comes with Apple silicon to test. Thanks so much for testing this! |
I usually work inside a development container, and this extension works perfectly fine there, except for the MIDI file player: I get no error but no music is played.
I tried installing
timidity
,fluid-soundfont-gm
andfluid-soundfont-gs
, but this didn't help (the container is based on Debian).Here is the configuration I use (files inside
.devcontainer
):Dockerfile
:devcontainer.json
Do you have any idea how to make it work?
The text was updated successfully, but these errors were encountered: