Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation #4

Open
spiricom opened this issue Aug 19, 2019 · 4 comments
Open

documentation #4

spiricom opened this issue Aug 19, 2019 · 4 comments

Comments

@spiricom
Copy link
Owner

make examples for each object

list objects and their inputs/functions (maybe this is part of moving to Doxygen)

reorder objects within their files to put common ones first (neuron should not be first in oscillators!)

more credits! need to credit where we took things from (stk, mda, pitchshift)

@bigpapo
Copy link

bigpapo commented Jan 18, 2022

Hi, is there any progress on these examples? There seems to be all of the components to a great framework without much indication on how it is intended to be used.

@spiricom
Copy link
Owner Author

spiricom commented Jan 18, 2022 via email

@Sam2R
Copy link

Sam2R commented Dec 19, 2022

Hi,
Thanks for this nice yet powerful library.
Any news on examples specially how to use effects like reverb and others?
Really excited to use the library but a bit confused.
Please let us know.
Thanks,

@blezzbeats
Copy link

Thanks for a fun library! Any progress on this? @spiricom It's a little bit mysterious. Take an example where I'm trying to get tPitchDetector to work (using JUCE):

Constructor

    #define MEM_SIZE 1000000
    char myMemory[MEM_SIZE];
   
    LEAF_init(&leaf, sampleRate, myMemory, MEM_SIZE, &randomNumberz);

    tPitchDetector_init(&leafDetector, 80.0f, 5000.0f, &leaf);
    tPitchDetector_setSampleRate(&leafDetector, sampleRate);
    tPitchDetector_setHysteresis(&leafDetector, -40.0f); // Tried different

processBlock

    const float* inPointerL = buffer.getReadPointer(0);

    for (int samp = 0; samp < buffer.getNumSamples(); ++samp)
    {
        tPitchDetector_tick(&leafDetector, inPointerL[samp]);
    }

    currentPitch = tPitchDetector_getFrequency(&leafDetector);
    predPitch = tPitchDetector_predictFrequency(&leafDetector);
    period = tPitchDetector_getPeriodicity(&leafDetector);

Returns all zeroes. Could you please tell me what I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants