Convert midi to SID

The place for musicians to share their knowledge and ideas about music and remixing, and to post WIP snippets and feedback. Also suggest tunes for remixing, here.
Junie
Newbie
Newbie
Posts: 1
Joined: 30/09/2016 - 7:57

Re: Convert midi to SID

Post by Junie »

wolvie75 wrote:I converted this semenax review here: Commando and R-Type
How did you do that?
Last edited by Junie on 15/02/2017 - 13:43, edited 2 times in total.
User avatar
Commie_User
Forum God
Forum God
Posts: 1486
Joined: 14/07/2009 - 23:34
Location: England
Contact:

Re: Convert midi to SID

Post by Commie_User »

I don't know if it's way too late for this but I was pointed in the direction of just the right answer here:

http://www.lemon64.com/forum/viewtopic. ... 213a91e904


I had a try and indeed got my SID from a MIDI piece. I had my try included in COMMODORE FREE, page 32: http://www.commodorefree.com/magazine/vol9/issue87.pdf
M3wP
Commodore Fan
Commodore Fan
Posts: 27
Joined: 01/04/2015 - 6:40

Re: Convert midi to SID

Post by M3wP »

Heyas!

I thought I'd let you all know that I'm working on a tool to allow you to convert and play MIDI files on a virtual SID on your PC.

I have created an XSID format and a suite of tools that allow you to play tunes without the CPU, CIA and VIC emulation. These tools are already on GitHub at https://github.com/M3wP/XSID. Unfortunately, they are currently only for Windows because I don't know how to make a wrapper for ReSID on Linux/Android/MacOSX/iOS. It would be an incredibly simple to task to make your own player for the format, though. Help in this area would be really appreciated.

Back to the point, I am working on a tool to convert MIDI files to this XSID format. So far, it is quite limited (only Format 0 MIDI files for example) but I must say that it does seem to already do a better job than the SIDWizard tool. I'm making it so that I can incorporate SID sounds into my music without buying VSTs etc and as a proof of concept.

I will release it soon on GitHub, once I have a few nice-ities implemented. I'll let you all know when that happens.

If there is enough interest, I don't see why it couldn't be expanded upon to convert to the SIDWizard format or some-such. Its been built to be extensible. Contact me if you want to participate. I'm writing the tools in Object Pascal with Delphi and Free Pascal since I love them.

Just also to mention, I'll probably eventually create a tool to do the opposite since I'm finding SID2MIDI quite limited but it is a much more difficult task, I believe.


Daniel.
M3wP
Commodore Fan
Commodore Fan
Posts: 27
Joined: 01/04/2015 - 6:40

Re: Convert midi to SID

Post by M3wP »

Heyas!

Okay... I have the first alpha-ish version of MIDIToSID up on GitHub at https://github.com/M3wP/XSID/tree/master/MIDIToSID.

Presently, it only supports Format 0 MIDI files and only produces XSID dumps for PAL XSIDs. You'll need to convert these dumps using DumpConvert (in https://github.com/M3wP/XSID/tree/master/SIDConvert). It also doesn't output any SID initialisation so you need to add the line "8 24 15" at the very least to the top of the dumps before you convert them. I know, that's pretty lame but I haven't gotten to the converter configuration as yet. (And yes, I just realised I have a spelling error in the source code).

I did the initial testing with the Comic Bakery MIDI given by SID2MIDI hence, the patches are set by default to match the Galway engine to a degree. I have noticed that the Pitch Wheel controller is not used correctly by SID2MIDI. I have done the research and I am using it correctly in my code. I am pretty unhappy with the SID2MIDI results. Pulse Width should be two controllers or an RPN (for lo and hi bits). Channel Pressure (as my guess) should be used to mimic the sustain value since SID2MIDI seems to not factor it into its patch detection.

MIDIToSID doesn't support playing multiple notes on a voice. It completely ignores multiple notes from a single channel and may get into a bind if multiple notes are played from channels mapped to the same voice. I intend on adding legato and "chord" modes for handling these things.

I have tested a couple of other MIDIs (from SID2MIDI) and the results are promising. I haven't as yet tried a general MIDI file because I'd have to find one that is appropriate (or implement the modes, above).

I haven't looked at the source code for the SIDWizard MIDI converter as yet. Since the MIDIToSID program is fairly extensible, I may add that converter in the future.

Anyway, that's enough for now.


Daniel.
User avatar
NecroPolo
Forum Loony
Forum Loony
Posts: 153
Joined: 15/10/2009 - 16:33
Contact:

Re: Convert midi to SID

Post by NecroPolo »

All I now is that SIDwizard's SWMconvert.exe ate alive any 3-channel horror (odd time signatures, 16 subtune sessions, whatever) that we threw into its mouth during beta testing. We pushed that really hard before the initial release. I've been using that since SIDwizard 1.0RC. There are some precautions to consider when preparing / exporting the MIDI data but once the data is okay the converter itself works fine.



Christopher
Newbie
Newbie
Posts: 1
Joined: 23/08/2019 - 10:05

Re: Convert midi to SID

Post by Christopher »

wolvie75 wrote: <span class="hotdate" style="color:#888;">09/08/2014 - 12:23</span> I converted: Commando crazy bulk Shark Tank Weight Loss Drink How To cut weight sizegenetics SARMs for Sale this sizegenetics review and R-Type
Hi How did you do that ??
Last edited by Christopher on 07/10/2021 - 8:32, edited 2 times in total.
Chris Abbott
Forum God
Forum God
Posts: 5307
Joined: 22/11/2002 - 12:21
Location: Dubai. No, not really.
Contact:

Re: Convert midi to SID

Post by Chris Abbott »

Ooh, nice.
Won't somebody PLEASE think of the children?
Post Reply