Giter Site home page Giter Site logo

codacy-badger / mimium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mimium-org/mimium

0.0 0.0 0.0 1.44 MB

mimium (MInimal Musical medIUM) a programming language as an infrastructure for sound and music.

Home Page: https://mimium.org

License: Mozilla Public License 2.0

CMake 8.12% C++ 85.18% Lex 1.23% Yacc 5.28% Dockerfile 0.19%

mimium's Introduction

mimium

a programming language as an infrastructure for sound and music

stable: build status(master) dev: build status(dev) Codacy Badge

website badge Gitter License Badge-MPL2.0

mimium_logo_slanted

mimium(MInimal-Musical-medIUM) is a domain specific programming language for describing/generating sound and music.

With this language, you can write a low-level audio processing with an easy expression and high-performance powered by LLVM.

fn lpf(input:float,fb:float){    
    return (1-fb)*input + fb*self
}

A special keyword self can be used in function, which is a last return value of the function. This enables an easy and clean expression of feedback connection of signal chain, inspired by Faust.

you can also write a note-level processing by using a temporal recursion, inspired by Extempore.

fn noteloop()->void{
    freq =  (freq+1200)%4000
    noteloop()@(now + 48000)
}

Calling function with @ specifies the time when the function will be executed. An event scheduling for this mechanism is driven by a clock from an audio driver thus have a sample-accuracy.

Installation

You can download a built binary from release section.

mimium can run on macOS(x86), Linux(ALSA backend), Windows(WASAPI backend). WebAssemby backend will be supported for future.

On macOS and Linux, installation via Homebrew is recommended.

Open your terminal application and type

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 

to install homebrew itself. After installation, you can install with the commands below.

brew tap mimium-org/mimium
brew install mimium

Build from Source

See also GitHub Action Workflow.

Dependencies

build

  • cmake
  • bison >= 3.3
  • flex
  • llvm 9 ~ 11

build and runtime

  • Libsndfile
  • RtAudio(cmake will automatically download)
git clone https://github.com/mimium-org/mimium
cd mimium
mkdir build && cd build
# configure. if you want to install to specific directory, add -DCMAKE_INSTALL_PREFIX=/your/directory
cmake .. 
# build
cmake --build . --target default_build -j
#install
cmake --build . --target install

notes for linux build

At Ubuntu 18.04(Bionic), bison from apt is version 3.0.4, which will not work. Please install latest version manually.

Author

Tomoya Matsuura/松浦知也

https://matsuuratomoya.com/en

The source code is lisenced under Mozilla Puclic License 2.0.

The source code uses some third party libraries with BSD-like lincenses, see COPYRIGHT.

Acknowledgements

This project is supported by 2019 Exploratory IT Human Resources Project (The MITOU Program) by IPA: INFORMATION-TECHNOLOGY PROMOTION AGENCY, Japan.

mimium's People

Contributors

tomoyanonymous avatar

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.