* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: SID + midi on Arduino and YM2149 emulator on atmega8  (Read 6018 times)

0 Members and 1 Guest are viewing this topic.

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18878
  • Post Rating Ratio: +99/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
I'M very late, but nice video @garvalf . Thanks for sharing. :)

Have you done any updates to this or new songs, by the way?
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline garvalf

  • Full User
  • Join Date: Oct 2015
  • Location:
  • Posts: 109
  • Post Rating Ratio: +1/-0
    • Garvalf's lair
  • Gender: Male
I've worked more on the AY shield, but I didn't manage to draw a correct PCB. I think I'll ask a friend for help, he can do this kind of thing. Then I'll start mass production (between 10 and 15 pieces  ;D ).

No new AY music, but I've made a few for the Megadrive / Genesis chips (FM and PSG). I like using this platform because it's easy to compose tunes with DefleMask, and the Everdrive MD makes it quick to replay from the Megadrive console (using a SD card). I'll post something in my music section.

  • Calculators owned: TI-83+ fr, TI-82

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18878
  • Post Rating Ratio: +99/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: SID + midi on Arduino and YM2149 emulator on atmega8
« Reply #17 on: February 05, 2017, 07:57:55 pm »
Mass production means you're gonna sell some of those, right? :3
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline p3n4

  • New User
  • Join Date: Feb 2017
  • Location:
  • Posts: 6
  • Post Rating Ratio: +0/-0
  • Gender: Female
Re: SID + midi on Arduino and YM2149 emulator on atmega8
« Reply #18 on: February 05, 2017, 11:21:01 pm »
That sounds like a nice Project :D

Offline Streetwalrus

  • Professional slacker
  • Super User
  • Original 5
  • Join Date: Nov 2014
  • Location: Israel
  • Posts: 2903
  • Post Rating Ratio: +20/-0
  • ƎW∀⅁ ƎH⊥
  • Gender: Male
Re: SID + midi on Arduino and YM2149 emulator on atmega8
« Reply #19 on: February 06, 2017, 07:30:12 am »
Oh wow, I must have missed this. I remember @Keoni29 made something similar and built it into his 84+ way back in 2012-13. That was a pretty good idea actually, since it frees the CPU to run an actual game together with audio.
Pretty much like old consoles did. Nowadays the DSP functions are integrated into the CPU itself with SIMD instructions, but that wasn't an option and even early 2000's consoles used a dedicated DSP for mixing and playback.
  • Calculators owned: TI-80, HP 40G, TI-84 Plus rev G (yay 128k RAM), TI-83 Plus Silver Edition (broken LCD), TI-82 Stats.fr (black), TI-Nspire CX rev C (yay Nlaunchy), TI-83+ SE ViewScreen



Offline garvalf

  • Full User
  • Join Date: Oct 2015
  • Location:
  • Posts: 109
  • Post Rating Ratio: +1/-0
    • Garvalf's lair
  • Gender: Male
Re: SID + midi on Arduino and YM2149 emulator on atmega8
« Reply #20 on: February 12, 2017, 11:14:12 pm »
Mass production means you're gonna sell some of those, right? :3

yes, of course I plan to sell this thing, either the PCB alone, or as a kit with all the parts.

Now for something completely different (but still related to Arduino):

Shiru from the 1-bit forum has released a port of his Octode 1-bit engine to the Arduino plateform. It was originally written in z80 ASM, and it was rewritten in C / Arduino code. It's not exactly the same, but still pretty good. Here is a quick recording I made (of a rather strange tune I must say):
http://garvalf.online.fr/index.php?page=blog_2017-02-12

It's very easy to set up, just upload  in the Arduino IDE the sketch in attachment from the first post there http://randomflux.info/1bit/viewtopic.php?pid=1147 , connect pin 7 and ground to a speaker, and you'll get 1-bit music!
  • Calculators owned: TI-83+ fr, TI-82

Offline garvalf

  • Full User
  • Join Date: Oct 2015
  • Location:
  • Posts: 109
  • Post Rating Ratio: +1/-0
    • Garvalf's lair
  • Gender: Male
well, it was long, but I managed to draw to PCB. My friend didn't do it for me, instead he helped me much with advices and corrections. I've used Fritzing, and now I understand better how it works.

The PCB is almost ready for production, I'll send it very soon. It will feature:

- AY-3-8910 emulator (on atmega8), driven by the arduino nano.
 - It can replay sinclair, atari, amstrad chiptunes from the sd card
 - it might be possible to use it as a (very simple and dirty) AY synth! The avray creator helped me for this, for sending simple notes, I just need to code the synth now, I'll reuse parts from the sid synth)

- Sid emulator (on arduino)
 - it can replay some sid files, from the arduino memory, which is limited (so tunes will be cut). I'd like to find a way to stream the tune from the sd card, it's probably possible
 - it can be used as a Sid synth (see previous messages)

- 1 bit music player (on arduino)
 - it can get music from the arduino memory. 1 bit music don't need much memory so this time a whole song, even a complex one, can fit in the memory. It might be possible to stream data from SD if the 1-bit music engine chosen is the same for all the songs.
 - it should be possible to create a 1-bit synth, but I don't know why. Probably not an easy task.

- Mozzy synth (see https://sensorium.github.io/Mozzi/ ), which can output fun FM sounds and many other effects.

There will be also room for adding light sensors and use the whole thing as a noise box...

I'll also post the PCB sources (if it works as expected)
  • Calculators owned: TI-83+ fr, TI-82

Offline garvalf

  • Full User
  • Join Date: Oct 2015
  • Location:
  • Posts: 109
  • Post Rating Ratio: +1/-0
    • Garvalf's lair
  • Gender: Male
I've ordered the PCB. I've made a little error on it which I noticed too late, but it shouldn't be a big problem and could be fixed. I hope there are not more :)

Some more sound examples:

- http://picosong.com/HUGM/ (Xenon / Spectrum)
- http://picosong.com/wseMn/ (Cauldron / Amstrad)
- https://soundcloud.com/memento-somniare/sidarduino-test (C64 SID synth)
- http://battleofthebits.org/arena/Entry/Underground+Water/26509/ (personal creation, for zx spectrum)

In addition this board has:

- a low pass filter
- arduino nano
- SD card reader
- Midi DIN-5 connector

I'll sell the PCB card alone (if it works as expected), for a cheap price like 3 or 4 € without shipping , and also some complete kits and assembled product (should be below 20 € without shipping)

The github project:
https://github.com/farvardin/garvuino

A picture of the PCB:


  • Calculators owned: TI-83+ fr, TI-82

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18878
  • Post Rating Ratio: +99/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Nice to see this is alive and well @garvalf . I will listen to to the songs you made and posted when I get some free time again.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline garvalf

  • Full User
  • Join Date: Oct 2015
  • Location:
  • Posts: 109
  • Post Rating Ratio: +1/-0
    • Garvalf's lair
  • Gender: Male
I've made a little video to present the board:

  • Calculators owned: TI-83+ fr, TI-82

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games