Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Midi Music Volume Question..

Author
Message
David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 30th Dec 2013 02:51
Hi there,

In my current (first ever AppGameKit project) I manage to load and play .mid (Midi Music Files) but the SetMusicSystemVolume(vol) does not affect the sound level of the midi being played. The midi still plays if I set the vol to 0 (zero) and at full volume regardless of the value of the vol (0-100)

Does the Music Volume setting only affect/work on Mp3 music files?

Is there a way to control the sound level of a midi file?

Thanks for any help.

Cheers!

SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 31st Dec 2013 03:47
hey? are you the guy that made the qmidi studio icon? My memories fading...

interesting enough I had no idea agk can play midi files. Maybe your best bet is to record them to mp3's so you have volume control.

David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 1st Jan 2014 03:15
Hiya SMD, yeah I made the icon for your program, and if I recall, I sent some keyboard sprites that you could add to make entering music easier,.. never found out if you used those, but, qMidi Studio was still a great program.. I fooled around with it a bit, then got side tracked. Such is life.

Cheers!

.. and I'll look into converting the mid files to mp3's, not sure how, but I'll look into it. thanks for the reply.

SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 1st Jan 2014 18:25 Edited at: 1st Jan 2014 18:36
I have an app I wrote for windows that should do the trick.... also if your midi file loads correctly in the latest qmidi studio it will record to wav file from there.

then you can use my other app to convert it to mp3.

let me dig it up and post it for ya.

-dumps cd to wav
-wav to mp3
-mp3 to wav (by recording it back)
-wav to ogg vorbis
-ogg vorbis to wav (by recording it back)
-midi to wav (by recording it)
-wav recorder (general purpose)

edit: here is the recorder...

Attachments

Login to view attachments
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 1st Jan 2014 18:33
oh and the latest QmidiStudio (what I use for all my music)
http://www.smotion3d.com/forum/index.php?topic=3.0

David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 2nd Jan 2014 00:18
Thanks I'll see what I can do with these wonderful tools.

Cheers!

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Jan 2014 00:24
How did you load and play a midi file? If you just used the LoadMusic() command, does this mean it only works on Windows?

Using midi files on android/iOs would be enormously helpful for a project I have lined up.

David Gervais
Retired Moderator
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Montreal, Canada
Posted: 2nd Jan 2014 00:53 Edited at: 2nd Jan 2014 00:55
Hi =PRoF=,

Yes I just use the..



but no matter what number I put into the (vol) variable which can be 0 to 100, the volume on my Win 7 machine stays the same..

I just did a quick broadcast to my nexus and it does indeed play the midi song, and changing the value of (vol) seems to work on the nexus lol Go figure!

Cheers!

EDIT: attached is a midi file to try, it works for me on Nexus 7 2nd gen

Attachments

Login to view attachments
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Jan 2014 01:29
I can report the same results. It plays on my Windows 8 PC, but I am unable to change the volume. It plays on my Note 3 and the SetMusicSystemVolume() command seems to work ok.

I wonder if it also works on iOS then? I can't test that atm sadly.

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 22nd Jan 2014 14:04
Sorry for the double post, but it's been a few weeks since anyone else posted here I didn't want folks to miss an edit.

Although the midi music seems to play OK on my Galaxy Note 3, and my Galaxy Tab 2 7.0, It doesn't play at all on my Galaxy Y (Which is a much lower spec phone running Android 2.3)

JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 22nd Jan 2014 14:13
Depends if the system has Midi playback built in.

-- Jim - When is there going to be a release?

Login to post a reply

Server time is: 2024-11-25 03:03:33
Your offset time is: 2024-11-25 03:03:33