Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:10 10 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Generating MIDI data with a MM...

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9750
Posted: 04:41am 05 Jan 2018
Copy link to clipboard 
Print this post

Hi all.

I have an idea for a MIDI sound machine using a VLSI codec chip(VS1053B).

The spec is 8-bit WORDS, but 10-bit BYTES made up of a start-bit, followed by eight data bits, and finally a start/stop bit for framing. See the link above for even more technical information.

The 1053 can also play OGG/WAV/WMA/MP3/MP2 and just about anything else you can throw at it(including FLACC with external DAC), but I am most interested in it for it's MIDI synthesiser. Complete modules can be had on eBay for about US$5 a board from listings like this one.

The device talks to the host MCU using the SPI port, so my first thought was the standard MMBASIC SPI commands, but that does not support 10-bit SPI, only 8, 16 or 32. Next, I looked at the SPI Cfunction, and it DOES let you specify any number of bits per byte up to 64, so this is the one to use.

The 1053 gives you access to the following instruments and also a good selection of drum sounds, so a MM-based drum-machine might be coming(using other MM input pins for sensor pads).....







Do any of the technical boys and girls here see any OBVIOUS problem with this concept as it sits now? Perhaps other members have even better MIDI synth chips they know about? Please post if you do.

To be continued.....
Smoke makes things work. When the smoke gets out, it stops!
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 06:52am 05 Jan 2018
Copy link to clipboard 
Print this post

MIDI is serial at 31.25Kbps. It is 8 bits of data plus a start and stop bit. This is a very standard serial transmission as a specific bps rate. The hardware interface uses opto isolation to stop those dreaded ground loops in audio systems.

I worked with MIDI quite a bit back in its early days. I designed several high end controllers (back in the 8bit days) using multiple independent MIDI out ports when the Roland MPU-401 could only do 1 output per box. This was needed to try and reduce the latency of talking MIDI to several synths in a studio setup and keeping them within experienced muso's acceptable timing delays.

There are plenty of great synth chips out there.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9750
Posted: 06:56am 05 Jan 2018
Copy link to clipboard 
Print this post

Hi Azure.

So, MIDI is 8N1 kind of thing?

Do you have part numbers for the 'Great' synth chips?


Smoke makes things work. When the smoke gets out, it stops!
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 07:31am 05 Jan 2018
Copy link to clipboard 
Print this post

The chips and synths I worked with were quite some time back.

I think there is still some EMU chips available which is one chip that comes to mind, but they maybe a bit to complex.

Probably much simpler integrated chips available out there today.

If any others come to mind I will post. I was working in the higher end so the systems tended to be based on a MIDI chip but as part of a high end synth design.
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 03:31pm 05 Jan 2018
Copy link to clipboard 
Print this post

https://moderndevice.com/product/fluxamasynth-shield/

or

https://www.sparkfun.com/products/10587


work real well and add the ease of using
an Arduino shield (if wanted)
But you want to make your own board ?Edited by hitsware 2018-01-07
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 04:09pm 05 Jan 2018
Copy link to clipboard 
Print this post

Yamaha YM3812. :)

More info -> https://www.youtube.com/watch?v=QLJSdNYcdpk&t=542s
Microblocks. Build with logic.
 
hitsware
Guru

Joined: 23/11/2012
Location: United States
Posts: 535
Posted: 04:55pm 05 Jan 2018
Copy link to clipboard 
Print this post

and this

and this
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9750
Posted: 11:53pm 05 Jan 2018
Copy link to clipboard 
Print this post

Awesome! Thanks chums. I will check out all those links now.
Smoke makes things work. When the smoke gets out, it stops!
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 01:17am 06 Jan 2018
Copy link to clipboard 
Print this post

I don't think the YM3812 is a MIDI synth. These were used on arcade video game boards back in the day (another industry I worked in before working in the computer industry): Frogger, Scramble, Moon Patrol come to mind.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9750
Posted: 01:20am 06 Jan 2018
Copy link to clipboard 
Print this post

Yes, I have had a look at that chip, and it is not a MIDI synth, but a 9-channel sound generator chip. Would not work as a MIDI processor. Interesting chip for it's time though.
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025