Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:57 22 May 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 : CMM2 MIDI Player

Author Message
PilotPirx

Regular Member

Joined: 03/11/2020
Location: Germany
Posts: 98
Posted: 07:25pm 08 May 2025
Copy link to clipboard 
Print this post

I've finished my midiplayer so far. It plays MIDI files in file format 0 (one track). If there are several tracks in the MIDI-file (format 1), it plays them one after the other. I have included three MIDI examples with format 0.

If you have MIDI files in which the instruments are spread over several tracks, you can convert them to format 0 using tools (e.g. Anvil Studio - free of charge).

The program "PMFV10.bas" (PlayMidiFileV10) requires a MIDI synthesizer on COM2, e.g. the SAM2695.
The program is still under development. Improvements are welcome. I am not a software developer, so forgive me for the unprofessional programming.

Usage:
run "PMFV10.bas",yourmidifile.mid

Have fun!
CMM2_MIDIPlayerV10.zip
Edited 2025-05-09 05:28 by PilotPirx
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 940
Posted: 07:15am 09 May 2025
Copy link to clipboard 
Print this post

Hi PilotPirx,

that looks quite interesting - can you also connect a “normal” synthesizer to it?

Frank
 
PilotPirx

Regular Member

Joined: 03/11/2020
Location: Germany
Posts: 98
Posted: 07:25pm 09 May 2025
Copy link to clipboard 
Print this post

Hi Fran N. Furter,
this should be no problem. It's an normal serial MIDI output with 31250Baud.
You only need a Midi Interface, an arduino midi shield for example.
Example MIDI Out (5V):

 
Peter63
Regular Member

Joined: 28/07/2017
Location: Sweden
Posts: 47
Posted: 04:21am 10 May 2025
Copy link to clipboard 
Print this post

Hi, PilotPirx
I have thoughts about making a MIDI sequencer program for PicoMite. I quickly looked through the code you wrote, and it is not completely unprofessional (good job). I don't have a CMM2. Has anyone tested this on PicoMite MMBasic?

Peter
 
Peter63
Regular Member

Joined: 28/07/2017
Location: Sweden
Posts: 47
Posted: 06:36am 10 May 2025
Copy link to clipboard 
Print this post

Hi, PilotPirx
I tried the program on PicoMiteVGA MMBasic USB RP2040 Edition V6.00.02RC10, it worked with a slight modification from COM2 to COM1 MIDI port. I only tested the MIDI file "AxelF.mid", where channel 0 was a bit out of sync, probably due to two notes being played simultaneously on the same channel. Otherwise, it worked completely fine, great job again, I'm happy.

Peter
 
PilotPirx

Regular Member

Joined: 03/11/2020
Location: Germany
Posts: 98
Posted: 08:26pm 10 May 2025
Copy link to clipboard 
Print this post

Hi Peter63,

thanks for this information.
Since I have not used any CMM2 specific commands, it should run almost everywhere under MMBasic. I simply searched the Internet for information on the structure of Internet files and built the program according to this information (Mostly from an Atari ST doc). I haven't had much experience with Midi yet. I'm glad you like it.
Is the 63 in your name your year of birth? If so, I am also Peter63!!!
 
Peter63
Regular Member

Joined: 28/07/2017
Location: Sweden
Posts: 47
Posted: 01:53am 11 May 2025
Copy link to clipboard 
Print this post

Hi PilotPirx,
Yes, I was born in 1963. I bought the Roland MT-32 sound module when it was released, sometime in the 80s. I still have it. It was the one I tested the AxelF.mid file with. I am thinking about trying to program a MIDI editor for PicoMite (MMBasic), similar to Voyetra Sequencer Plus, which I really like.

/Peter63
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 940
Posted: 06:58am 12 May 2025
Copy link to clipboard 
Print this post

@PilotPirx:

Many thanks for the information! I have an old Six-Trak synthesizer - I don't even know if it still works...

https://www.amazona.de/vintage-analog-sequential-circuits-six-trak-synthesizer-1984/

It would be great to get him to play with it.

Frank
 
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