<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Patch on Android dont play even volume]]></title><description><![CDATA[<p>Hi there!<br />
I am working on a metronome for Android. When I run the patch in PureData-editor all works fine, sound is even. But when I run the patch thru libpd on phone the sound is not even, the volume is some periods a bit weaker than other, let say 3-4 beats the sound is strong and even, then the sound gets weaker for 3-4 beats.....and then it all repeats.</p>
<p>Any thoughts that could help is welcome.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 14:46:31 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/9896.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Mar 2016 16:50:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Patch on Android dont play even volume on Tue, 15 Mar 2016 16:50:46 GMT]]></title><description><![CDATA[<p>Hi there!<br />
I am working on a metronome for Android. When I run the patch in PureData-editor all works fine, sound is even. But when I run the patch thru libpd on phone the sound is not even, the volume is some periods a bit weaker than other, let say 3-4 beats the sound is strong and even, then the sound gets weaker for 3-4 beats.....and then it all repeats.</p>
<p>Any thoughts that could help is welcome.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Tue, 15 Mar 2016 16:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Wed, 16 Mar 2016 13:01:43 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/tompad">@TompaD</a> Maybe you should post your patch.  It could be a phase issue (only one speaker on a phone?) or.......?<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 16 Mar 2016 13:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Thu, 17 Mar 2016 15:52:00 GMT]]></title><description><![CDATA[<p>Ok here we go!</p>
<p>Any other comments on improvements is welcome also! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
<p><img src="/uploads/files/1458229890187-sk%C3%A4rmbild-fr%C3%A5n-2016-03-17-16-49-37.png" alt="Skärmbild från 2016-03-17 16:49:37.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/3</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Thu, 17 Mar 2016 15:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Fri, 18 Mar 2016 10:18:35 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/tompad">@TompaD</a> You could try using [tabplay~] instead of [tabread4~]....... as there is no reason not to do so in your patch, and it is less cpu hungry.  I cannot see anything wrong.  You could try sending to only one channel of [dac~] as maybe the Android does some strange summing of the audio channels.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 18 Mar 2016 10:18:35 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Sat, 19 Mar 2016 16:40:23 GMT]]></title><description><![CDATA[<p>Oooh, tabplay.....never used before, better look up the help in puredata editor.<br />
Everything making it less cpu hungry is a  good thing <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
<p>I will try to send only to one channel on dac, and see if it does a change.</p>
<p>Thanks for the suggestions!</p>
<p>Thomas</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/5</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Sat, 19 Mar 2016 16:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Sat, 19 Mar 2016 18:14:56 GMT]]></title><description><![CDATA[<p>Ok, I tried tabplay instead of tabread, no change, same behavior <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/frowning.png" title=":-(" alt=":-(" /><br />
Tried to have only one channel out to dac, no change, same behavior <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/frowning.png" title=":-(" alt=":-(" /></p>
<p>....dont know what to look for now. I think I try another phone/tablet.</p>
<p>Hmmm......another strange thing is that the sound is not loud, if I set the<br />
phone to 50% the phone signal is loud and clear, but my app is barely<br />
heard</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/6</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Sat, 19 Mar 2016 18:14:56 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Sat, 19 Mar 2016 18:49:07 GMT]]></title><description><![CDATA[<p>Same behavior with another unit....</p>
<p>However, I changed the wav files that was loaded in patch into mono instead of stereo and it seemed to make a change! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
<p>But, Im maybe getting crazy after listening on the sounds, I imagine I hear a straight attack on the sounds some time and another time there is a &quot;longer&quot; attack.</p>
<p>/Thomas</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/7</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Sat, 19 Mar 2016 18:49:07 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Sat, 19 Mar 2016 19:04:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/tompad">@TompaD</a> I understand &quot;getting crazy listening&quot;........... Our brains always do &quot;weird stuff&quot; with what goes into our ears.........<br />
Is your Android app something that you could post for testing by the community?....... or will it be a paid app?....... (and so you don't want to post it here?).......<br />
If you do want to post it you might get more feedback............<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/8</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 19 Mar 2016 19:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Sat, 19 Mar 2016 21:30:07 GMT]]></title><description><![CDATA[<p>Yes, maybe I will make it a paid app, but I realy need to get the sound<br />
good (and a lot of other things). Right now I building it for my self, I'm<br />
my own beta-tester <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/9</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Sat, 19 Mar 2016 21:30:07 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Sun, 20 Mar 2016 02:18:44 GMT]]></title><description><![CDATA[<p>I've never worked with mobile devices, so I don't know if it works the same, but I don't see anything in your patch to turn DSP on. Could this be the problem?</p>
<p>If not, my advice is to start deleting (in a new file) bits of the patch one by one and testing it, until you find the minimum configuration that displays the behaviour you're describing. Is it the table playback that is failing? Can you get a simple [osc~]--[dac~] configuration to generate sound? Once you've narrowed it down, maybe you can share your patch and then we'll be able to help.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/10</guid><dc:creator><![CDATA[LiamG]]></dc:creator><pubDate>Sun, 20 Mar 2016 02:18:44 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Sun, 20 Mar 2016 08:30:54 GMT]]></title><description><![CDATA[<p>Hi LiamG!</p>
<p>Thanks for your response. The patch IS working in PureData-editor<br />
and on my mobile thru libpd, However on my mobile I get some<br />
unwanted behavior of the sound (see earlier posts). Correct me if<br />
I am wrong, but if I get sound from patch/libpd the dsp must be<br />
turned on? Or?</p>
<p>/Thomas</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/11</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Sun, 20 Mar 2016 08:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Mon, 21 Mar 2016 09:02:05 GMT]]></title><description><![CDATA[<p>You can init the dsp from your third party code, or in your pd patch. It doesn't really matter.</p>
<p>Do you use mobmuplat, pd-party, scene-player or your own code to load and init the patch ? I think some of those init the dsp and some don't.</p>
<p>Anyhow you can always use in your patch to activate dsp.<br />
[loadbang]<br />
|<br />
[; pd dsp 1; (</p>
<p>Did you try normalizing your samples on import ? read -resize -normalize.</p>
<p>When on mobile I often use a soft clipping abstraction before the output, somehting like [tanh~] that you can probably find easily on this forum.</p>
<p>There is also an abstraction called [e_agc] in the rjlib : <a href="https://github.com/rjdj/rjlib/tree/master/rj" rel="nofollow">https://github.com/rjdj/rjlib/tree/master/rj</a><br />
it's an automatic gain control, it could help.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/12</guid><dc:creator><![CDATA[Berenger]]></dc:creator><pubDate>Mon, 21 Mar 2016 09:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Mon, 21 Mar 2016 14:22:52 GMT]]></title><description><![CDATA[<p>Hi Berenger!</p>
<p>I am using my &quot;own&quot; code...from Peter Brinkmanns book &quot;Making Musical Apps&quot;.</p>
<p>Hmmm intresting! -normalize have I not used yet. Will check it out.</p>
<p>Soft clipping abstraction - I am aware of soft clipping, but what is soft clipping abstraction??</p>
<p>tanh~ - is this part of &quot;standard&quot; puredata (not extended)?<br />
My editor couldnt find it.....</p>
<p>Very interesting input! Thank you Berenger!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/13</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Mon, 21 Mar 2016 14:22:52 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Mon, 21 Mar 2016 17:23:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/tompad">@TompaD</a> Bored and googling....... I had thought &quot;noise suppression&quot;....... unlikely, and &quot;echo cancellation&quot;....... very likely, but only available for audio acquisition on android.<br />
So the only thing left (I think) is &quot;duck&quot;...... but another app would have to be repeatedly demanding and relinquishing focus.  That is possible? I suppose so............<br />
Do you have AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK in your code?</p>
<p>Also, the samples do look quite low level, so as <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/berenger">@Berenger</a> said...using the -normalize switch with each &quot;read&quot; will help the volume by making the sample as loud as possible without distortion....<br />
ALSO...... maybe you should post your original question here........ <a href="http://stackoverflow.com/questions/tagged/libpd?sort=newest&amp;pagesize=30" rel="nofollow">http://stackoverflow.com/questions/tagged/libpd?sort=newest&amp;pagesize=30</a><br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/14</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Mon, 21 Mar 2016 17:23:25 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Mon, 21 Mar 2016 17:28:47 GMT]]></title><description><![CDATA[<p>for tanh~ it's not really extended but it's not an object of vanilla either <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
<p>you can do one with expr~ :  [expr~ tanh($v1)]</p>
<p>or you can use  table lookup : <a href="https://github.com/chr15m/blockhead/blob/master/e_tanh.pd" rel="nofollow">https://github.com/chr15m/blockhead/blob/master/e_tanh.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/15</guid><dc:creator><![CDATA[Berenger]]></dc:creator><pubDate>Mon, 21 Mar 2016 17:28:47 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Tue, 22 Mar 2016 14:14:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> Thanks for the tip's!</p>
<p>I am not using AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK, not what I know.<br />
Should I?  ....woav, found a lot info about it on Google, need to read, will be back.</p>
<p>The -normalize switch is set, but I dont know if it did any change, hard to tell.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/16</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Tue, 22 Mar 2016 14:14:12 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Tue, 22 Mar 2016 14:19:09 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/berenger">@Berenger</a> ?? Where can I find newbie information about tanh~??<br />
What does it do?<br />
I visited github link, but I am to green to understand that information.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/17</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/17</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Tue, 22 Mar 2016 14:19:09 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Tue, 22 Mar 2016 16:35:13 GMT]]></title><description><![CDATA[<p>If it's any help, [overdrive~] in the Cyclone library does (I think) the same thing as tanh~.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/18</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/18</guid><dc:creator><![CDATA[LiamG]]></dc:creator><pubDate>Tue, 22 Mar 2016 16:35:13 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Tue, 22 Mar 2016 18:00:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/tompad">@TompaD</a>, you should go there instead : <a href="https://github.com/chr15m/blockhead" rel="nofollow">https://github.com/chr15m/blockhead</a></p>
<p>click download as zip and checkout the help patch, it shows the effect of tanh~ at high volumes by drawing the signal in a table.</p>
<p>a soft clipper is like clip~ but with rounded 'edges' : with clip you cut clean everything that over 1 and below -1 (for instance) with a soft clipper when you reach those maximums softly with a little interpolation. It's like a limiter with a knee.</p>
<p>BTW did you try with headphones on and do you have the same issue with headphones ?</p>
<p>I aware that you don't do algorave music but this could be of interest to you too :<br />
<a href="https://mccormick.cx/news/entries/heuristic-for-algorave-mastering" rel="nofollow">https://mccormick.cx/news/entries/heuristic-for-algorave-mastering</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/19</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/19</guid><dc:creator><![CDATA[Berenger]]></dc:creator><pubDate>Tue, 22 Mar 2016 18:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to Patch on Android dont play even volume on Thu, 24 Mar 2016 15:59:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/berenger">@Berenger</a> said:</p>
<blockquote>
<p>a soft clipper is like clip~ but with rounded 'edges' : with clip you cut clean everything that over 1 and below -1 (for instance) with a soft clipper when you reach those maximums softly with a little interpolation. It's like a limiter with a knee.</p>
</blockquote>
<p>Aah now we are talking! Limiter I know! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
<blockquote>
<p>BTW did you try with headphones on and do you have the same issue with headphones ?</p>
</blockquote>
<p>I tried with headphones and I think it was not the same, so it is something with the output to the speaker....</p>
<p>I also made normalization on the wavs in my soundeditor and removed the -normalize in pd patch. Now the sound is a bit higher in volume, I dont need to put the output on phone more than ca 50% to hear it clear.....we are making progress! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/20</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9896/patch-on-android-dont-play-even-volume/20</guid><dc:creator><![CDATA[TompaD]]></dc:creator><pubDate>Thu, 24 Mar 2016 15:59:00 GMT</pubDate></item></channel></rss>