GithubHelp home page GithubHelp logo

misterinterrupt / patchlooperexample Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 2.0 51 KB

Daisy platform Looper example adapted for use on the Patch eurorack module

C++ 94.53% Makefile 5.47%
audio daisy looper dsp cpp

patchlooperexample's Introduction

Description

Loops incoming audio at a user defined interval.
Use the simple controls to record loops, play and pause them, and punch-in record over them. Loops can be very long, or very short.

Controls

Press button two to record. First recording sets loop length. Automatically starts looping if 5 minute limit is hit.
After first loop sound on sound recording enabled. Press button two to toggle SOS recording. Hold button two to clear loop.
The red light indicates record enable. The green light indicates play enable.
Press button one to pause/play loop buffer.
Knob one mixes live input and loop output. Left is only live thru, right is only loop output.

Control Description Comment
Encoder Press Play/Record pressing the encoder once will begin recording into the buffer
Encoder Long Press Clear/Stop pressing the encoder for a second or more will clear the buffer and stop the playback
Ctrl1 Dry/Wet Control the balance of the wet and dry to the output
Audio Ins Audio to be captured by the instrument In 1 mono signal can be recorded or played through dry
Audio Outs Audio mix Output 1 plays the mono mix of the looper and the input

Code Snippet

void NextSamples(float &output, float* in, size_t i)  
{  
    if (rec)  
    {  
        WriteBuffer(in, i);  
    }  

    output = buf[pos];

    ......

    if(play)
    {
        pos++;
        pos %= mod;
    }

    if (!rec)
    {
    output = output * drywet + in[i] * (1 -drywet);
    }
}  

patchlooperexample's People

Stargazers

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

Watchers

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