Giter Site home page Giter Site logo

orhun / linuxwave Goto Github PK

View Code? Open in Web Editor NEW
494.0 5.0 12.0 526 KB

Generate music from the entropy of Linux ๐Ÿง๐ŸŽต

Home Page: http://orhun.dev/linuxwave/

License: MIT License

Zig 83.05% Dockerfile 1.54% Shell 3.93% HTML 11.47%
entropy linux music music-generation music-generator random random-music retrowave synthwave tune-generator

linuxwave's People

Contributors

bors[bot] avatar dependabot[bot] avatar orhun avatar tranzystorekk 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  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

linuxwave's Issues

MIDI support

Is your feature request related to a problem? Please describe.

Generating MIDI files from the input would be nice.

Describe the solution you'd like

Implement encoding MIDI files and add an option for selecting between WAV and MIDI.

e.g. linuxwave --output-format midi or linuxwave --midi

Describe alternatives you've considered

None.

Additional context

Permission denied when running the docker command

Describe the bug

Permission issue when running with the rootless docker or podman.

To reproduce

  1. Have rootless podman configured
  2. Run the following command
podman run --rm -it -v "$(pwd)":/app "orhunp/linuxwave:${TAG:-latest}"

You'll get the error

Reading 96 bytes from /dev/urandom
Saving to output.wav
Error occurred: error.AccessDenied

Expected behavior

Having output.wav in the current directory

Software information

  • OS: Arch linux
  • Rootless podman

Additional context

Solution
Remove those lines from the Dockerfile

chown 1000:1000 output.wav
USER 1000:1000

Note
You can remove -it option for docker or podman, it's not needed

Nice tool, GJ ๐Ÿ’ฏ

Build Failing

Greetings! I recently came across your project and I'm very much looking forward to testing it out. However the build is failing.

Repoository was cloned, submodules were updated. Zig is version 0.11.0.

To reproduce:
zig build -Drelease-safe

Zig returns the following error:

/home/user/Tools/sound-tools/linuxwave/build.zig:30:19: error: no field or member function named 'standardReleaseOptions' in 'Build'
    const mode = b.standardReleaseOptions();
                 ~^~~~~~~~~~~~~~~~~~~~~~~
/snap/zig/8241/lib/std/Build.zig:1:1: note: struct declared here
const std = @import("std.zig");
^~~~~
referenced by:
    runBuild__anon_7127: /snap/zig/8241/lib/std/Build.zig:1639:37
    remaining reference traces hidden; use '-freference-trace' to see all reference traces

System: Linux Mint 20.3 Una

Any tips would be helpful.
Thanks!

FileNotFound error when building from source

Describe the bug

When I attempt to build from source following the instructions, I get the error: "FileNotFound: /home/tkk/temp/linuxwave/libs/zig-clap/clap.zig"

To reproduce

git clone https://github.com/orhun/linuxwave && cd linuxwave/ zig build -Drelease-safe

Expected behavior

The project should build with no errors

Screenshots / Logs
โฏ zig build -Drelease-safe
warning: FileNotFound: /home/tkk/temp/linuxwave/libs/zig-clap/clap.zig
error: FileNotFound
error: linuxwave...
error: The following command exited with error code 1:
/usr/bin/zig build-exe /home/tkk/temp/linuxwave/src/main.zig -OReleaseSafe --cache-dir /home/tkk/temp/linuxwave/zig-cache --global-cache-dir /home/tkk/.cache/zig --name linuxwave --pkg-begin clap /home/tkk/temp/linuxwave/libs/zig-clap/clap.zig --pkg-end --pkg-begin file /home/tkk/temp/linuxwave/src/file.zig --pkg-end --pkg-begin gen /home/tkk/temp/linuxwave/src/gen.zig --pkg-end --pkg-begin wav /home/tkk/temp/linuxwave/src/wav.zig --pkg-end --pkg-begin build_options /home/tkk/temp/linuxwave/zig-cache/options/qMakyD73vBhS-mLFzE_KDtVFe5JLMb8_fa1uQfpzXJ_ZwUp24BkeEUgj8oneTF4J --pkg-end -fPIE --enable-cache
error: the following build command failed with exit code 1:
/home/tkk/temp/linuxwave/zig-cache/o/8205680e369cdd724044e5a08320985a/build /usr/bin/zig /home/tkk/temp/linuxwave /home/tkk/temp/linuxwave/zig-cache /home/tkk/.cache/zig -Drelease-safe

Software information

  • Operating system: Arch Linux 6.2.11-arch1-1
  • Zig version: 0.10.1
  • Project version: ?

P.S. This is my first bug report on GitHub. I don't quite know how to get Markdown to work properly

Note pitch and duration depends on sample rate

Describe the bug

It sounds bad at high sample rates.

To reproduce

linuxwave -r 192000 -c 2

Expected behavior

Pitches and durations should not depend on sample rate.

Software information

Arch Linux
linuxwave 0.1.0-1

Integrate a package manager

Is your feature request related to a problem? Please describe.

Currently, linuxwave is not packaged for any Zig package manager and the dependencies are simply git submodules.

Describe the solution you'd like

It would be nice to utilize zigmod and/or gyro.

Describe alternatives you've considered

None.

Additional context

See zerve project's files (gyro.zzz, zig.mod) which sparked this idea.

Reverb/echo

Is your feature request related to a problem? Please describe.

I am not a digital audio person at all so I don't know if this is easy or near-impossible, but I would love if this also had some setting for reverb or echo.

Describe the solution you'd like

Reverb or echo settings (to start to approach that 80s synthpad kind of feel)

Describe alternatives you've considered

Post processing with... something?

Additional context

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.