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

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #15 on: 2010-Aug-27 »
... is just locking of some parameters ...

=

... is just locking of some parameters to "predefined values" ...
"Sugar makes the world go 'round. Caffeine makes it spin faster."

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: SFXR - pure GLBasic code
« Reply #16 on: 2010-Aug-27 »
Yes, the code is here:
Code: GLBasic [Select]
http://code.google.com/p/as3sfxr/source/browse/trunk/src/SfxrGenerator.as

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #17 on: 2010-Aug-27 »
Yes, the code is here:
Code: GLBasic [Select]
http://code.google.com/p/as3sfxr/source/browse/trunk/src/SfxrGenerator.as

Thanks  :good:
"Sugar makes the world go 'round. Caffeine makes it spin faster."

Offline Bursar

  • Mr. Drawsprite
  • **
  • Posts: 63
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #18 on: 2010-Aug-27 »
That's where I got the file format for opening the .sfs files. Worth having a browse through :)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3356
  • Integrated Brain
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #19 on: 2010-Sep-16 »
 :nw: :nw: :nw:

Hi, this is for me great, can make sounds un Glbasic, is a great leap forward.

That´s works fine on Windows CE, I goes to try on Wiz and iPhone.

Best Regards, and thanks again for this great advance.

PS: I think the forum will should any threads for annuncements of some what advertising about the new things on Glbasic, whitout comments, only for when intro in Glbasic web, you know what it´s happens new on Glabsic, just I find this for casuality.
 

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: SFXR - pure GLBasic code
« Reply #20 on: 2010-Nov-19 »
OK, updates:
Fixed a minor bug with the slider ranges for import/export.
Added the generator buttons.
Slightly better GUI - bigger buttons.
Fits a 800x480 screen -> anyone volunteers for Pandora?

The genious about SFXR is, that you can store the sound files for your game now in a simple string. I use that for SEUCK on the iPad. That way I have _one_ file for the whole project.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: SFXR - pure GLBasic code
« Reply #21 on: 2011-Jan-18 »
Watch this to want more SFXR in your projects:


Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1620
  • Particle Hawk
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #22 on: 2012-Jun-18 »
Where can i find the latest copy of this? top message?
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10682
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: SFXR - pure GLBasic code
« Reply #23 on: 2012-Jun-18 »
yes.

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1620
  • Particle Hawk
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #24 on: 2012-Jun-20 »
Quote
Hey HK

Love the program , finally got it to work when i added ddgui to the sources!

SFXR(data$, filename$)

Im sorry to bug you about this, but really ive been trying and trying to put this command all over in the program,
and i still cant get anything to save :()
Where do i put this command?

Ok im just answering myself  :S

filename$ needs to have ..a name, duurr

Thanks for the port of this, its pretty-dern-cool
« Last Edit: 2012-Jun-20 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Hatonastick

  • Dr. Type
  • ****
  • Posts: 474
  • Amstrad CPC 6128
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #25 on: 2012-Jul-01 »
Saving to and reading from an external file isn't going to suit me at all, and yet I really would like to use generated sound from SFXR in my game.  I really need to be able to write to and play from RAM...

"The genious about SFXR is, that you can store the sound files for your game now in a simple string. I use that for SEUCK on the iPad. That way I have _one_ file for the whole project."
This sounds interesting but still requires that the SXFR engine interprets the string and saves output to a WAVE file which is then read in and played using PLAYSOUND, right?

Ah well if I want it bad enough I guess I'll have to figure out how to do this myself (_if_ I can). :)
« Last Edit: 2012-Jul-01 by Hatonastick »
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #26 on: 2012-Oct-15 »
Here's my synth using the wrapper.

<a href="http://www.youtube.com/watch?v=kO47vES3XGg" target="_blank">http://www.youtube.com/watch?v=kO47vES3XGg</a>

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4174
    • View Profile
    • Portfolio
Re: SFXR - pure GLBasic code
« Reply #27 on: 2012-Oct-15 »
Hey amazing work Matchy! (and what a heavy british accent :P)

On the virtual keyboars, can there be more octaves then a single 1?
You said the basic tempo is set to 4x4 (16), can that be changed? Maybe someone wants to track a waltz :S

Really great stuff, love the simple interface! Congrats! :good:

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2586
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #28 on: 2012-Oct-15 »
Well done, it's already looking a lot of fun. How do you handle timing as there is no interupts in GLB?
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 Gary

  • Dr. Type
  • ****
  • Posts: 313
    • View Profile
Re: SFXR - pure GLBasic code
« Reply #29 on: 2012-Oct-16 »
Well done, it's already looking a lot of fun. How do you handle timing as there is no interupts in GLB?

You could set up a thread that runs in the background and reads the current timer at the start and at the end pauses for the amount of time left to make it a fixed time (i.e. if timer is at 1000 when you enter and once the thread has run its at 1005 and you want to run it every 100ms you pause for 95ms before running again).

I have used this in a program and it works very well