Skip to first unread message

olayak

unread,
Oct 12, 2014, 8:02:45 PM10/12/14
to mitappinv...@googlegroups.com
Hi,
Is there any way to increase the volume according to a logarithmic scale?  I need four volume levels, evenly spaced along a log scale.  It's been torturous trying to do it without a log scale.
Thanks

SteveJG

unread,
Oct 12, 2014, 9:41:16 PM10/12/14
to mitappinv...@googlegroups.com
Use a slider with  a maximum value of four.    Put an IF then block in the event handler of a when slider1.PositionChanged     thumbPosition

Something like:

If  thumbPosition = 1 then use this sound setting as the first logarithmitic value on your curve ... you input it as a integer value
else if thumbPosition = 2 then use that sound setting
else if thumbPosition = 3  then..
                                     4  then

Try some blocks

Does this work?

Regards,
Steve

SteveJG

unread,
Oct 13, 2014, 9:36:08 AM10/13/14
to
Kathy replied by email

I can't use a slider for my app, that doesn't work for this particular project, unfortunately.  

The integer values, as far as I can tell, are not on a log scale.  That's basically what I'm asking.  Does anyone know if they are, in fact, on a log scale?  (For example, Photoshop does brightness levels on a log scale.  Therefore, 10% brightness is not actually 10% more than pure black.  It's a perceived 10% more, not an actual 10% more).  

Does anyone know if the sound in AI2 is on a log scale or an actual scale?  If it's on an actual scale, is there a way to automatically switch it to a log scale or do I have to sit there and figure out the numbers and test them with a sound meter?  (not fun, for sure.  I already spent hours on this).

Thanks!


I advise If you need PRECISE volume changes to maintain several copies of the sound, one at each volume level.    Record the sound once to your PC, then use a program like Audacity   (    http://audacity.sourceforge.net/    )    to adjust the level appropriately.   To change the volume for the 'button', select another sound file ...you could do this easily using a ListPicker (to select the correct volume file) instead of a button.

However, this might be the conversion from the scalar sound range 0 to 100 on the Player control 

I'll send a copy of this to someone on the technical team who might know for sure.
Do you have to work to get an app built?   Of course.   Smile. :)
Regards,
Steve

olayak

unread,
Oct 30, 2014, 5:59:11 PM10/30/14
to mitappinv...@googlegroups.com
Hi,
Did anyone find out if the scalar sound range on the app player corresponds to the db levels here  http://www.phonesdevelopers.com/1813101/ ?
Thanks!
Message has been deleted

peter edwin

unread,
Oct 31, 2014, 9:08:32 AM10/31/14
to mitappinv...@googlegroups.com
any one please teel me how to read message in my app... i could send message but not read in app ???

olayak

unread,
Oct 31, 2014, 10:28:55 AM10/31/14
to mitappinv...@googlegroups.com
Peter, you wrote this in the wrong place.  This is a discussion about volume levels in app inventor.  You may want to start a new post in the general questions forum.
Reply all
Reply to author
Forward
0 new messages