Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: johanbilen

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Measured AudioProcessorUsage and...

    Measured AudioProcessorUsage and AudioProcessorUsageMax as per your suggestion. It turned out to be 100 so I made the audio memory 120 and now it works perfect, thanks!
  2. I tried to increase the audio memory to 60 but no...

    I tried to increase the audio memory to 60 but no positive effect unfortunately.
  3. Beep in audio when compiling with Serial+MIDI+Audio

    Hi,
    when I compile my sketch with "Serial + MIDI + Audio" I get a beep cutting of the audio from the headphone jack.
    (The beep sounds like a squarewave at 440hz or something you get when using a...
  4. Replies
    4
    Views
    325

    Hi, I needed higher resolution than 8-bit to...

    Hi, I needed higher resolution than 8-bit to avoid stepping of the filter and oscillator frequencies, and also the possibility of sending four channels of data in parallel, so I choose hardware...
  5. Replies
    5
    Views
    195

    Thanks mlu, so I guess this would work when...

    Thanks mlu,
    so I guess this would work when bending up/down more than one note (bendRange being for example 1 to 12 notes)?

    Voice1Frequency=8.175*powf(1.059463,57+((pitchbend/8192.0)*bendRange))...
  6. Replies
    4
    Views
    325

    Hi, I also wanted a rack of modular synths, but...

    Hi,
    I also wanted a rack of modular synths, but as you found that it was too expensive.
    When starting to produce my own modules I first tried to make my modules communicate via controlled voltage...
  7. Replies
    5
    Views
    195

    Help with pitch bend formula

    I would like some suggestions of a formula regarding pitch bend.

    Voice 1 plays MIDI note 57 (A3,220Hz).
    Voice 2 plays MIDI note 67 (G4,392Hz).
    Voice 3 plays MIDI note 72 (C5,523Hz).

    For...
  8. Replies
    1
    Views
    192

    How does AudioSynthWaveformDc work?

    Hi, since there is no envelope to control waveform frequency modulation or filter frequency modulation I tried to use the "DC" output.

    When I press the MIDI keys I want the Serial monitor to show...
  9. KurtE, just to clarify, if I don't use the memory...

    KurtE, just to clarify, if I don't use the memory och SD on the Audio shield I could use pin 7 as MOSI for the TFT, since Pin 11 is MCLK? I do not have to use pin 28? Is the MOSI pin not required to...
  10. Thanks KurtE, so what about pin 28? Could I use...

    Thanks KurtE, so what about pin 28?
    Could I use that pin as TFT Mosi?
  11. Great, I also have a Audio shield which use Pin...

    Great, I also have a Audio shield which use Pin 11.
    Will the Audio shield conflict with the TFT?

    If so, I noticed that Pin 28 also is MOSI0. If I want to use all four Serials, a TFT and the Audio...
  12. Teensy 3.5 pin 7 (RX3) conflict with SDI on ILI9341

    I want to use pin 7 for RX3 but also use a TFT ILI9341.
    Pin 7 is supposed to connect to SDI on the TFT.
    The T4.1 uses pin 11 for SDI.
    Is it possible to have pin 11 act as SDI on T3.5?
  13. Can I use Serial3 on T3.5 with an audio shield?

    Hi, is it possible to use Serial3 on T3.5 with an audio shield?
    It's connected to "Data Storage (SPI) from Teensy to SD/MEM" according to the schematics.
    I don't plan on using the memory card slot...
  14. The best solution would as suggested be to...

    The best solution would as suggested be to desolder the cap or use another Serial, but I ended up cutting pin 15 going into the header on top of the T4.1.
    Thanks
    Johan
  15. Disable volume thumbwheel on Audio Adaptor Rev. D

    Hi, the audio adaptor on top of my T4.1 interferes with the RX of Serial3 (pin15).
    Serial3 reads random numbers with intermittent zeros.
    The audio adaptor is the culprit because if I remove it the...
  16. Replies
    14
    Views
    750

    Thanks Paul, FranK B and defragster for your...

    Thanks Paul, FranK B and defragster for your patience and help.

    I indeed posted pseudo code to illustrate my point, my sketches are about 5000 lines each so I did not know of a way to explain the...
  17. Replies
    14
    Views
    750

    I have four T3.5 modules sending and receiving...

    I have four T3.5 modules sending and receiving data between each other without any issues, on the right UARTs. This only happens when I try to send data between the T3.5s and a T4.1.
  18. Replies
    14
    Views
    750

    // this is the T3.5 #define Teensy_UART1 Serial5...

    // this is the T3.5
    #define Teensy_UART1 Serial5
    void setup(){
    }
    void loop(){
    for(int counter=0;counter<127;counter++){
    Teensy_UART1.write(counter);
    }
    }
  19. Replies
    14
    Views
    750

    UARTS get mixed up on Teensy 4.1

    Hi,

    I'm using the following UARTs on a Teensy 4.1:
    #define Teensy_UART1 Serial1
    #define Teensy_UART2 Serial8
    #define Teensy_UART3 Serial3
    #define Teensy_UART4 Serial7

    From another Teensy...
  20. Thanks to you guys for your patience in...

    Thanks to you guys for your patience in explaining this, I now get that I have to add the "arduino.h" to the .cpp-file of my sample as well as PROGMEM in order to put my samples into Flash memory.
  21. I have not included Arduino.h, I will try that,...

    I have not included Arduino.h, I will try that, thanks. However, I still cannot understand how 8Mbyte Flash is insufficient when the Flash in T3.5 was enough to load my samples?
  22. Unfortunately I get this message:...

    Unfortunately I get this message:
    C:\Users\johan\AppData\Local\Temp\arduino_build_903646\sketch\src\samples\bpb606bd04.cpp:6:1: error: 'PROGMEM' does not name a type
    PROGMEM const unsigned int...
  23. // Audio data converted from WAV file by...

    // Audio data converted from WAV file by wav2sketch

    #include "bpb606bd04.h"

    // Converted from bpb606bd04.wav, using 44100 Hz, u-law encoding
    const unsigned int bpb606bd04[10561] = {...
  24. The "not enough memory" issue disappears when I...

    The "not enough memory" issue disappears when I disable this code:



    // ACTIONS PERFORMED WHEN GATE 1 IS HIGH/LOW
    void actionsReadGate1(int state){
    switchGate(1,state);
    if(state){
    ...
  25. Replies
    7
    Views
    499

    Frank B, yes just discovered that Serial.print()...

    Frank B, yes just discovered that Serial.print() round things off. So I'll guess I can go back to using pow() then :-)
    Thanks
    Johan
  26. Replies
    7
    Views
    499

    pow() function alternative

    Hi, i have had trouble with the pow() function not having the precision I need (floats).
    I wrote a small library to replace the pow() but wonder about the for-loop, will that slow things down?
    ...
  27. Replies
    9
    Views
    486

    Hi, I posted some wrong code: This formula...

    Hi, I posted some wrong code:

    This formula blocks Serial1:
    pow(1.06,byteToReceiveFromSerial_high)-pow(1.06,byteToReceiveFromSerial_high);

    This formula lets data through:...
  28. Replies
    9
    Views
    486

    Defragster, when I activate the nonblocking...

    Defragster, when I activate the nonblocking formula the Serial monitor displays "Read successful", if I activate the blocking formula the Serial monitor gets blank. If I switch Serial1 to either...
  29. Replies
    9
    Views
    486

    El Supremo, I have modified my original formula...

    El Supremo, I have modified my original formula that calculates MIDI note to frequency. The formula in my code example is only to demonstrate that if a float is used instead of an Int the read of...
  30. Replies
    9
    Views
    486

    This formula blocks ONLY Serial 1

    Hi,
    I have a one Teensy sending out two byte to another Teensy.
    After hours and hours of troubleshooting my project I found that Serial1 on the receiving Teensy seems to be blocked by the formula...
  31. Replies
    6
    Views
    425

    Edit: please remove the last stepCount++

    Edit: please remove the last stepCount++
  32. Replies
    6
    Views
    425

    Hi Qcontiuum, I haven't compiled this since...

    Hi Qcontiuum,

    I haven't compiled this since I'm writing this in notepad, but maybe this could help?
    I think you should consider using arrays to slim down the code a little.



    unsigned int...
  33. Replies
    4
    Views
    297

    I'm having a LED light up (GATE IN) when a output...

    I'm having a LED light up (GATE IN) when a output (GATE OUT) connected to the input is set high (I'm making a modular synthesizer).
    I have four inputs (Pin 6/17/24/26) and four outputs (Pin...
  34. Replies
    4
    Views
    297

    I have a LED connected to the input and the LED...

    I have a LED connected to the input and the LED is lit even though there's no connection to it.
    /Johan
  35. Replies
    4
    Views
    297

    Audio Adaptor and T3.5 pin 6

    I'm trying to use pin 6 on T3.5 with an audio adaptor. I'm getting 2.5 volt even though I'm using the pin as an input. Is this because it is connected to a pullup-resistor on the Audio Adaptor? I'm...
  36. Replies
    4
    Views
    443

    That seems to be the case, thank you! /Johan

    That seems to be the case, thank you!
    /Johan
  37. Replies
    4
    Views
    443

    Thanks, unfortunately I can't find information...

    Thanks, unfortunately I can't find information regarding if these chips can tri-state or not.

    /johan
  38. Replies
    4
    Views
    443

    Multiple SPI-devices configuration

    Hi,
    I have a couple of question that I hope some of you may shed some light on:

    1. Would these four SPI devices (see below) generate some kind of conflict?

    2. The MCP4922 gives out a voltage...
  39. Replies
    0
    Views
    213

    How to convert SPI DAC into -+5V

    I'm running a MCP4728 via SPI from Teensy.
    The output from the DAC is 0-4.096V.
    Does anyone have a schematic that converts the 0-4.096V into -+5V?
    And is there a library for the MCP4728?
    Thanks...
  40. Replies
    14
    Views
    1,454

    These are my circuits so far, I would like some...

    These are my circuits so far, I would like some feedback please:

    5V gate input:
    18884

    5V gate output:
    18885

    0-8V Controlled Voltage Out
    18886
  41. Replies
    14
    Views
    1,454

    Thanks Neurofun, it seems that the more I...

    Thanks Neurofun, it seems that the more I research about this teensy/CV-thing the more complicated it gets...
    Before Paul mentioned it in his reply I was not aware that the analog inputs only...
  42. Replies
    14
    Views
    1,454

    RetroD, I simulated the second circuit you posted...

    RetroD, I simulated the second circuit you posted and it worked like a charm.

    Regarding Teensy->DAC->Opamp, I found a circuit from...
  43. Replies
    14
    Views
    1,454

    Thanks retroD, so VIN would be the CV-signal and...

    Thanks retroD,
    so VIN would be the CV-signal and AnalogInverted would go to an analog input on the teensy?
    The analog inputs have been very unstable when I have used potentiometers, would the...
  44. Replies
    14
    Views
    1,454

    Eurorack voltages to/from Teensy

    Hi, I want to interface with eurorack modules using a Teensy and I have some questions that some of you may be able to shed some light on.

    Since the digital pins are 5V tolerant I guess these...
  45. Replies
    0
    Views
    401

    Chameleon Modular Synthesizer

    Hi, I would just like to present my project. It's a modular synthesizer and I've made a short video clip with some FM noises:
    https://youtu.be/JIcUNfIICYw
    For details, see the description of the...
  46. Replies
    5
    Views
    629

    Thanks for your help guys, I finally got my own...

    Thanks for your help guys, I finally got my own DAHDSR library working so I'll stick to that for the moment.
  47. Replies
    5
    Views
    629

    Thanks, what is 128 samples of 16 bit integer...

    Thanks, what is 128 samples of 16 bit integer that it returns? I would like something that returns a value say 0.023 eg the level of the envelope between something like 0.000-1.000.

    I have written...
  48. Replies
    5
    Views
    629

    Getting values from objects

    Hi, is it possible to read the output of lets say an ADSR object from the audio library?
  49. Replies
    3
    Views
    511

    Hi, I just saw that a similar question to mine...

    Hi, I just saw that a similar question to mine was posted in the "Audio Project" forum. Thanks for the answer theremingenieur but I will consider my adapter dead.
    /Johan
  50. Replies
    3
    Views
    511

    Troubleshooting Audio Adapter

    Hi, I soldered on an audio adapter underneath a T3.5 (I have a similar setup working just fine so I know the pin alignment is correct). I don't get any sound when running the "play synth music"...
Results 1 to 50 of 88
Page 1 of 2 1 2