Jump to content

  • Log In with Google      Sign In   
  • Create Account


laserbeak43

Member Since 12 Apr 2005
Offline Last Active Sep 24 2012 12:16 AM
-----

Posts I've Made

In Topic: What programmers want from a designer

24 September 2012 - 12:17 AM

I'd just like people to show up. I've been involved in so many projects that just didnt happen cause everyone said they'd do it, but no one came to work.

In Topic: Anymore workshops coming up?

19 April 2010 - 04:50 AM

good point. I guess I could read up, I just feel more involved if I'm working on the same thing as everyone else :)

In Topic: Detecting Arrow Key Strokes in a console app

09 January 2010 - 08:36 PM

HAH!! Thank you so much :)
Yeah, 0x12 and 0x13 didn't work 0x48 and 0x50 did though. Not sure if i should clean this crappy hack up or experiment more. It looks terrible lol!!

In Topic: Emulating sound

04 January 2010 - 03:25 PM

i changed the "frames per buffer to 5 from 256" I don't know, i thought it would be the samples. The frequency of my triangle was significantly higher. I'm not even sure if it was still a triangle wave to be honest.

-edit-
oh a tuto from blargg? this is either going to be very helpful or very confusing :P

In Topic: Emulating sound

04 January 2010 - 12:07 PM

hello ben,
I've been looking at your code on and off, all day. It's pretty cool looking. but i can't fully understand your approach. I'd understand more if i had wrote it myself ( or if there were more comments hehe ).

But yeah, I'm trying to do some kind of routine in C, using the portAudio framework but i don't know where to start.
Quote:
A good sample rate to emulate it at is 44100Hz, as that's the internal frequency used by VGM files. For every sample of audio generated you need to run the emulated PSG for a few clock cycles ((3546895/16)/44100=5.03, so about five PSG clock cycle ticks per generated sample)

cool i was wondering how that worked for a while. couldn't figure it out. gonna try that now and see what my triangle sounds like(yeah i know, the SMS didn't have a triangle).
Quote:
then sample its output (you could take the mean of its output level for each emulated cycle for simple linear resampling, but simply taking the most recent output level and using that sounds good enough to start with).

hmm i haven't figured out all of that yet. so far im just using what portaudio offers and sticking an algorithm in that. can you tell me more? or point out an example of this in your code?

PARTNERS