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

Search:

Type: Posts; User: sargentpilcher

Search: Search took 0.00 seconds.

  1. IT WORKS!! With both of your help I was able to...

    IT WORKS!! With both of your help I was able to properly scale it down from 14 bits (Using divide by 1,000), and I was able to get the code correct. I essentially took what you wrote but switched it...
  2. Oh man, this makes so much sense. I had just...

    Oh man, this makes so much sense. I had just assumed that the pitch bend was the same resolution as everything else (7-bit). I will try the scaling idea you mentioned and divide instead of multiply. ...
  3. How to access usbMIDI.PitchBend as a variable for a Function

    Hello all,

    I have a set of LED strips that I am using MIDI to trigger the lights to come off and on. I am for the most part very pleased with the setup and how everything works, but there is a...
  4. Thanks so much for the help! I'll try it out now...

    Thanks so much for the help! I'll try it out now

    Edit:

    I couldn't get it working. I can only theorize, and I am a noob, so I'm probably doing something wrong. I put it into the code like this ...
  5. Ok cool so a MIDI function for that does exist....

    Ok cool so a MIDI function for that does exist. How would I trigger it in a teensy? With a SysEx message?
  6. Is there a way to send a signal to "All" MIDI notes?

    I'm working on some code using the Teensy where I am using MIDI on and off messages to control the on and off of each RGB LED on some LED strips. I occasionally run into a problem where a light...
  7. Windows 10

    Windows 10
  8. I have nothing against Linux, but sadly none of...

    I have nothing against Linux, but sadly none of the software I want to run is compatible with Linux. Such as Ableton Live, and the VST's like Zynaptiq Morph, Antares Auto-Tune, and Izotope...
  9. I'm not describing it properly, but for example,...

    I'm not describing it properly, but for example, I have a "stress test" that I run a LOT of lights at once (Like a few hundred messages including R,G,and B data) all rapidly changing. It's running in...
  10. MIDI functionality on windows is MUCH worse than on OSX

    Hello all,

    This has nothing to do with a problem with teensy, but I was wondering if anybody had any insights regardless. I am making a project that will be running a lot of LED's being...
  11. Holy crap I got it #include...

    Holy crap I got it


    #include <Adafruit_DotStar.h>
    #define NUMPIXELS1 13 //Number of LED's in the Strip
    #define DATAPIN1 36 //Teensy pin sending Data
    #define CLOCKPIN1 35 //Teensy pin...
  12. Having trouble multiplying out my code for MIDI controlled LED lights

    Hey all, I have 2 code examples that I'm trying to work out. One, is the singular code that works perfectly on one LED strip. The other, is me trying to make the same code work across 2 strips...
  13. Replies
    6
    Views
    1,499

    Thank you so much for your help! That was a great...

    Thank you so much for your help! That was a great idea! I found the short! Now I'm running into other unrelated problems. I don't know if I damaged the board or what, but it's not working right. I...
  14. Replies
    6
    Views
    1,499

    Ok, I took my teensy out of my proto board (Man...

    Ok, I took my teensy out of my proto board (Man that was a pain desoldering everything.). It works outside of the proto board. I think I have a short somewhere.
  15. Replies
    6
    Views
    1,499

    I decided to try updating my teensyduino software...

    I decided to try updating my teensyduino software and the arduino software. I'm on windows 10, and now I'm getting a new error message that says

    "No Teensy boards were found on any USB ports of...
  16. Replies
    6
    Views
    1,499

    I don't THINK I did. I can't rule it out 100%,...

    I don't THINK I did. I can't rule it out 100%, but I all I remember checking were pins that were associated with my current project, like the pins I listed above (VIN is not used in my project)....
  17. Replies
    6
    Views
    1,499

    Did I just fry my teensy 3.6?

    I got the error "Teensy did not respond to a USB-based request to enter program mode." I've followed all the trouble shooting steps (USB cord, program button, etc.) when I got to reason #3: "Dead...
  18. Error compiling for board Teensy 3.6.

    EDIT: Problem solved. I didn't have the adafruit dotstar library installed. I thought it would have given me a different error message. I tried to delete this, but don't know how.

    Hello all,
    ...
  19. Holy shit Paul this thing runs like a fuckin'...

    Holy shit Paul this thing runs like a fuckin' CHAMP now!!! Your first idea was all it took. I copy pasted it in, and holy shit, no lag, instantaneous. THANK YOU!!!! Next step I'm buying 3 more strips...
  20. Awesome 3 things to try out! Thank you guys! I'm...

    Awesome 3 things to try out! Thank you guys! I'm gonna get started on researching and implementing these, but in the mean time I'm still open for more suggestions if anybody else chimes in. Thank you...
  21. Ambitious MIDI DotStar project runs poorly

    Hello all,

    I have a rather ambitious light project where I am trying to light up a strip of LED's using MIDI notes. I've spent the last 3 months learning electronics and code to culminate in a bit...
  22. Well I got it working! Fully functional across...

    Well I got it working! Fully functional across the entire strip. The sketch went from 7% of storage space and 2% of RAM down to 2% of storage space and 2% of RAM. 2,500 lines of code condensed into...
  23. I see, yes I will paste the full code and try to...

    I see, yes I will paste the full code and try to explain the situation better. I see what you mean about having three 1d arrays, vs the 2d. I didn't realize I would be running into such problems....
  24. USBMIDI "note" was not declared in this scope

    So I'm trying to make my code more efficient by cutting down some of the lines required. I've gotten a lot of help from people on this forum that I appreciate so much. Just for an idea of what I'm...
  25. Well I think the logic is solid, but I'm having...

    Well I think the logic is solid, but I'm having some difficulty implementing it. I keep getting things like "channel was not declared in this scope", "Note was not declared in this scope", ...
  26. Wow, did you just condense 2,500 lines of code...

    Wow, did you just condense 2,500 lines of code down to 4? hahaha that's crazy. It took me rereading it like 10 times piece by piece before I really got what you were doing (And googling the modulo...
  27. I definitely see the value in having presets...

    I definitely see the value in having presets already loaded into the Teensy memory, but it would require an extreme amount of precision to sync with a song the way I want to do. For example, I have a...
  28. Oddson thank you for all of your help and advice!...

    Oddson thank you for all of your help and advice! You are very knowledgeable with programming. I don't know if I will have the chance to implement many of the things you said as much of it goes over...
  29. Thank you so much! It works perfectly now! That...

    Thank you so much! It works perfectly now! That solved it! And thank you for the syntax lesson :) I don't know how long it would have taken me to figure out the && thing.
  30. How do I specify a channel for the USBMIDI protocol?

    So I have a meter strip of DotStar LED's at 144 LED's per meter, and I'm lighting them up with MIDI messages. The problem I am currently facing is that MIDI maxes out at 128 numerical values, yet in...
  31. Oh wow thank you! Those are excellent resources!...

    Oh wow thank you! Those are excellent resources! I will definitely be diving more deeply into that area once I wrinkle out some other things that are ahead of that in the chain. I originally asked...
  32. VERY cool! Exactly the kind of information I...

    VERY cool! Exactly the kind of information I needed! Thank you! I just need to learn how to customize libraries, or find somebody else who does. I didn't know that about the USB MIDI protocol. ...
  33. Oh wow! That's awesome, I wasn't expecting that....

    Oh wow! That's awesome, I wasn't expecting that. To be honest I'm not very familiar with the format and made a lot of assumptions about it's capabilities and may or may not be capable of what I want,...
  34. I'm trying to have it function with some music...

    I'm trying to have it function with some music software called ableton, so I need it to be MIDI, unless Teensy starts being compatible with some more modern MIDI alternatives like OSC or MPE then I'm...
  35. If I want more than 16 channels of MIDI do I need a second teensy?

    My project is going to be using MIDI to control hundreds of RGB lights, and the way I have it coded (Maybe there's a better way) is for one MIDI note to equal one value of RGB on an LED. So for...
  36. Thank you so much!

    Thank you so much!
  37. What are the color codes on the teensy card?

    The reason I ask, is because I bought a dotstar strip of LED's, and I had them plugged into ports 35, and 36 aiming for those because they are PWM. So I loaded up some basic code, and it all worked...
  38. What if I wanted to have multiples of it? So for...

    What if I wanted to have multiples of it? So for example, I tried

    void OnNoteOn(byte channel, byte note, byte velocity)
    {
    if (note == 60)
    {
    digitalWrite(redPin1, HIGH);
    {
    if (note...
  39. Thank you so much!! Exactly what I needed!

    Thank you so much!! Exactly what I needed!
  40. Not sure what variables to replace for usb.MIDI void OnNoteOn(byte channel, etc.

    Please forgive me here if I'm asking a question that seems dumb. I'm really trying here to wrap my head around this coding thing, and I'm slowly but surely getting it.

    So I found some perfect...
  41. Thank you guys for the help and the info! I'm...

    Thank you guys for the help and the info! I'm still a noob with all this stuff, and have only been at it for a couple weeks, so I'm still making asses from elbows, but I'm learning a ton! I finally...
  42. Everything compiles, but it doesn't do at all...

    Everything compiles, but it doesn't do at all what I want it to do :/

    Any suggestions?

    I just want the light to blink when it detects a midi message. Then I plan on adding on from there with a...
  43. I found a possible solution. I found on a forum...

    I found a possible solution. I found on a forum somebody said to put this at the beginning of the code and it verified.

    MIDI_CREATE_DEFAULT_INSTANCE();
  44. Oh awesome, thank you guys, so the functionality...

    Oh awesome, thank you guys, so the functionality is built in.

    Unfortunately I'm not terribly experienced with writing code. The code that I have pasted is essentially a mosaic of 3 different...
  45. Teensy 3.6 "MIDIUSB can only be used on an USB MCU"

    Hello everybody! First time posting here. So, I'm trying to do something very barebones to start, and then I plan on expanding it out. Right now all I'm trying to do is get the onboard LED to light...
Results 1 to 45 of 45