Code Monkey home page Code Monkey logo

Comments (4)

sensorium avatar sensorium commented on July 23, 2024

from mozzi.

Capobuf avatar Capobuf commented on July 23, 2024

I tried your suggestion, but it's the same stuff :(

My error is:

 C:\Users\User\Documents\Arduino\testdelay\testdelay.ino: In function 'int updateAudio()':

test_delayfeedback:57:56: error: call of overloaded 'next(int8_t, byte&)' is ambiguous

   return aDel.next((int8_t) aTriangle.next(), del_samps); // instead of the previous 2 lines for only the delayed signal

                                                        ^

In file included from  C:\Users\User\Documents\Arduino\testdelay\testdelay.ino:18:0:

C:\Users\Fabio Capo\Documents\Arduino\libraries\Mozzi-master/AudioDelayFeedback.h:92:10: note: candidate: int16_t AudioDelayFeedback<NUM_BUFFER_SAMPLES, INTERP_TYPE>::next(int8_t, uint16_t) [with unsigned int NUM_BUFFER_SAMPLES = 128u; signed char INTERP_TYPE = 0; int16_t = int; int8_t = signed char; uint16_t = unsigned int]

  int16_t next(int8_t input, uint16_t delaytime_cells)

          ^

C:\Users\Fabio Capo\Documents\Arduino\libraries\Mozzi-master/AudioDelayFeedback.h:117:10: note: candidate: int16_t AudioDelayFeedback<NUM_BUFFER_SAMPLES, INTERP_TYPE>::next(int8_t, Q16n16) [with unsigned int NUM_BUFFER_SAMPLES = 128u; signed char INTERP_TYPE = 0; int16_t = int; int8_t = signed char; Q16n16 = long unsigned int]

  int16_t next(int8_t input, Q16n16 delaytime_cells)

          ^

exit status 1
call of overloaded 'next(int8_t, byte&)' is ambiguous

For the rest my code it's the same, except the output part:

int updateAudio(){
  char asig = aTriangle.next(); // get this so it can be used twice without calling next() again
  //return asig/8 + aDel.next(asig, del_samps); // mix some straight signal with the delayed signal
  return aDel.next((int8_t) aTriangle.next(), del_samps); // instead of the previous 2 lines for only the delayed signal
  //return asig/8 + aDel.next(asig, deltime); // mix some straight signal with the delayed signal
}

from mozzi.

sensorium avatar sensorium commented on July 23, 2024

from mozzi.

sensorium avatar sensorium commented on July 23, 2024

fixed in repo

from mozzi.

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.