SFXR - pure GLBasic code

Previous topic - Next topic

ketil

Quote from: ketil 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."

Kitty Hello

Yes, the code is here:
Code (glbasic) Select
http://code.google.com/p/as3sfxr/source/browse/trunk/src/SfxrGenerator.as

ketil

Quote from: Kitty Hello 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."

Bursar

That's where I got the file format for opening the .sfs files. Worth having a browse through :)

mentalthink

 :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.

Kitty Hello

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.

Kitty Hello

Watch this to want more SFXR in your projects:
http://vimeo.com/15769163

Hemlos

Where can i find the latest copy of this? top message?
Bing ChatGpt is pretty smart :O

Kitty Hello


Hemlos

#24
QuoteHey 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
Bing ChatGpt is pretty smart :O

Hatonastick

#25
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). :)
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).

matchy

Here's my synth using the wrapper.



erico

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:

bigsofty

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)

Gary

Quote from: bigsofty 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?

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