<?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[2 Wavebuffer mischen]]></title><description><![CDATA[<p>Servus zusammen,</p>
<p>Ich erzeuge in meinem Programm 2 Wavebuffer. Also quasi 2 vollständige Wave-Dateien im Speicher.<br />
Nun möchte ich beide Mischen.<br />
Jedoch kenne ich den Algo dafür nicht.<br />
Auch nach intensiver Suche im Google wurde ich dahingehend nicht schlauer.</p>
<p>Fertige Libraries möchte ich keine nutzen.</p>
<p>Ich extrem dankbar für jede Hilfe und jeden Tip.</p>
<p>MfG</p>
<p>Hroudtwolf</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182382/2-wavebuffer-mischen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 01:58:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182382.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 May 2007 13:43:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Thu, 24 May 2007 13:43:38 GMT]]></title><description><![CDATA[<p>Servus zusammen,</p>
<p>Ich erzeuge in meinem Programm 2 Wavebuffer. Also quasi 2 vollständige Wave-Dateien im Speicher.<br />
Nun möchte ich beide Mischen.<br />
Jedoch kenne ich den Algo dafür nicht.<br />
Auch nach intensiver Suche im Google wurde ich dahingehend nicht schlauer.</p>
<p>Fertige Libraries möchte ich keine nutzen.</p>
<p>Ich extrem dankbar für jede Hilfe und jeden Tip.</p>
<p>MfG</p>
<p>Hroudtwolf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291426</guid><dc:creator><![CDATA[Hroudtwolf]]></dc:creator><pubDate>Thu, 24 May 2007 13:43:38 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Thu, 24 May 2007 14:58:45 GMT]]></title><description><![CDATA[<p>Ja, das ist ne Wissenschaft für sich.<br />
Das Lautstärkeempfinden ist beim Menschen nicht linear sondern logaritmisch.</p>
<p>Quick&amp;Dirty kann man</p>
<pre><code class="language-cpp">(sndBuf1[i]+sndBuf2[i])/2
</code></pre>
<p>nehmen und probehören.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291470</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 24 May 2007 14:58:45 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Thu, 24 May 2007 15:19:45 GMT]]></title><description><![CDATA[<p>Hroudtwolf schrieb:</p>
<blockquote>
<p>Jedoch kenne ich den Algo dafür nicht.<br />
Auch nach intensiver Suche im Google wurde ich dahingehend nicht schlauer.</p>
</blockquote>
<p><a href="http://www.kebby.org/articles/fr08snd4.html" rel="nofollow">http://www.kebby.org/articles/fr08snd4.html</a></p>
<p>SeppSchrot schrieb:</p>
<blockquote>
<p>Quick&amp;Dirty kann man</p>
<pre><code class="language-cpp">(sndBuf1[i]+sndBuf2[i])/2
</code></pre>
<p>nehmen und probehören.</p>
</blockquote>
<p>dazu ein schoener kommentar von KB</p>
<blockquote>
<p>WHEN MIXING THINGS, DON’T (!!!) DECREASE THE VOLUME OF THE VOICES ACCORDING TO THEIR NUMBER, IT HAS NO SENSE AT ALL AND WILL SEVERELY F**K UP YOUR AUDIO SIGNAL!</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1291492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291492</guid><dc:creator><![CDATA[rapso]]></dc:creator><pubDate>Thu, 24 May 2007 15:19:45 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Thu, 24 May 2007 16:50:58 GMT]]></title><description><![CDATA[<p>Vielen Dank für die beiden Antworten.<br />
Derzeit kämpft mein schlechtes Englisch noch gegen den Inhalt des Links von rapso. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291564</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291564</guid><dc:creator><![CDATA[Hroudtwolf]]></dc:creator><pubDate>Thu, 24 May 2007 16:50:58 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Thu, 24 May 2007 18:26:09 GMT]]></title><description><![CDATA[<blockquote>
<blockquote>
<p>WHEN MIXING THINGS, DON’T (!!!) DECREASE THE VOLUME OF THE VOICES ACCORDING TO THEIR NUMBER, IT HAS NO SENSE AT ALL AND WILL SEVERELY F**K UP YOUR AUDIO SIGNAL!</p>
</blockquote>
</blockquote>
<p>Ja, schön, bloss muss man dann clippen, und das wird auch einiges &quot;up fucken&quot;.<br />
Wenigstens sollte man &quot;soft clipping&quot; machen, also gegen Ende des Wertebereichs etwas &quot;abflachen&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291648</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Thu, 24 May 2007 18:26:09 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Thu, 24 May 2007 19:28:13 GMT]]></title><description><![CDATA[<p>Wenn man nach deiner Methode einen komplett leeren Buffer (völlige Stille) über einen anderen mischt, dann wird der andere dadurch leiser. Das kann's ja auch nicht sein ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291725</guid><dc:creator><![CDATA[TomasRiker]]></dc:creator><pubDate>Thu, 24 May 2007 19:28:13 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Thu, 24 May 2007 20:55:52 GMT]]></title><description><![CDATA[<p>Hört sich eher an als möchte hustbaer einfach nen Limiter an den Master hängen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291827</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Thu, 24 May 2007 20:55:52 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Fri, 25 May 2007 02:06:18 GMT]]></title><description><![CDATA[<p>Äh. Ne. Nix Limiter und nix Compressor.<br />
Soft-Clipping, wie man das normalerweise mit ein paar Dioden macht, also in der Analog-Welt.<br />
Dadurch werden die hochfrequenten Oberwellen viel weniger wenns mal clippt aber sonst ändert sich kaum was.</p>
<p>Aber egal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291869</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 25 May 2007 02:06:18 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Fri, 25 May 2007 07:45:44 GMT]]></title><description><![CDATA[<p>Naja, der Algorithmus ist &quot;signal1 + signal2&quot;.</p>
<p>Das Leisermachen um grob 6dB (/2) ist mist</p>
<p>&quot;Soft Clipping&quot; fürt zu Verzerrungen, ob das problematisch ist, musst du hören. Ich denke eher nicht.</p>
<p>Ein Limiter ist natürlich cool, aber etwas aufwendiger zu implementieren. Ein ganz primitiver wäre aber eine Option.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291969</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291969</guid><dc:creator><![CDATA[Helium]]></dc:creator><pubDate>Fri, 25 May 2007 07:45:44 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Fri, 25 May 2007 12:57:21 GMT]]></title><description><![CDATA[<p>ich würds so probieren:</p>
<p>pow(sqrt(sounda.getNext()) + sqrt(soundb.getNExt()), 2);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1292228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1292228</guid><dc:creator><![CDATA[DocJunioR]]></dc:creator><pubDate>Fri, 25 May 2007 12:57:21 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Fri, 25 May 2007 13:20:51 GMT]]></title><description><![CDATA[<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
<p>Wie bereits gesagt: Korrekt ist sounda.getNext() + soundb.getNext()</p>
<p>Ich mein, ich bastel immerhin Audio-Plugins. So ein kleinwenig Ahnung habe ich da schon.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1292241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1292241</guid><dc:creator><![CDATA[Helium]]></dc:creator><pubDate>Fri, 25 May 2007 13:20:51 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Fri, 25 May 2007 16:01:48 GMT]]></title><description><![CDATA[<p>Helium schrieb:</p>
<blockquote>
<p>Naja, der Algorithmus ist &quot;signal1 + signal2&quot;.</p>
<p>Das Leisermachen um grob 6dB (/2) ist mist</p>
<p>&quot;Soft Clipping&quot; fürt zu Verzerrungen, ob das problematisch ist, musst du hören. Ich denke eher nicht.</p>
<p>Ein Limiter ist natürlich cool, aber etwas aufwendiger zu implementieren. Ein ganz primitiver wäre aber eine Option.</p>
</blockquote>
<p>Richtig, soft clipping führt zu Verzerrungen. D.h. es macht etwas früher Verzerrungen als ohne soft clipping, dafür weniger (bzw. weniger deutlich hörbare) wenns mal clippt.</p>
<p>Wenn man irgendeine Audio Applikation schreibt wo der User selbst beeinflussen kann wie laut z.B. die einzelnen Voices sind etc. ist sowas sicher nicht angebracht, wenn man aber z.B. 2 fertige WAV Files (z.B. von CD gerippt) mischen will würde ich schon zumindest einen einstellbaren GAIN und/oder soft clipping anbieten, da die meisten fertig gemischten Songs ziemlich wenig headroom haben. Peak ist sowieso (fast) immer auf 0dB, und Durchschnittlicher Pegel oft &gt; -10dB. Wenn man da nicht etwas leiser regelt fängt das viel zu schnell zu clippen an, und ohne soft clipping klingt das einfach bescheiden.</p>
<p>Kurz: ich denke es kommt sehr darauf an in was für einer Art von Programm man was genau mischen will.</p>
<p>Grundsätzlich ist es aber richtig dass man einfach nur addiert. Keine Wurzeln, keine Quadrate, keine Logarithmen, einfach &quot;c = a + b&quot; und fertig. Ob man c dann direkt ausgibt oder noch vorher etwas weiterbearbeitet ist dann wie gesagt wohl anwendungsabhängig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1292323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1292323</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 25 May 2007 16:01:48 GMT</pubDate></item><item><title><![CDATA[Reply to 2 Wavebuffer mischen on Sun, 27 May 2007 12:56:59 GMT]]></title><description><![CDATA[<p>Das mit der Addition klappte hervorragend.<br />
Nach dem Downmix lies ich den gemischten Buffer einfach nochmal normalisieren.<br />
Hatte bisher kein Geknacke oder Gekratze.</p>
<p>Alles wunderbar.</p>
<p>Vielen Dank nochmal an alle.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293078</guid><dc:creator><![CDATA[Hroudtwolf]]></dc:creator><pubDate>Sun, 27 May 2007 12:56:59 GMT</pubDate></item></channel></rss>