Skip to content
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

Error initializing midi output device #386

Closed
mzryz opened this issue Jul 4, 2022 · 6 comments
Closed

Error initializing midi output device #386

mzryz opened this issue Jul 4, 2022 · 6 comments
Labels
Milestone

Comments

@mzryz
Copy link

mzryz commented Jul 4, 2022

Description
opening PTE says: Error initializing midi output device

To Reproduce
Open the program
Also checking preferences there is no midi output device to select

Additional Info
I made sure to install timidity, also pulseaudio-alsa and pipewire-alsa

Version
Manjaro (latest, rolling)
v2.0.0.0-alpha18-0-g1f2771b2

@mzryz mzryz added the bug label Jul 4, 2022
@cameronwhite
Copy link
Member

Are you using the snap or flatpak package? Perhaps there's an issue related to sandboxing

@mzryz
Copy link
Author

mzryz commented Jul 5, 2022

@cameronwhite I used snap (first time I've ever used snap, went smoothly) I could try removing that and trying flatpak instead perhaps. I was surprised that power tab isn't in the AUR, neither is TuxGuitar for some reason either :)

@cameronwhite
Copy link
Member

Ah, can you try sudo snap connect powertabeditor:alsa?
This used to be mentioned on the application page in the Snap store, but seems like it somehow got lost

@psyomn
Copy link
Contributor

psyomn commented Jul 5, 2022

I was surprised that power tab isn't in the AUR, neither is TuxGuitar for some reason either :)

I can probably write you a one-off PKGBUILD if you would be willing to trial it with me a little bit. I'm on the discord community of this project if you want to message me directly.

Depending on how well the above goes, I can see what kind of work it would take to actually have it officially in the AUR.

@psyomn
Copy link
Contributor

psyomn commented Jul 16, 2022

pkgname=powertabeditor
pkgver=2.0.0
pkgrel=1
pkgdesc='powertab editor'
arch=('x86_64')
url='https://github.com/powertab/powertabeditor.git'
source=("${pkgname}-${pkgver}::git+https://github.com/powertab/${pkgname}.git")
sha256sums=('SKIP')

makedepends=("cmake")
depends=("qt5-base" "boost" "boost-libs" "nlohmann-json" "rtmidi" "pugixml" "minizip" "alsa-lib" "timidity++")

MAKEFLAGS="-j$(nproc)"

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
}

build() {
    cd "$srcdir/$pkgname-$pkgver"
    mkdir -p build
    cd build
    echo "will install in ${pkgdir}"
    cmake .. -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr"
    make
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    cd build
    make install
}

Not the most elegant but for whoever else might want this.

@cameronwhite
Copy link
Member

Nice! Would be great to get it into the AUR

@cameronwhite cameronwhite added this to the Alpha 19 milestone Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants