powertab / powertabeditor

View and edit guitar tablature.
https://powertab.github.io
GNU General Public License v3.0
519 stars 68 forks source link

Error initializing midi output device #386

Closed mzryz closed 2 years ago

mzryz commented 2 years ago

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

cameronwhite commented 2 years ago

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

mzryz commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago
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 commented 2 years ago

Nice! Would be great to get it into the AUR