Code Monkey home page Code Monkey logo

Comments (4)

igorski avatar igorski commented on July 26, 2024

@hypeastrum I understand that sample based values are cumbersome, however they provide more flexibility when using the engine within contexts that aren't timed strictly "on the grid" (for instance : if you want to introduce "swing", drifting early/late events, you would have to displace them at the sample level to get the right effect).

However, in utilities/bufferutility.h you will find several convenience methods that translate time based values into sample based values. Additionally, I have just pushed a utilities/eventutility.h into the master-branch that provides a convenience method to position events within a sequenced step position-context. These two classes are also available to Java.

from mwengine.

hypeastrum avatar hypeastrum commented on July 26, 2024

I think, this method can be incapsuleted in BasiEvent.

Any way EventUtility::positionEvent methot seems to be not precise when many subdivisions used:
I suggest replace:

startOffset += ( bytesPerBar / subdivisions ) * offset;

with

startOffset += offset * bytesPerBar / subdivisions;

On 9 нояб. 2015 г., at 22:17, Igor Zinken [email protected] wrote:

@hypeastrum I understand that sample based values are cumbersome, however they provide more flexibility when using the engine within contexts that aren't timed strictly "on the grid" (for instance : if you want to introduce "swing", drifting early/late events, you would have to displace them at the sample level to get the right effect).

However, in you will find several convenience methods that translate time based values into sample based values. Additionally, I have just pushed a into the master branch that provides a convenience method to position events within a sequenced step position-context. These two classes are also available to Java.


Reply to this email directly or view it on GitHub.

from mwengine.

igorski avatar igorski commented on July 26, 2024

@hypeastrum I think you're right, there is no need for a separate utility when the code is specific to AudioEvents !

I have created a branch "audioeventposition" featuring your request : #15

Can you review whether the implementation meets your request ?

from mwengine.

igorski avatar igorski commented on July 26, 2024

Merged into master, updated Wiki.

from mwengine.

Related Issues (20)

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.