AY to MIDI

On the creation of AY or Beeper music, including the packages used to do so.
Post Reply
User avatar
ZXDunny
Microbot
Posts: 114
Joined: Tue Nov 14, 2017 3:45 pm

AY to MIDI

Post by ZXDunny » Wed Dec 19, 2018 4:14 pm

Hi -

I'm after a MIDI version of the Trailblazer AY title tune. I did it previously by converting from AY to PSG, then PSG to MIDI but none of the tools I used way back when are available anymore AFAICS.

Anyone know of a quick and easy way to get an AY tune (I just tried mp3 to MIDI conversion online - YIKES, it does not do well) out of the game?
0 x

User avatar
Ast A. Moore
Manic Miner
Posts: 952
Joined: Mon Nov 13, 2017 3:16 pm

Re: AY to MIDI

Post by Ast A. Moore » Wed Dec 19, 2018 6:53 pm

Does this one work?

I just launched the game, and the tune doesn’t sound like it shouldn’t be too difficult to simply transcribe it by ear. How badly do you need it?
0 x
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.

User avatar
ZXDunny
Microbot
Posts: 114
Joined: Tue Nov 14, 2017 3:45 pm

Re: AY to MIDI

Post by ZXDunny » Wed Dec 19, 2018 8:17 pm

Ast A. Moore wrote:
Wed Dec 19, 2018 6:53 pm
Does this one work?

I just launched the game, and the tune doesn’t sound like it shouldn’t be too difficult to simply transcribe it by ear. How badly do you need it?
Not that badly :)

If we can get the tune in a format the vgm2midi would understand - I had an old AY player that could do it, but it no longer functions under windows 10. If we can get the AY tune into PSG format, we may have a chance; .vgm would be the file format needed. I don't know of any utilities or emulators that can create that file format on the fly.
0 x

hikoki
Manic Miner
Posts: 320
Joined: Thu Nov 16, 2017 10:54 am

Re: AY to MIDI

Post by hikoki » Wed Dec 19, 2018 8:33 pm

There are ay2wav converters and once you get the wav, you could try Magenta to get the transcription in Midi form
0 x

User avatar
Ast A. Moore
Manic Miner
Posts: 952
Joined: Mon Nov 13, 2017 3:16 pm

Re: AY to MIDI

Post by Ast A. Moore » Wed Dec 19, 2018 9:16 pm

ZXDunny wrote:
Wed Dec 19, 2018 8:17 pm
If we can get the AY tune into PSG format, we may have a chance; .vgm would be the file format needed. I don't know of any utilities or emulators that can create that file format on the fly.
Fuse can, but I haven’t tried it. Never mind that, though. I’ve transcribed the tune for you:

Trailblazer.mid

You might want to equalize the velocities and truncate the notes’ lengths. I played a few phrases on the keyboard and then added the rest of the notes using the mouse. Other than that, it sounds pretty faithful to the original to my ear.

;)
0 x
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.

User avatar
ZXDunny
Microbot
Posts: 114
Joined: Tue Nov 14, 2017 3:45 pm

Re: AY to MIDI

Post by ZXDunny » Wed Dec 19, 2018 11:29 pm

Thanks! That is so much better than the wav2mid online converter I tried... Had to quantise the note starts and lengths somewhat, but that's pretty much spot on :)

Now I can convert from MIDI to SpecBAS PLAY commands!
0 x

User avatar
Ast A. Moore
Manic Miner
Posts: 952
Joined: Mon Nov 13, 2017 3:16 pm

Re: AY to MIDI

Post by Ast A. Moore » Wed Dec 19, 2018 11:39 pm

Yeah, many polyphonic pitch recognizing algorithms are thrown off by square waves for some reason (too many odd harmonics, maybe?). So, with such simple tunes you’ll get much more accurate results transcribing them by ear.
0 x
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.

User avatar
ZXDunny
Microbot
Posts: 114
Joined: Tue Nov 14, 2017 3:45 pm

Re: AY to MIDI

Post by ZXDunny » Wed Dec 19, 2018 11:52 pm

Ast A. Moore wrote:
Wed Dec 19, 2018 11:39 pm
Yeah, many polyphonic pitch recognizing algorithms are thrown off by square waves for some reason (too many odd harmonics, maybe?). So, with such simple tunes you’ll get much more accurate results transcribing them by ear.
Yes, I write audio software professionally and have been working on just that problem.
0 x

Post Reply