Doubt about modify sounds

Previous topic - Next topic

mentalthink

Hi I´ve a question because I don´t know own make in Glbasic.

I want make a sound sequencer but I don´t know how touch the sound internally, in example pitch, velocity, and more properties of the sounds.

A solution I think is just charge in memory the sounds, but I don´t want to do this.

Another question what library of audio uses Glbasic, Open Al.?¿

And another quetion. For make the pitch and this other FX sounds I can mix Glbasic whit Xcode?¿, but in this case in another platforms don´t works.

Thanks, for your time.
Kinds Regards,
Iván J.

Kitty Hello

You can't pitch sounds played with PLAYSOUND, yet. The problem is, that SDL_mixer does not support it. Writing my own x-platform sound engine is something I'd like to avoid.

You can however write a temporary WAV file and load that. I'll try to do that with the SEUCK program. That way I hope to be able to implement SFXR.

Hemlos

You can access the midi sequencer in a pc to adjust all those things...but youre limited to the standard midi instrument list.

These is a midi lib somewhere in the forums, but i think you will need to learn the midi format to understand it...moru wrote it.
Bing ChatGpt is pretty smart :O

Ian Price

SFXR as part of GLB? Excellent!
I came. I saw. I played.

Moru

My midilib is only for writing midi files, you can't play tones directly. I would like to be able to do that...

ketil

Quote from: Kitty Hello on 2010-Aug-25
You can't pitch sounds played with PLAYSOUND, yet. The problem is, that SDL_mixer does not support it. Writing my own x-platform sound engine is something I'd like to avoid.

You can however write a temporary WAV file and load that. I'll try to do that with the SEUCK program. That way I hope to be able to implement SFXR.

SDL_mixer ?

I am soon about to relase som stuff, but ... SDL as an foundation in GLBasic ?
Isn't SDL GPL Licensed ?
"Sugar makes the world go 'round. Caffeine makes it spin faster."


matchy

Perhaps there is a generic wav file creation/manipulation library that can to this?  :o

One other reason why I currently would like internal sound creation/storage so that there are no media files, just an exe with the creation or storage of data. For example, simply storing image and sound data as DATA text in the code and then writing it to the app user folder to be uses when needed. This could be the same issue for fonts where the font file should be able to be created in run-time.

Hatonastick

Does GLB allow creation of blocks of memory that you can peek and poke?  I don't remember.  I think I might be getting confused with another language I have which I used to use.
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).

Kitty Hello

Yes, I'll try to create some sort of MEM2SOUND function that can load sounds from a wave-array. Might need some time, though. iPhone bugfix is priority #1.
The shame is, I have no iPhone 3GS, nor does the iPad support multitasking. :/

ketil

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