Code Monkey home page Code Monkey logo

sampler's Introduction

Description:
    In sync-mode, this plug-in normalizes the playback duration of each note. 
    This is implemented by dynamically calculating the sample end for every voice according to pitch.
    For example, lower pitches yield an end sample closer to the start sample since lower pitches move through the sample more slowly.
    High pitches yield an end sample further from the start sample since high pitches move through the sample more quickly.

    Consider a sample with root note C3, sample rate of 44100, and total length 88200 samples. Let's assume the DAW is set to 60 bpm.
    In sync-mode, with duration set to .5 (a half note), playing C3 will begin at sample 0, and end at sample 22050.
    With duration set to 1.0, playing C3 will begin at sample 0, and end at sample 44100.
    With duration set to 1.0, playing C2 will begin at sample 0, and end at sample 22050.
    With duration set to 1.0, playing C4 will begin at sample 0, and end at sample 88200.
    Notice that notes above C4 cannot be rendered in sync-mode with duration set to 1.0 because syncing the playback duration in this case requires more samples than the total length of the sample


Features needed:
    explicit warning/handling of the case where a MIDI note requires more samples than are available in sync mode
    select start sample by clicking on sample region

Bugs:
    crashes Live when aif dropped 
    case where bpm is changed after start note not handled

sampler's People

Contributors

doronrk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

eriser

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.