GithubHelp home page GithubHelp logo

pd3v / zeroone Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 1.0 317 KB

Language (prettified API) + headless MIDI sequencer for live coding music

License: GNU General Public License v3.0

CMake 1.97% C++ 97.47% Shell 0.56%
live-coding sound music midi c-plus-plus

zeroone's Introduction

zeroOne

zeroOne is a polyphonic instrument, multi-instrument, DSLish/API MIDI sequencer for live coding music. It sends MIDI messages to any stand-alone synthesiser or DAW.

To some videos live coding with it go here.(twttr)

livecoding_screenshot

Dependencies

RtMidi library

Live coding

cling (an interative C++ interpreter) is for the live coding enverionment.

1. Install cling

On Mac and Linux using Homebrew
  1. open your command line software
  2. type brew install cling

2. Or download cling

Alternatively, you can download the right build for your machine:cling builds for Linux and MacOS

Or you still can compile/link zeroOne as any other c++ library and code with it as so.

How to use it

  1. open your synth ready to listen MIDI messages

  2. open your command line software

  3. run ./build.sh

  4. at cling's prompt load zeroone by entering the following lines:

    [cling]$ .L zeroone

    [cling]$ #include "../src/zoengine.h"

    [cling]$ zeroone()

  5. after message "zEROoNE on <((()))>" appears, copy/paste the code below:

Instrument 1 sends "C Major" chord notes to midi channel 1, 0.9 amplitude and 1/4 duration.

i1.play(n(
	({36,40,43}),
	0.9,
	{4},
)) 

and/or

Instrument 2 sends cycling c4,cs4 and d4 notes to midi channel 2, 0.5 amplitude, 1/4, 1/8, 1/4, 1/8, 1/4 duration sequence.

i2.play(n(
	{cycle({48,49,50},isync(2))},
	0.5,
	({4,8,4,8,4})
)) 

and/or

Instrument 3 sends cycling pentatonic minor scale notes to midi channel 3 and modulates cc channel 1 and 2.

i3.play(n(
	{cycle(
		scale_::transpose(scale_::pentatonicminor,5),
		isync(3))
	},
	0.9,
	({4,8,4,8,4})),
	cc(1,rnd(chop(10))),
	cc(2,bounce(0,127))
) 

Make some noise!

zeroone's People

Contributors

pd3v avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

forkkit

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.