Giter Site home page Giter Site logo

tonicaudio / ofxtonic Goto Github PK

View Code? Open in Web Editor NEW
88.0 88.0 19.0 238 KB

Open Frameworks Addon for the Tonic audio synthesis Library. Tonic is an efficient, pure C++ patching tool with a refreshingly crisp and simple syntax.

License: The Unlicense

C++ 95.26% Objective-C 3.91% C 0.83%

ofxtonic's People

Contributors

admsyn avatar hamoid avatar mat-loz avatar morganpackard avatar

Stargazers

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

Watchers

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

ofxtonic's Issues

Using MIDI input, only one signal is playing at a time

(Apologies for the newb issue, but I'm relatively new to the world of MIDI and sound synth.)

I'm sure I'm doing something wrong, but every time I create a new signal with ofxTonic, the previous signal is stopped. I would think that there is a way to play all of the signals (i.e., play a C chord and have them all play together), but I am at a loss.

Thanks,

new ofxTonicSynth() causes infinite loop in Android

Thanks great library!
I enjoy in Mac.

I wanna create musical toy app in Android.
bundled Tonic library doesn't work in Android, so I use latest Tonic library.

but, ofxTonicSynth's constructor causes infinite loop.
I don't know why, but,

comment out this line:
Synth::Synth();

and modify to:
ofxTonicSynth::ofxTonicSynth(): Synth(){

it seems working.

Build fails on Linux with Codeblocks

is an include of stdio missing?

./../../addons/ofxTonic/src/Tonic/TonicCore.h:292:50: error: ‘printf’ was not declared in this scope
     printf("Tonic::error: %s\n", message.c_str() );

Util.h not found

I'm compiling for Linux at the moment, and I'm getting this error in LFNoise.cpp due to Util.h not being found:

ifndef _WIN32

include "Util.h"

endif

I just commented it out and that solves the problem. What's the use for this header exactly? Or am I just picking up unfinished code that's not included in the XCode project?

‘ofAudioEventArgs’ has not been declared

Hi! I'm trying to make sounds using ofxTonic, but I get

.../addons/ofxTonic/src/ofxTonicSynth.h:44: error: ‘ofAudioEventArgs’ has not been declared

when running the included Tonic examples. I noticed that I can make it work by removing this line from ofxTonicSynth.h

void audioRequested(ofAudioEventArgs& args);

And these three lines from ofxTonicSynth.c

...
ofAddListener(ofEvents().audioRequested, this, &ofxTonicSynth::audioRequested);
...
ofRemoveListener(ofEvents().audioRequested, this, &ofxTonicSynth::audioRequested);
...
void ofxTonicSynth::audioRequested(ofAudioEventArgs& args){}

The problem is, I don't know what are the consequences of removing these lines, and what was their original purpose.

Should I rewrite those removed lines in a different way, perhaps?

I did try downloading changes from Tonic (not ofxTonic) from the master branch but that did not help. I guess something changed in openFrameworks during the last years...

Multiple ofxTonicSynth instances

Hi

I've been trying to use a few synths simultaneously but only the last one seems to be audible depending on the order of calls of .fillBufferOfFloats(output, bufferSize, nChannels);.

In the following code only synth 0 will work:

_synths[1].fillBufferOfFloats(output, bufferSize, nChannels);
_synths[0].fillBufferOfFloats(output, bufferSize, nChannels);

in this one only synth 1 will be audible:

_synths[0].fillBufferOfFloats(output, bufferSize, nChannels);
_synths[1].fillBufferOfFloats(output, bufferSize, nChannels);

Otherwise they work correctly, don't have any audio dropouts or other cpu usage errors. Is it possible to use more than one ofxTonicSynth at once?

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.