So, I am trying to do my senior project based around converting MIDI sample sets into electrical pulses through an Arduino Uno. I've seen several codes and videos and circuits on creating a MIDI input (such as creating a MIDI Controller much like the Launchpads and such), but I'd like to use MIDI as an output (ie. using a specified set of samples to directly trigger electrical pulses without having to install sound sensors, band filters, or any of those shenanigans). If I could get some assistance with this, it would be greatly appreciated, especially since my graduation kind of depends on this.
converting MIDI sample sets
What are MIDI sample sets?
Do you mean the sounds in sound generators? They are not MIDI and are not accessible.
but I'd like to use MIDI as an output
MIDI is a protocol you can not use it as an output.
Maybe you know what you mean but you are not doing a very good job at explaining it to others.
especially since my graduation kind of depends on this.
Then should this not be your own work?
MIDI sample sets the co-relate to a specific line of samples. For example, when you open up Ableton, you have a set of "tracks" each track has a set of samples connected to it depending on how you set it. For example, Track 1 might be your drum sets (kick, hi-hat, etc.) So when one of those are activated, an electrical impulse is set. Hence, using MIDI as an output.
As for it being my own work, I am not asking for you do do it for me. I am asking for guidance so that I may put it together and make at least a functioning mini prototype to present. I just need help designing the circuit and code so that I can do so.
. I am asking for guidance so that I may put it together and make at least a functioning mini prototype to present.
But I have no idea what you are trying to do. I have used MIDI a lot and what you say makes no sense.
MIDI sample sets the co-relate to a specific line of samples.
Lets be clear about this, MIDI is a protocol to talk between sound creators and sound actuators. The concept of a MIDI sample makes little sense.
You can have a MIDI controlled sampler but the samples are not available to the MIDI system itself. MIDI consists of messages like not on or note off. There are also other commands like controlling effects and volume.
Now what does this mean?
converting MIDI sample sets into electrical pulses
MIDI is a set of electrical pulses. What do you want to do with these pulses at the end of the day?
So, to use your words, if the MIDI Protocol is Note on/ Note off, then at the same time I want to make it Voltage On/ Voltage Off.
So if I were to use ableton, where I have the tracks, set the protocol to a designated track (ei. track 1) and I set sample 1 on track one to be connected to the voltage protocol, when sample 1=Note On Sample 1 will also= Voltage on.
So yeah, I'm not actually connecting it to a specific note in MIDI per say, but the voltage protocol would be controlled by the MIDI protocol. I hope this makes sense.
I hope this makes sense
Sorry still struggling.
if the MIDI Protocol is Note on/ Note off, then at the same time I want to make it Voltage On/ Voltage Off.
If you want MIDI messages to turn things on and off you can do this.
A project of mine is an example:-
http://www.thebox.myzen.co.uk/Hardware/Glockenspiel.html
That is almost exactly what I wanted to do, but is there a possible way to use motors rather than solenoids and have a consistent low, then when notes are used, increase the speed
for example, no notes being played= 10RPM (not an exact figure, just for example purposes)
then, when a note is played the RPM goes from 10 to 20, increasing the speed of the motor, rather than what you have where it turns it on when a note is played, and off when it ends?
This is actually really helpful, so thank you very much.
You are still failing to say what you want to happen. This is engineering not music, you have to be precise.
What do you want the notes to do? Any note will set one motor to a different speed?
If so just output a PWM value to one pin. The note will set the PWM value. This is done by the analogWrite function, then the pin has to be connected to a driver to give the motor the required current.
Note there is no precise way to specify the speed of a motor with PWM but it will control the speed over a range.
These pages might help you:-
http://www.thebox.myzen.co.uk/Tutorial/PWM.html