Video: Lesson P35 - Playing Digital Sound with WAV on the AY!

MSX & MSX2 including the V9990 GPU (V9K)
Post Reply
User avatar
akuyou
Posts: 380
Joined: Mon Apr 22, 2019 3:19 am
Contact:

Video: Lesson P35 - Playing Digital Sound with WAV on the AY!

Post by akuyou » Wed Apr 24, 2019 12:51 pm



http://www.chibiakumas.com/z80/platform4.php#LessonP35

We've looked before at normal sounds, but lets start to learn how we can convert WAV files so we can play them back on 8 bit machines for Speech and SFX!

Lets take a look!
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

John
Posts: 2
Joined: Tue Mar 24, 2020 1:18 am

Re: Video: Lesson P35 - Playing Digital Sound with WAV on the AY!

Post by John » Wed Mar 25, 2020 4:36 am

Hello,

I want to convert a MIDI file of a song, using Arkos Tracker 2, so it works with your MSX-1 hello world cartridge tutorial. Unfortunately It would take too much memory to convert a song, to decent quality, using Chibiwave. I watched your other video tutorial of using Arkos Tracker 1 but unfortunately that does not explain how to convert from MIDI. Can you make a video (preferred) or write instructions on how to take a song in MIDI (with two instruments e.g. 1.piano and 2.violin for the "voice") and use it with Arkos Tracker 2 to add music to your MSX-1 hello world cartridge tutorial?; for the song you can just use a public domain MIDI song and possibly change the voice instrument to violin. I tried to do the conversion, using Arkos Tracker 2, myself but was not able to do so. I guess that conversion process a song in MIDI, using Arkos Tracker 2, for adding music to an MSX-1 cartridge, can be simplified by a using a windows batch file. The advantage of using MIDI, for me or a composer, is I can compose a song in a music program like Finale Notepad and export it to MIDI. You can also use Finale Notepad to change instruments in a MIDI song, e.g. voice notes are played on a violin, this is easy to do.

User avatar
akuyou
Posts: 380
Joined: Mon Apr 22, 2019 3:19 am
Contact:

Re: Video: Lesson P35 - Playing Digital Sound with WAV on the AY!

Post by akuyou » Sun Mar 29, 2020 11:19 pm

It looks like ArkosTracker 2 can import from Midi Files:

http://www.julien-nevo.com/arkostracker/

Due to time constraints I've not looked at ArkosTracker 2 yet, so I'm afraid I do not have a tutorial on it at this time, but I don't suppose it's harder to implement in code than ArkosTracker 1
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

John
Posts: 2
Joined: Tue Mar 24, 2020 1:18 am

Re: Video: Lesson P35 - Playing Digital Sound with WAV on the AY!

Post by John » Mon Mar 30, 2020 3:59 am

I still can't I can figure out the Arkos Tracker 2 for use with MIDI.
So another way to do it would be I suggest that you do, or an interested reader,
is to modifiy you Chibisound so it can play, a lot of professional songs, in MIDI format-the way to do this will be as follows.
My song is in the scale of C Major on a piano . So you would need
to encode all the notes, which are C D E F G A B C, for the scale of C in Chibisound -this will be easy to do if you know where to find the frequency of each note (which I don't). After that you would need encode rest notes (i.e. silences) in Chibisound from Long down to Hemidemisemiquaver. Then you would
need to read the MIDI file, of the song in the scale of C major,
which contains the information about the rest notes and the piano
notes. You would need to do this for three channels and simulate
the 4th possible channel/voice channel by multiplexing.
You probably need to convert the MIDI to a binary file so it can
be "incuded" in the assembly code. This modification,of course,
will work for any song in C major and there are lots of such songs.

Post Reply

Return to “MSX & MSX2 Assembly Programming”