[Hardware Dev]How make FX sounds?

Somewhere to chat about MIDI music creation, sequencers and related hardware

Moderators: Mug UK, lotek_style, Moderator Team

stormer
Atarian
Atarian
Posts: 7
Joined: Thu Sep 07, 2017 7:22 pm

[Hardware Dev]How make FX sounds?

Postby stormer » Mon Sep 11, 2017 5:31 pm

Now, in my YM2149+Arduino project already play note with MIDI message.

But it's not enough make a nice chiptune song. I need more FX, like pitch bend, arp, vibrato...

I dont know whats data should send to YM2149's register. Anybody knows? :coffe:

siriushardware
Captain Atari
Captain Atari
Posts: 360
Joined: Thu Aug 21, 2014 7:55 pm
Location: UK

Re: [Hardware Dev]How make FX sounds?

Postby siriushardware » Sat Oct 07, 2017 7:19 am

The YM doesn't have native commands for doing that sort of thing, so your Arduino has to send sound modifications to the YM channel playing the sound while the sound is playing.

To add vibrato or pitch bend, your sketch will have to change the fine pitch of the YM channel playing the note in real time, sweeping it plus and minus from the note centre frequency.

To employ the common chiptune trick of using one channel to play a 'chord' by alternating quickly through the three notes of the chord, designate one MIDI channel for that purpose and, when your project receives a note-on 'C' message on that MIDI channel, have your program quickly cycle the YM channel through the three notes of C Major until the corresponding note-off message is received. That kind of thing.

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 4867
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: [Hardware Dev]How make FX sounds?

Postby simonsunnyboy » Sat Oct 07, 2017 9:33 am

Get a datasheet of the YM2149 and program its registers accordingly.
There are chip sound effect editors for the ST. Use one to configure your soundeffect and then read the YM register contents.

The real good chiptunes on the ST use timers to quickly change the YM register contents.
Try tracing the commands send to the YM for these.
Simon Sunnyboy/Paradize - http://paradize.atari.org/ - STOT: http://www.npoi.de/stot/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

Jabber: simonsunnyboy@atari-jabber.org

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2061
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: [Hardware Dev]How make FX sounds?

Postby charles » Mon Oct 09, 2017 9:04 pm

should this thread be moved to ym area?
the midi he talks about is on arduino
and he is using ym sounds??????
atari is my lifestyle,not a hobby.
HOLD ON ! ! !,
Im printing unreadable characters ...!

Rustynutt
Captain Atari
Captain Atari
Posts: 388
Joined: Wed Mar 21, 2012 7:38 am
Location: Oregon
Contact:

Re: [Hardware Dev]How make FX sounds?

Postby Rustynutt » Tue Oct 10, 2017 3:26 pm

Great thread start, it has a follower! Thanks!

User avatar
charles
10 GOTO 10
10 GOTO 10
Posts: 2061
Joined: Tue Aug 17, 2004 12:11 am
Location: ont. Canada
Contact:

Re: [Hardware Dev]How make FX sounds?

Postby charles » Tue Oct 10, 2017 11:58 pm

the gfa handbook
(gfa programmers reference guide volume1..george miller)
has a neat well documented function called "wave"
it posses basic application of the 3 channels...the waveforms and noise .....
im afraid other than that I cant help ...I deal mainily with midi on the Atari
atari is my lifestyle,not a hobby.
HOLD ON ! ! !,
Im printing unreadable characters ...!

User avatar
farvardin
Captain Atari
Captain Atari
Posts: 351
Joined: Fri Jan 01, 2010 5:50 pm
Location: France
Contact:

Re: [Hardware Dev]How make FX sounds?

Postby farvardin » Wed Oct 11, 2017 6:52 am

do you have some schematics and code for your arduino project? I'm doing something similar and I'd like to see how you handle midi. Thanks!


Return to “MIDI Software and Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest