Giter Site home page Giter Site logo

the-drunk-coder / megra.rs Goto Github PK

View Code? Open in Web Editor NEW
61.0 61.0 2.0 1.76 MB

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

Rust 100.00%
dsl livecoding markov-chain

megra.rs's People

Contributors

the-drunk-coder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

megra.rs's Issues

Cargo build fails

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.

[bug] editor freezes after some idle time

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 ...

Segfault when running release binary

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.