the-drunk-coder / megra.rs Goto Github PK
View Code? Open in Web Editor NEWMégra is a mini-language to make music with variable-order markov chains and some other stochastic shenanigans.
License: GNU General Public License v3.0
Mégra is a mini-language to make music with variable-order markov chains and some other stochastic shenanigans.
License: GNU General Public License v3.0
The cargo build fails with a jack related error message. I am using pipewire and do not have jack installed.
$ rustup default nightly
...
$ RUST_BACKTRACE=true CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true cargo install megra_rs --features ringbuffer
...
Compiling url v2.5.2
error: failed to run custom build command for `jack-sys v0.5.1`
Caused by:
process didn't exit successfully: `/tmp/cargo-installweTFvg/release/build/jack-sys-f530175b21ce43dc/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=JACK_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=JACK_STATIC
cargo:rerun-if-env-changed=JACK_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
thread 'main' panicked at /home/i/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jack-sys-0.5.1/build.rs:13:23:
called `Result::unwrap()` on an `Err` value: "\npkg-config exited with status code 1\n> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags jack\n\nThe system library `jack` required by crate `jack-sys` was not found.\nThe file `jack.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.\nThe PKG_CONFIG_PATH environment variable is not set.\n\nHINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `jack.pc`.\n"
stack backtrace:
0: rust_begin_unwind
at /rustc/5069856495870486134dd2ca0b0e2516308c5c2a/library/std/src/panicking.rs:665:5
1: core::panicking::panic_fmt
at /rustc/5069856495870486134dd2ca0b0e2516308c5c2a/library/core/src/panicking.rs:74:14
2: core::result::unwrap_failed
at /rustc/5069856495870486134dd2ca0b0e2516308c5c2a/library/core/src/result.rs:1679:5
3: core::result::Result<T,E>::unwrap
at /rustc/5069856495870486134dd2ca0b0e2516308c5c2a/library/core/src/result.rs:1102:23
4: build_script_build::main
at ./build.rs:13:9
5: core::ops::function::FnOnce::call_once
at /rustc/5069856495870486134dd2ca0b0e2516308c5c2a/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `megra_rs v0.0.12`, intermediate artifacts can be found at `/tmp/cargo-installweTFvg`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
The program isn't able to set the blocksize or samplerate to the value it needs ...
This typically happens in complex setups with PipeWire, where a bridge between different devices, such as the wireless mic and the internal headphone jack, is created.
There's two ways this can play out. In botch cases, the sound is not affected, so I assume the scheduling threads are not affected.
1.) The editor freezes completely, the cursor doesn't move, the window doesn't update.
2.) The editor is accepting input, but executing code doesn't have any effect ...
I'm getting a segfault when I try to run the pre-built binaries.
$ wget -q https://github.com/the-drunk-coder/megra.rs/releases/download/v0.0.12/megra_rs_0_0_12_linux_ringbuffer.AppImage
$ chmod +x megra_rs_0_0_12_linux_ringbuffer.AppImage
$ ./megra_rs_0_0_12_linux_ringbuffer.AppImage
Segmentation fault
$ dmesg
[17664.559260] bin[107151]: segfault at 0 ip 0000000000000000 sp 00007ffd01c92d18 error 14 in bin[55a8d77cc000+114000] likely on CPU 1 (core 1, socket 0)
[17664.559270] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
Looks like a really awesome project, thanks!
A wavetable synthesizer would greatly increase the spectral flexibility of megra ...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.