i did experiments with DMX at the beginning but being not a DMX expert at all, I was not very successful, especially I did not find tools that I liked. MIDI is a pretty simple protocol and the Teensy just happens to support it in built which makes it plug and play to use. The sequencer (Renoise) that I am showing just detects the Teensy during startup. I have a big todo list on that but as soon as I have a bit more I will post more videos…you only saw the beginning
I am using visual studio + TeensyDuino + VisualMicro - that is the only way for me. It has full intellisense support and compared to it, the Arduino “IDE” is just a bad joke. I did not have any issues with it and the teensy is fully supported by VisualMicro including all options. Also Debugging works (breakpoints, etc.)
@Stuart_Taylor you can set this up in 10 minutes. Just download the community edition of VS from Microsoft and get Visual Micro http://www.visualmicro.com/
Arduino IDE needs to be installed first and also Teensyduino if you use Teensy.
@Jack_Keeney Best would be if you would also use VS. It comes with a GitHub integration, and you can directly open the project from GitHub without thinking about anything. If you need to use Arduino, I have not tried that but you just need to include all the .h and .cpp files in your project. At some point it will make sense to put this stuff together as Arduino Library but I am not there yet…
I actually have question in the process of blending several layers over each other. I just coded a cylon effect (dot moving back and forth with beat8) … so all but one LEDs are alyways black. If I put this onto the bottom layer (which could just be some background color with not so high brightness) using blend, the black gets also blended in (as expected) and since I use the brightness of the top layer to adjust the blending percentage, the background is fully blacked out.
What I would need is some kind of transparent blend…where a black LED blended onto another one does not change anything and a white LED completely overwrites the background.
like:
CRGB(0,0,128) blended with CRGB(0,0,0) results in CRGB(0,0,128)
CRGB(0,0,128) blended with CRGB(0,128,0) results in CRGB(0,128,64)
CRGB(0,0,128) blended with CRGB(0,255,0) results in CRGB(0,255,0)
not sure if that makes sense but I am definetly not an expert on this.
What I do not whant is simply add and let it saturate at 255.
One would have to calculate the “transparency” of a color.
Hi, yes I think this is what I want. Now I just have to 1. understand it and 2. code it without using 1000 cycles for each pixels haha - good thing is I can use photoshop to get an idea how each mode would look like…thank you!
Very interesting will be good to have it setup as a library .
I have installed vs , teensyduino etc , but when I select an ino file it does not open the associated project files , I ve followed the setup instructions. But something may be still missing , any clue on how to properly setup , ? Thanks
I think its not supposed in a way that you can double click the ino files and then have the project/solution opened in VS. I always just open VS and select the project I want opened.
Let me explain myself better
I open vs from there the main ino file, and it just open that ino and not the rest of the files. , also the build option remains grayed ., I have tried many different things , no luck .
Anyway , I was on the process to use the particle library to make different effects on a linear LEDs stup , then I found your code and I’m trying to understand how to set it up in order to use more than one effect at the same time .
One way in this particular case would be to download everything from Github and then not open the .ino file but instead open the .sln file which you find here:
it SHOULD open the whole thing. I cannot try this out right now.
Another even better way is if you enable the Github plugin in VS, then you can open it directly from Github either through VS or when you are on the Github Site there is a new button to directly open in VS
Thank you Sebastian I will try it ,
Question if I use the code as part of other program , ( I have a teensy board , that takes care of my exacopter telemetry and also the led patterns )
And will not use the midi capabilities, which files should I include ? , or which one I could Take out of the code?
I am afraid I am still in a development state where this is not clearly seperated. I will work on that and make it useable completely without MIDI without manual work required. If you want to try it out now, you can still do that but you still need all the files. And then, edit the INO file and remove the usbMIDI calls in setup() (since your wont be able to build it as long as the teensy is not configured as MIDI in VIsual MIcro)
Remove also the while(usbMIDI.read()); call in the loop() function and replace it for example with “ChangeMe()” - the ChangeMe function is definde in the ino file as you can see below loop and it just adds some demo effects over the timespan of one minute. If you check the ChangeMe function you also see how you can setup the parameters of effects using a Parameterset* pointer and then setting all the values you want and finally enabling the channel. This way you could program a sequence and concurrent effects without ever using MIDI.
This all works, but I did not optimize the code yet in a way that it is easy to use for an end user with or without MIDI.