Giter Club home page Giter Club logo

Comments (4)

pictune avatar pictune commented on August 19, 2024

Hi, we ran into a similar issue while working on a modified version of SynthOne's code. The issue was an access violation at the following line of S1NoteState::init()

oscmorph1->enableBandlimit = getParam(oscBandlimitEnable);

The program was trying to access a memory address 8 bytes right of a 40 bytes memory area (which corresponded to the sp_oscmorph2d structure).

We found out that there are two conflicting definitions of sp_oscmorph2d. The structure is defined in oscmorph2d.c:

typedef struct {
    SPFLOAT freq, amp, iphs;
    int32_t lphs;
    sp_ftbl **tbl;
    int inc;
    SPFLOAT wtpos;
    int nft;
} sp_oscmorph2d;

And also in AudioKit's soundpipeextension.h:

typedef struct {
    SPFLOAT freq, amp, iphs;
    int32_t lphs;
    sp_ftbl **tbl;
    int inc;
    SPFLOAT wtpos;
    int nft; // number of waveforms
    int nbl; // number of bandlimited tables per waveform
    float *fbl; // array of frequencies per bandlimited waveform
    int enableBandlimit; // if 0 use index 0, if 1 select index based on freq
    int bandlimitIndexOverride; // temporary
} sp_oscmorph2d;

I don't know if this is a bug, but I just though I'd share this in case it helps someone.

Cheers

from audiokitsynthone.

cmaughan avatar cmaughan commented on August 19, 2024

Hi @aure Did this get fixed?

from audiokitsynthone.

aure avatar aure commented on August 19, 2024

@cmaughan pictune's explanation is right. The extension version is the correct one as it has enableBandLimit.

from audiokitsynthone.

cmaughan avatar cmaughan commented on August 19, 2024

Hi @aure - thanks, but my point was really that the bug was closed without actually fixing it; the one in situ is incorrect. So the next person who comes along also gets confused.... Would be nice to fix the code to have the right version.....

from audiokitsynthone.

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.