Part 3: Action (hopefully)

General discussion for topics related to the FreeBASIC project or its community.
angros47
Posts: 2323
Joined: Jun 21, 2005 19:04

Re: Part 3: Action (hopefully)

Post by angros47 »

St_W wrote:Sounds reasonable, could you mention some examples for such features?
Oscillators: sine wave, triangle wave, pulse/square wave, sawtooth wave, wave with custom harmonics, white noise

Filters: low pass, high pass, notch, band pass

Modulators: AM, FM. Phase Modulation, Ring Modulation

ADSR envelope generator: applicable to wave amplitude, to filters, to modulators

Wave sync (a simple feature used on the SID audio chip... very easy to implement, and useful to produce several new waveforms

Ability to play the produced waveform, or to save it as a .WAV file.

With similar feature, would be possible to create almost any possible sound effect: several simple SFX generators use some of those algorithms.
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Part 3: Action (hopefully)

Post by badidea »

Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.ph ... =ExtLibTOC be used?
Imortis
Moderator
Posts: 1924
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: Part 3: Action (hopefully)

Post by Imortis »

badidea wrote:Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.ph ... =ExtLibTOC be used?
I think the idea would be to use things already available on most systems rather than require FB compiled EXEs to be buldled with extra dlls.
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Part 3: Action (hopefully)

Post by dodicat »

badidea wrote:Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.ph ... =ExtLibTOC be used?
I dowloaded fmod.dll
https://www.dllme.com/dll/download/9290/fmod.dll
It took 30 seconds.
The example code works perfectly.
I added some graphics in the loop
(example 2)
Perfect.
The .exe file is 124 kb.
Conclusion:
I got my sound sorted out in one minute.
badidea
Posts: 2591
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Part 3: Action (hopefully)

Post by badidea »

Awesome, I think the wiki needs more mentioning. In 10 years of freeBASIC coding now and then, I never looked much at the wiki, but there is a lot of useful stuff. It gets harder and harder to find things on the forum.
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

Re: Part 3: Action (hopefully)

Post by BasicCoder2 »

dodicat wrote:I got my sound sorted out in one minute.
Just did the same. It seems to work fine for me as well. In the past I never needed or at least bothered with using sound in any demo code. At the moment I am using the SDL library. Not sure how fmod compares with SDL_mixer.
Last edited by BasicCoder2 on Jan 03, 2018 3:58, edited 1 time in total.
Imortis
Moderator
Posts: 1924
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: Part 3: Action (hopefully)

Post by Imortis »

dodicat wrote:
badidea wrote:Can something in the section "Music/Sound, Audio/Video" on https://www.freebasic.net/wiki/wikka.ph ... =ExtLibTOC be used?
I dowloaded fmod.dll
https://www.dllme.com/dll/download/9290/fmod.dll
It took 30 seconds.
The example code works perfectly.
I added some graphics in the loop
(example 2)
Perfect.
The .exe file is 124 kb.
Conclusion:
I got my sound sorted out in one minute.
fmod is only free for non-commercial use. If you wish to sell your product, you need to buy a licence from fmod.
angros47
Posts: 2323
Joined: Jun 21, 2005 19:04

Re: Part 3: Action (hopefully)

Post by angros47 »

That's the reason why I suggest that a native FB sound library should not be like FMOD, FBSound and similar ones: there are already several of them. A native library should be more in line with the "All-Purpose" philosophy.
Imortis
Moderator
Posts: 1924
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: Part 3: Action (hopefully)

Post by Imortis »

Since the sound library is already in the planning process, I have started another thread to discuss using namespaces for the different parts of the language.

FreeBASIC Namespace Project
Post Reply