×

SomethingUnreal's video: Arduino MIDI Synth Demo Preview square noise download

@Arduino MIDI Synth Demo Preview (square + noise) [download]
Up to 15 notes at once on an Arduino using no timers! Well, the quality drops a lot as the number of playing notes increases, but still! This is a demo of a MIDI synth I'm developing for the Arduino. Its sound is currently very basic - it has no concept of different instruments, can only produce square waves and noise, and each MIDI channel can only be at one of 3 different volume levels. It has no fixed sample rate, and is always producing a new sample as quickly as possible, which is slower when more notes play at once (in practise, the sample rate ranges from about 20 KHz down to about 6 KHz). It supports pitch-bends, modulation, monophonic/polyphonic MIDI channel mode, and some percussive notes. It also recognises some sysex messages, including GM/GS/XG "reset" messages and GS/XG messages to set a MIDI channel's percussion mode. --- TO USE THE CODE YOURSELF (hardware info): --- If you want the Arduino to accept MIDI data from "real" MIDI hardware (through a MIDI socket), you'll need to build a circuit with an optocoupler and connect that to the Arduino's serial RX port, " UseRealMIDIPort False" to " UseRealMIDIPort True" (this affects the baud rate used). Due to laziness, while testing, I used a program called "Hairless MIDI-Serial Bridge" and the virtual MIDI cable driver "MIDI Yoke" to send MIDI data straight over the Arduino's USB serial connection, instead of building the proper circuit. The code controls one "port" on the Arduino (a group of 8 pins determined by the specific Arduino board model), which connects to an 8-bit DAC (a simple R-2R resistor ladder) to give an 8-bit audio output. I'm using port C on the Arduino Mega, because that neatly corresponds to digital pins 37 (LSB) to 30 (MSB), but it may work on other Arduino boards as long as there is a port where all 8 bits are mapped to digital pins, with minimal changes to the code. The output port (PORTAudio and DDRAudio) would need changing to one consisting of 8 usable pins, and the maximum number of playing notes at once (NumSoundChans) could either be reduced (will save CPU time and memory) or, in the case of the Arduino Due, increased. You can see useful links and download my code for the current version from my blog: http://robbi-985.homeip.net/blog/?p=1948 Alternative download link: https://files.catbox.moe/a2aszy.7z The MIDI is being played on MIDITester: https://openmidiproject.osdn.jp/MIDITester_en.html MIDI file being played: http://robbi-985.homeip.net/hosted_programs/update/arduino/ss/Cutie_panther.mid I did not make the MIDI, and I don't know who did. Please, people, at least credit yourself in the metadata ;_; EDIT: Lmao, thanks for thinking that " " is a hashtag, YouTube. You'll never be Twitter, so please stop trying.

423

85
SomethingUnreal
Subscribers
19.2K
Total Post
172
Total Views
1.5M
Avg. Views
30K
View Profile
This video was published on 2018-10-30 07:38:50 GMT by @SomethingUnreal on Youtube. SomethingUnreal has total 19.2K subscribers on Youtube and has a total of 172 video.This video has received 423 Likes which are lower than the average likes that SomethingUnreal gets . @SomethingUnreal receives an average views of 30K per video on Youtube.This video has received 85 comments which are lower than the average comments that SomethingUnreal gets . Overall the views for this video was lower than the average for the profile.SomethingUnreal #define #define #define" has been used frequently in this Post.

Other post by @SomethingUnreal