Author Topic: SFXR - pure GLBasic code  (Read 16226 times)

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2580
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #30 on: 2012-Oct-16 »
@Gary: That's quite an unusual approach Gary, one that has definitely got me thinking, thank you.  :booze:
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1618
  • Particle Hawk
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #31 on: 2012-Oct-16 »
Genious.  :nw:
I have a slew of sheet music ready for this.
I love music composition, i want a copy!

And as erico mentioned, is there an ability to use all the octaves?

Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #32 on: 2012-Oct-18 »
 8) =D :good:

http://www.glbasic.com/forum/index.php?topic=8515.msg71988#msg71988

Threading does the trick for timing but is not related to sfxr. Also it just creates short, fixed length wav file using just one sfxr command, then the wav is loaded back in realtime. Not really complex at all although directly driving the output would be better, like the real deal:  :rtfm:
http://www.drpetter.se/project_musagi.html

« Last Edit: 2012-Oct-18 by matchy »

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3354
  • Integrated Brain
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #33 on: 2012-Oct-18 »
It´s a very nice project... I think putting a more good looking UI, can be very nice... the trouble perhaps it´s in mobile devices, isn´t it?¿, I think when I try the port of gernnot, runs very Slowly for make the sounds in real time...

Nice nice!!!  :booze: :booze:

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2580
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #34 on: 2012-Oct-18 »
8) =D :good:

http://www.glbasic.com/forum/index.php?topic=8515.msg71988#msg71988

Threading does the trick for timing but is not related to sfxr. Also it just creates short, fixed length wav file using just one sfxr command, then the wav is loaded back in realtime. Not really complex at all although directly driving the output would be better, like the real deal:  :rtfm:
http://www.drpetter.se/project_musagi.html

Wow, Musagi looks great.

What we really need is OpenAL buffers for better creation of the waves in real time without push/pulling off of the HD for real time filtering etc.

This looks like it performs amazingly well though. BTW how many octaves does it support?
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3354
  • Integrated Brain
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #35 on: 2012-Oct-18 »
HI Bigsofty today I found this... perhaps it´s very easy make a port... of openAL...

I never touch BlitzBasic, but I think a lot of people in the forum knows how works...
http://tools.mirage-lab.com/

The Open Al it´s a free wrapper for BlitzBasic... I don´t know if comes whit the source code....  :blink: ,
perhaps it´s possible make something whit this for GLbasic?¿...

« Last Edit: 2012-Oct-18 by mentalthink »

MrTAToad

  • Guest
Re: SFXR - pure GLBasic code
« Reply #36 on: 2012-Oct-18 »
It could be but only for Windows (and possibly Mac)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3354
  • Integrated Brain
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #37 on: 2012-Oct-18 »
uhmmm!!! ok Sorry!!!

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2580
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #38 on: 2012-Oct-18 »
I think Gernot IIRC may be updating the SDL mixer to be used across all platforms, with buffer support. Even if it has no buffer support, when all the supported platforms are using the same API it's much easier to do this sort of thing via Inline.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Hark0

  • Prof. Inline
  • *****
  • Posts: 1020
  • Geek Developer
    • View Profile
    • LitioPixel - Desarrollo de videojuegos con GLBasic | Videogame development with GLBasic
Re: SFXR - pure GLBasic code
« Reply #39 on: 2013-Apr-24 »
Hi!

Any progress or method about SFXR data -> RAM?

I need to generate many sound chiptune style sounds at realtime very fast...

TIA!
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic