Author Topic: [FXes and PRzim] MAking sound  (Read 12527 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [FXes and PRzim] MAking sound
« Reply #15 on: February 08, 2012, 02:49:21 pm »
Given the Prizm and FX-9860G series got much faster CPUs than the 84+, I wonder if better sound than the 8 bit chiptunes from some 83+/84+ programs could be produced, such as Sega Genesis, Turbografx-16/PCEngine or PC88?



Now if only there was also a way to make volume higher...
« Last Edit: February 08, 2012, 02:53:07 pm by DJ_O »

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [FXes and PRzim] MAking sound
« Reply #16 on: February 08, 2012, 03:04:02 pm »
Genesis is 16-bit sampled music, sorry! :p
EDITED:
Yeah, I think there is Sample system like SNES: It uses PCm, and 2minutes loop of plain music would be a little big for a cartrige, no?
Okay, I'm tired, I seem to be trolling, but I don't want to be hurting...
« Last Edit: February 08, 2012, 03:13:49 pm by Eiyeron »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [FXes and PRzim] MAking sound
« Reply #17 on: February 08, 2012, 03:06:44 pm »
Uhm sorry? I thought Genesis music was generated by the z80 CPU in the console? I do not recall Sega Genesis music using MIDI-like format like on the SNES (songs made of plenty of instrument samples) and it's nowhere close to WAV format (else quality would probably be terrible due to the ridiculous compression needed anyway).

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [FXes and PRzim] MAking sound
« Reply #18 on: February 08, 2012, 03:15:39 pm »
I think I misunderstood myself:
1-I think that MD/genesis uses FM and sample system.
2- longs plain audio files would be a little big for a cart, wouldn't it?
3- Excuse-me for my rudeness, I'm not accostumed with a neutral community (was on forums with an atmosphere more "only with firends")
4- And I think that Prizm... Oh, nevermind, maybe someone will show us a little good project, with beautiful graphics and marvellous music... GO FOR IT!
« Last Edit: February 08, 2012, 03:22:23 pm by Eiyeron »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [FXes and PRzim] MAking sound
« Reply #19 on: February 08, 2012, 03:32:44 pm »
Well I just thought that if Sega Genesis music in every game used samples that the sound would be like in most SNES music rather than some chiptune-like bass and sounds. But again maybe they do. And yeah both consoles can't definitively support full actual songs, else they would take the entire cartridge even at extremely low compression.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: [FXes and PRzim] MAking sound
« Reply #20 on: February 09, 2012, 09:06:00 am »
Given the Prizm and FX-9860G series got much faster CPUs than the 84+, I wonder if better sound than the 8 bit chiptunes from some 83+/84+ programs could be produced, such as Sega Genesis, Turbografx-16/PCEngine or PC88?
What quality do you expect ?
The uart running 1 bit D/A mode (without any HW support) is very expensive.
Assume we want output 8bit samples on 22 KHz mono (the worst quality which may be acceptable).
So we have 8 bit samples => 256 different values, so to send 1 sample we have to transmit 255 bits (round up to 256 bits =>  32 bytes).
This means we need to prepare 704000 bytes each second and overclock uart to 7040000 bps (count 10 bits for byte because of start bit and stop bit). The uart has fifo of 64 bytes, so the interrupt should fire each (less than) 90 us.
This all seems to be OK, but the 9860 is simply not capable of doing this.
My player runs uart on ~ 1.8 Mbps well, I tried double speed when measuring, but simple loop like
Code: [Select]
volatile i;
...
while(i)  //timer will reset after 1 second
{
com_transmit(0);
count++;
}
was not able to push bytes quick enough.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [FXes and PRzim] MAking sound
« Reply #21 on: February 09, 2012, 09:23:48 am »
and register i?

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: [FXes and PRzim] MAking sound
« Reply #22 on: February 09, 2012, 10:05:41 am »
and register i?
The delay is in "com_transmit(0);" Communication with hardware is always much slower than memory access.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [FXes and PRzim] MAking sound
« Reply #23 on: February 09, 2012, 10:32:52 am »
Ah, nevermind! :p

Offline PierrotLL

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +2/-0
    • View Profile
Re: [FXes and PRzim] MAking sound
« Reply #24 on: February 13, 2012, 02:35:08 pm »
Just open the COM port on 9600 bps, no parity, 8 bits and output byte 0x55 in a loop.

Thanks :)

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [FXes and PRzim] MAking sound
« Reply #25 on: February 13, 2012, 02:53:25 pm »
Interessed, Pierrot? I think you could have enough experience to lead us, nah?

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: [FXes and PRzim] MAking sound
« Reply #26 on: February 17, 2012, 10:28:58 am »
Interessed, Pierrot? I think you could have enough experience to lead us, nah?

Hehe :-,



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [FXes and PRzim] MAking sound
« Reply #27 on: February 17, 2012, 10:32:16 am »
One of the best French programmers

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: [FXes and PRzim] MAking sound
« Reply #28 on: February 17, 2012, 10:41:37 am »
One of the best French programmers

I know! That's why I said 'hehe' :D Because he does have enough experience (look at gravity duck)



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: [FXes and PRzim] MAking sound
« Reply #29 on: February 17, 2012, 10:49:35 am »
I'm think too about KevKevVTT, he has too got good talent..