Wish: SetPitch / GetPitch()

Jim Brown

Active Member
Licensed User
Longtime User
I would like to see some method of changing the pitch in a sound sample
Any chance of something like:

B4X:
Dim m As MediaPlayer
..
m.Load(blah,blah)
currentpitch=m.GetPitch()
m.SetPitch currentpitch+40

Equally, is it possible to have a GetVolume() feature?

BTW is there a limit to the size of the file which can play?
Also, can multiple sounds play simultaneously without issue?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The underlying MediaPlayer doesn't support pitch settings and also it doesn't allow you to get the volume.

BTW is there a limit to the size of the file which can play?
Available memory (per process) is the only limit.
Also, can multiple sounds play simultaneously without issue?
You can use several MediaPlayer objects to play files simultaneously. I don't find any known limitations regarding simultaneous playback.
 

Jim Brown

Active Member
Licensed User
Longtime User
Thanks Erel for your quick responses
My idea was for a fun musical tool where touching various parts of the screen changes the pitch of the note
I guess this sort of thing would be better done via MIDI (JetPlayer?)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…