<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[JUCE Tips - Medium]]></title>
        <description><![CDATA[A place you don’t want to miss while learning JUCE and C++ - Medium]]></description>
        <link>https://medium.com/juce-tips?source=rss----c0643c3fd921---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>JUCE Tips - Medium</title>
            <link>https://medium.com/juce-tips?source=rss----c0643c3fd921---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 00:25:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/juce-tips" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[[261] 爆讚的 JUCE 教學影片]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/juce-tips/261-%E7%88%86%E8%AE%9A%E7%9A%84-juce-%E6%95%99%E5%AD%B8%E5%BD%B1%E7%89%87-944caa9a5d19?source=rss----c0643c3fd921---4"><img src="https://cdn-images-1.medium.com/max/2000/0*DMn-aBO9Nenl0izL" width="2000"></a></p><p class="medium-feed-snippet">&#x9019;&#x652F;&#x514D;&#x8CBB;&#x6559;&#x5B78;&#x5F71;&#x7247;&#x7684;&#x88FD;&#x4F5C;&#x6C34;&#x6E96;&#x9AD8;&#xFF0C;&#x5728;&#x6211;&#x770B;&#x904E;&#x7684; JUCE &#x5F71;&#x7247;&#x4E2D;&#xFF0C;&#x6392;&#x540D;&#x7B2C;&#x4E00;&#x3002;&#x4F5C;&#x8005;&#x7684;&#x7528;&#x5FC3;&#x5728;&#x8A31;&#x591A;&#x7D30;&#x7BC0;&#x8655;&#x8868;&#x9732;&#x7121;&#x907A;&#x3002;</p><p class="medium-feed-link"><a href="https://medium.com/juce-tips/261-%E7%88%86%E8%AE%9A%E7%9A%84-juce-%E6%95%99%E5%AD%B8%E5%BD%B1%E7%89%87-944caa9a5d19?source=rss----c0643c3fd921---4">Continue reading on JUCE Tips »</a></p></div>]]></description>
            <link>https://medium.com/juce-tips/261-%E7%88%86%E8%AE%9A%E7%9A%84-juce-%E6%95%99%E5%AD%B8%E5%BD%B1%E7%89%87-944caa9a5d19?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/944caa9a5d19</guid>
            <category><![CDATA[juce]]></category>
            <category><![CDATA[cplusplus]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 14:33:50 GMT</pubDate>
            <atom:updated>2022-04-11T14:33:58.848Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[[254] JUCE 2019 年使用者調查結果]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/juce-tips/254-juce-2019-%E5%B9%B4%E4%BD%BF%E7%94%A8%E8%80%85%E8%AA%BF%E6%9F%A5%E7%B5%90%E6%9E%9C-4616e4ec9191?source=rss----c0643c3fd921---4"><img src="https://cdn-images-1.medium.com/max/2600/0*yFE7K1ESiLRbBymi" width="4728"></a></p><p class="medium-feed-snippet">JUCE &#x5718;&#x968A;&#x5728; 2019 &#x5E74;&#x521D;&#x767C;&#x51FA;&#x4E00;&#x4EFD;&#x4F7F;&#x7528;&#x8005;&#x554F;&#x5377;&#xFF0C;&#x5B98;&#x65B9;&#x516C;&#x4F48;&#x4E86;&#x8ABF;&#x67E5;&#x7D50;&#x679C;&#x4EE5;&#x53CA;&#x5206;&#x6790;&#x3002;&#x672C;&#x6587;&#x8AAA;&#x660E;&#x8ABF;&#x67E5;&#x7D50;&#x679C;&#xFF0C;&#x4EE5;&#x53CA;&#x7531;&#x6211;&#x7684;&#x89D2;&#x5EA6;&#x4F86;&#x770B;&#x9019;&#x4EFD;&#x5831;&#x544A;&#x6240;&#x4EE3;&#x8868;&#x7684;&#x610F;&#x7FA9;&#x3002;</p><p class="medium-feed-link"><a href="https://medium.com/juce-tips/254-juce-2019-%E5%B9%B4%E4%BD%BF%E7%94%A8%E8%80%85%E8%AA%BF%E6%9F%A5%E7%B5%90%E6%9E%9C-4616e4ec9191?source=rss----c0643c3fd921---4">Continue reading on JUCE Tips »</a></p></div>]]></description>
            <link>https://medium.com/juce-tips/254-juce-2019-%E5%B9%B4%E4%BD%BF%E7%94%A8%E8%80%85%E8%AA%BF%E6%9F%A5%E7%B5%90%E6%9E%9C-4616e4ec9191?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/4616e4ec9191</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[juce]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Fri, 05 Apr 2019 05:33:02 GMT</pubDate>
            <atom:updated>2019-04-05T05:32:47.893Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[[253] 那一年，我與 JUCE 相遇]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/juce-tips/253-%E9%82%A3%E4%B8%80%E5%B9%B4-%E6%88%91%E8%88%87-juce-%E7%9B%B8%E9%81%87-f75b64ab4e84?source=rss----c0643c3fd921---4"><img src="https://cdn-images-1.medium.com/max/928/1*a7Kh8oAqSfZVpN1wlP9bcg.png" width="928"></a></p><p class="medium-feed-snippet">&#x516C;&#x53F8;&#x958B;&#x696D;&#x4EE5;&#x4F86;&#x6700;&#x5927;&#x7684;&#x8EDF;&#x9AD4;&#x958B;&#x767C;&#x6848;&#xFF0C;&#x5728;&#x8A55;&#x4F30;&#x4E0D;&#x5230;&#x5169;&#x500B;&#x79AE;&#x62DC;&#x5C31;&#x6C7A;&#x5B9A;&#x4EE5; JUCE &#x505A;&#x70BA;&#x4E3B;&#x8981;&#x958B;&#x767C;&#x5DE5;&#x5177;&#xFF0C;&#x9019;&#x98A8;&#x96AA;&#x4E0D;&#x4F4E;&#x5436;&#xFF08;&#x8001;&#x5927;&#x8AAA;&#x4ED6;&#x4E0D;&#x61C2;&#xFF0C;&#x7531;&#x6211;&#x5168;&#x6B0A;&#x6C7A;&#x5B9A;&#xFF09;&#x3002;&#x96E3;&#x9053;&#x662F;&#x6881;&#x975C;&#x8339;&#x7D66;&#x7684;&#x300C;&#x52C7;&#x6C23;&#x300D;&#xFF1F;</p><p class="medium-feed-link"><a href="https://medium.com/juce-tips/253-%E9%82%A3%E4%B8%80%E5%B9%B4-%E6%88%91%E8%88%87-juce-%E7%9B%B8%E9%81%87-f75b64ab4e84?source=rss----c0643c3fd921---4">Continue reading on JUCE Tips »</a></p></div>]]></description>
            <link>https://medium.com/juce-tips/253-%E9%82%A3%E4%B8%80%E5%B9%B4-%E6%88%91%E8%88%87-juce-%E7%9B%B8%E9%81%87-f75b64ab4e84?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/f75b64ab4e84</guid>
            <category><![CDATA[juce]]></category>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Sun, 31 Mar 2019 14:54:47 GMT</pubDate>
            <atom:updated>2019-03-31T14:56:45.240Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[[243] 《大機車報》2018.4Q 季報與贈書]]></title>
            <link>https://medium.com/juce-tips/243-%E5%A4%A7%E6%A9%9F%E8%BB%8A%E5%A0%B1-2018-4q-%E5%AD%A3%E5%A0%B1%E8%88%87%E8%B4%88%E6%9B%B8-76887a359c1f?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/76887a359c1f</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[c]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Sun, 06 Jan 2019 01:14:14 GMT</pubDate>
            <atom:updated>2019-02-04T09:36:24.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3NnTcnO0DsvI75tP" /><figcaption>Photo by <a href="https://unsplash.com/@rawpixel?utm_source=medium&amp;utm_medium=referral">rawpixel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><pre>Update: 贈書已由第二順位的讀者獲得。恭禧！</pre><p>去年四月，我訂了底下<a href="https://samtsai.org/2018/04/06/217-2018-1q-report-newsletter/">目標宣言</a>：</p><blockquote><em>目前的訂閱數 144 人，離 200 人還有一距離，但我相信一定能達成（年底的目標是「五百人斬」）。我決定在訂閱人數突破 200 時贈送電子書給《大機車報》的讀者。</em></blockquote><p>五百人斬沒有達成，但在 2018 結束前，藉由 <a href="https://twitter.com/jserv">jserv</a> 轉推，《大山姆的機機車車™》電子報訂閱數終於突破 200。謝謝「宅色夫」!</p><p>電子報第十六期在一月二日出刊，並依約在一月第一周完成抽獎，抽獎時間是一月三日（五），早上，抽出了幸運讀者。錄影如下（為保護隱私，電子郵件經特殊模糊處理）：</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FXq5DbRzg3jo%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DXq5DbRzg3jo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXq5DbRzg3jo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d45fed321a9c2ae25e4cc1856462441/href">https://medium.com/media/8d45fed321a9c2ae25e4cc1856462441/href</a></iframe><p>大機車報兩百訂戶抽獎活動</p><p>恭禧中獎的讀者，近日我會以電子郵件與讀者聯繫，詢問相關問題，沒問題的話，我會將購買的電子書寄出。</p><p>《大山姆的機機車車™》電子報點子雖已構思多年，但直到去年一月才開始執行，有點晚了。不過，晚到好過沒到，我會再接再厲，持續提供優質資訊給讀者。</p><p>電子報即將滿周年，回頭看，下半年漏掉五期，主因是低潮時缺乏有力動機，「懶惰鬼」上身以致沒有堅持下去。「不可以！」我告訴自己，一定要克服這個老問題。</p><p>堅持很難，但認真想一想，再次失敗的感覺更難受。想到有人因此受惠，感覺心暖暖。開年要訂目標，對自己要有期待。警剔自己，半途而廢真的不應該。只要堅持下去，必能苦盡甘來。</p><p>展望未來，我會持續以「兩周一期」的 Tempo 出刊。也希望大家告訴大家，踴躍訂閱，下次贈書目標訂在「五百人訂閱」，獎品屆時公佈。</p><p>最後，再次感謝電子報讀者，新年快樂！</p><p><em>Originally published at </em><a href="https://samtsai.org/2019/01/06/243-newspaper-2018-q4-stats-and-gift/"><em>samtsai.org</em></a><em> on January 5, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76887a359c1f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/juce-tips/243-%E5%A4%A7%E6%A9%9F%E8%BB%8A%E5%A0%B1-2018-4q-%E5%AD%A3%E5%A0%B1%E8%88%87%E8%B4%88%E6%9B%B8-76887a359c1f">[243] 《大機車報》2018.4Q 季報與贈書</a> was originally published in <a href="https://medium.com/juce-tips">JUCE Tips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[237] Tracktion Engine 原始碼開源了！]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/juce-tips/237-tracktion-engine-%E5%8E%9F%E5%A7%8B%E7%A2%BC%E9%96%8B%E6%BA%90%E4%BA%86-220b0d19d314?source=rss----c0643c3fd921---4"><img src="https://cdn-images-1.medium.com/max/2000/0*Fgryr8zPg_MI4BJp.jpg" width="2000"></a></p><p class="medium-feed-snippet">&#x5148;&#x524D;&#x4ECB;&#x7D39;&#x6642;&#xFF0C;&#x63D0;&#x5230; JUCE &#x662F;&#x4E00;&#x500B;&#x300C;&#x526F;&#x7522;&#x54C1;&#x300D;&#xFF0C;&#x662F;&#x8A2D;&#x8A08;&#x8005; Jules Storer &#x5341;&#x591A;&#x5E74;&#x524D;&#x70BA;&#x4E86;&#x958B;&#x767C; Tracktion&#xFF08;&#x73FE;&#x5728;&#x53EB;&#x300C;Waveform&#x300D;&#xFF09;&#x6642;&#x7684;&#x7522;&#x7269;&#x3002;Jules &#x66FE;&#x7D93;&#x8AAA;&#x904E;&#xFF0C;&#x4ED6;&#x81EA;&#x5DF1;&#x5B8C;&#x5168;&#x6C92;&#x9810;&#x6599;&#x5230;&#x9019;&#x6A23;&#x4E00;&#x500B;&#x526F;&#x7522;&#x54C1;&#x7ADF;&#x6703;&#x767C;&#x5C55;&#x6210;&#x5B8C;&#x6574;&#x7684;&#x8DE8;&#x5E73;&#x53F0;&#x61C9;&#x7528;&#x7A0B;&#x5F0F;&#x6846;&#x67B6;&#x3002;</p><p class="medium-feed-link"><a href="https://medium.com/juce-tips/237-tracktion-engine-%E5%8E%9F%E5%A7%8B%E7%A2%BC%E9%96%8B%E6%BA%90%E4%BA%86-220b0d19d314?source=rss----c0643c3fd921---4">Continue reading on JUCE Tips »</a></p></div>]]></description>
            <link>https://medium.com/juce-tips/237-tracktion-engine-%E5%8E%9F%E5%A7%8B%E7%A2%BC%E9%96%8B%E6%BA%90%E4%BA%86-220b0d19d314?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/220b0d19d314</guid>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[juce]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Sat, 17 Nov 2018 08:53:16 GMT</pubDate>
            <atom:updated>2018-12-02T15:14:05.285Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[[234] 新版本 JUCE 5.4 釋出]]></title>
            <link>https://medium.com/juce-tips/234-%E6%96%B0%E7%89%88%E6%9C%AC-juce-5-4-%E9%87%8B%E5%87%BA-3a222b3d3548?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/3a222b3d3548</guid>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[juce]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Thu, 08 Nov 2018 13:05:32 GMT</pubDate>
            <atom:updated>2018-11-08T13:15:02.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*BeZZypKn_oVVEj19BiMXng.png" /></figure><p>JUCE 最新版 <a href="https://juce.com/discover/stories/juce-5-4">5.4 今日釋出</a>，正式支援 macOS 10.14 Mojave and iOS 12。這個版本也支援 Windows hiDPI，還有 <a href="https://docs.microsoft.com/en-us/windows/desktop/hidpi/high-dpi-desktop-application-development-on-windows">per-monitor DPI-aware</a> 讓 JUCE 應用程式隨著螢幕的 DPI 動態調整其大小。</p><p>JUCE 5.4 也支援原生 <a href="https://juce.com/discover/stories/unity-native-plug-in-support">Unity </a>音訊外掛程式開發，而且整合到 Unity Editor 裡，讓你在 Unity 裡使用 JUCE 拿手的聲音處理模組。</p><p>另外支援 WinRT MIDI API，強化了 BLE MIDI 裝置效能。不過，由於 Windows 10 1809 之前的版本，其 WinRT MIDI API 存在一些問題，JUCE 在這些版本中預設將 WinRT MIDI API 功能關閉。可以使用 `JUCE_FORCE_WINRT_MIDI=1` 強制打開。</p><p>使用 WinRT API 在 Windows 平台上具有特別意義。目前為止，Microsoft 自己尚未有新的 GUI Framework for WinRT，如果 JUCE 夠積極，或許就在這方面扮演重要角色。</p><p>行動裝置方面，正式支援 <a href="https://github.com/google/oboe">Android OBOE</a>。並使用 Android/iOS 上原生的 API 來播放影片。</p><p>新增了 juce::ArgumentList class，在 ConsoleApplication 裡處理命令列參數更簡單了。（在此之前，我們使用自製的類別來處理）。</p><p>新增了 HeavyweightLeakedObjectDetector class 以及相應的 JUCE_HEAVYWEIGHT_LEAK_DETECTOR 巨集。JUCE 原本就有一個 LeakedObjectDetector 用來偵測記憶體洩漏（Memory Leaks），相較於該類別輕量，新的 HeavyweightLeakedObjectDetector 顧名思義用起來「負擔」較大，執行成本較高，因此，適合除錯時暫時使用，最好在臭蟲找到後就拿掉。</p><p>JUCE 這個記憶體洩漏偵測機制很管用，基本上我的每個類別都會加上 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR 或 JUCE_LEAK_DETECTOR 巨集。</p><p>JUCE 可以在官網<a href="https://shop.juce.com/get-juce">免費下載</a>，亦可在 GitHub <a href="https://github.com/WeAreROLI/JUCE">下載到原始碼</a>。</p><p><a href="http://eepurl.com/cZxlij">《大山姆的機機車車™》電子報</a></p><p><em>Originally published at </em><a href="https://samtsai.org/2018/11/08/234-juce-5-4-released/"><em>samtsai.org</em></a><em> on November 8, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a222b3d3548" width="1" height="1" alt=""><hr><p><a href="https://medium.com/juce-tips/234-%E6%96%B0%E7%89%88%E6%9C%AC-juce-5-4-%E9%87%8B%E5%87%BA-3a222b3d3548">[234] 新版本 JUCE 5.4 釋出</a> was originally published in <a href="https://medium.com/juce-tips">JUCE Tips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[231] 更多 JUCE 的五四三]]></title>
            <link>https://medium.com/juce-tips/231-%E6%9B%B4%E5%A4%9A-juce-%E7%9A%84%E4%BA%94%E5%9B%9B%E4%B8%89-f0e75d40deeb?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/f0e75d40deeb</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[juce]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Fri, 02 Nov 2018 23:09:42 GMT</pubDate>
            <atom:updated>2018-12-02T15:15:45.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_yGq_SJ4oivETyAN" /><figcaption>“asphalt road between trees” by <a href="https://unsplash.com/@foxxmd?utm_source=medium&amp;utm_medium=referral">Matt Duncan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://medium.com/@StarRocket">Star Rocket 三創育成</a>的 <a href="https://twitter.com/@titanypw">Titan</a> 透過推特跟我連繫，提到他正在寫一篇關於 <a href="https://medium.com/@StarRocket/roli-the-maker-of-seaboard-8f51fb5d1450">ROLI 以及 JUCE 的文章</a>，看到我有寫一些跟 <a href="http://juce.tips/">JUCE 有關的文章</a>，就他的提問發表了一些看法。</p><p>我接觸 JUCE 約莫四年，對 JUCE 有一些心得，但不敢說摸得透徹，僅就一些使用經驗以及對於 JUCE 這個專案、公司，以及創辦人的側面觀察提出我的心得。</p><p>拜讀了 Titan 剛發佈的文章 — 〈<a href="https://medium.com/@StarRocket/roli-the-maker-of-seaboard-8f51fb5d1450">ROLI：乘著黑色波浪而來的未來樂器</a>〉，寫得真好，對於 ROLI 這間公司還有別樹一格的新型態<a href="https://roli.com/products/seaboard/">「樂器」</a>，做了相當完整的報導。</p><p>說來慚愧，早在一年多前我就興起了推廣 JUCE 的念頭，後來還申請了 <a href="http://juce.tips/">juce.tips</a> 域名，建了 <a href="http://juce.tips/">JUCE Tips</a>。但一年多前為了做「那個專案」，逼我不得不使出 200% 的戰鬥力，沒日沒夜的趕工，終於順利交貨。</p><p>其間還在 JUCE 論壇上找了一位印度人，把幾個功能外包給他，完成度不低，但程式碼品質還有不少進步空間。</p><p>JUCE 使用 C++ 開發，多年前做技術評估時，一開始打算採用 Qt，但後來因為客戶需求改而尋找較為「輕量」的跨平台開發框架。我是在那個時候（2014）發現 JUCE 這個對當時的我來說，默默無名的開發框架。</p><p>我們除了幫電信商開發 Android 應用程式，還寫了一支在 Windows 10 觸控平板上運行的 Kiosk 主控程式。JUCE 本身就支援 Kiosk 類的應用程式，使得這方面寫起來相當省力。不過，因為這個專案要處理觸控螢幕的輸入事件，才發現 JUCE 這部分做的不是很完整。我在 JUCE Forum 上回報了幾個問題，很快獲得了修正。</p><p>客制化的使用介面是 JUCE 強項，看看那些 DAW 外掛，各式各樣的介面，玲瑯滿目，就知道 JUCE 在這方面表現優異。電競類軟體的介面講求「炫目」，這方面 JUCE 表現稱職。</p><p>底下是兩個 <a href="https://award.juce.com/award">JUCE Award</a> 上提名的作品：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*-pxfeIRiTDTTAgIg.png" /><figcaption><a href="https://polyversemusic.com/products/gatekeeper/">GateKeeper</a> from JUCE Award</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y2zKQDmFEBwTmGzs.png" /><figcaption><a href="https://www.audiodamage.com/collections/plugin-instruments/products/ad046-quanta">Quanta Granular Synth</a> from JUCE Award</figcaption></figure><p>C++ 以效能著稱，加上 Jules 對程式碼品質的高標準，使得 JUCE 專案的 Code Base 維持在很高水準。在我看過的開源專案中，她的品質屬一屬二。多數開源專案接受開發者貢獻程式碼，但 JUCE 專案不接受，Jules 給的理由是，多數別人貢獻的程式碼他幾乎要全部改寫才能符合 JUCE 的標準。</p><p>JUCE 家的 Coding Standards 公開在官網，C++ 開發者可參考一二：</p><ul><li><a href="https://juce.com/discover/stories/coding-standards">https://juce.com/discover/stories/coding-standards</a></li></ul><p>如<a href="https://medium.com/@StarRocket/roli-the-maker-of-seaboard-8f51fb5d1450">文章</a>所提，JUCE 在音樂軟體開發產業受到極大重視，我想這也是 ROLI 看上她的原因。不過，敝社把 JUCE 拿來「亂用」，開發的產品 99.9% 跟音樂軟體無關（只有一個胎死腹中的 Demo 專案跟音樂搭上線）。這些經驗讓我更肯定 JUCE 的潛力不僅音樂產業，需要讓更多人知道 JUCE 的能耐，讓這個好用的工具持續成長茁壯！</p><p>展望未來，我有幾個計劃：</p><p>翻譯官方的教學文章。JUCE 今年增加了許多<a href="https://juce.com/learn/tutorials">教學文章</a>，中文文能降低中文開發者的入手門檻，因此計劃先從較一般化的教學文章開始翻譯。不過，我還是強調，軟體開發者除了技術能力外，英文閱讀能力（當然說寫也很重要）一定要達到能夠看懂技術文件的程度。</p><p>產出原創文章，有入門，有進階，提供更多 JUCE 學習資源。去年公司開職缺，來了一位資深工程師，聊到我們使用 JUCE 為主力，他很認真的回去做了功課，得到「JUCE 學習資源異常匱乏」的結論。他說得是實話，與 Qt, wxWidgets 相比，JUCE 的參考資料真的太少了。</p><p>我也在規劃線上課程，主題放在 JUCE/C++ 跨平台應用程式開發。目前是想放到 Udemy 上，這會是付費課程，先出中文版，之後再推出英文版。</p><p>再來就是寫書了。《跨平台應用程式開發使用 JUCE / C++》，大概明年才有機會問世了。關於這本書的規劃，我會另寫一篇文章說明細節。</p><p>真心推薦 JUCE 這個開發框架，雖然參考資料不多，但官網上的教學文件漸漸豐富，而且是開源專案，有不懂得地方就下苦功鑽研原始碼，不用怕！</p><p>下回評估 C++ 開發框架時，不妨給自己一個機會，試試這個音樂界的「扛霸子」。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fsamtsai%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fsamtsai&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Flikecoin-foundation.appspot.com%2Flikecoin_store_user_samtsai_main%3FGoogleAccessId%3Dfirebase-adminsdk-eyzut%2540likecoin-foundation.iam.gserviceaccount.com%26Expires%3D2430432000%26Signature%3DVJUrhnurlYOf8nOgssay6tMMAEo5v1s9Qn9QmrOk9vk3aR4WAH3HGWbuRp6SqCPjjB6Jzw%252FNQNxofxzBuAPpI4LKrGeT8SqDHtJtjme4pmVFHuBF1WtpERy6d8clAPURvAejihiAu1vzSnJWQIs5dKBNyTOLRc14%252F6apV2O2emN9TvTssi6zEDJPsLHDRD3G5YFo21eDNh4oRi4x7b1iXMXpUqC4NrqwjUL8j%252B0%252FUB90dHEHMg4kpripdFq1RknYuAxHZZjfUzLwKQeVOaj%252BYgQXN34A1IObJkXNjgTuFtRa655i55n4StwHtkyAJ40xckjTUUO%252Fi57E1KsUkNMC4w%253D%253D&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9665cab2fee8a937eff81d0cd199323/href">https://medium.com/media/d9665cab2fee8a937eff81d0cd199323/href</a></iframe><pre>「👏」：覺得這篇文章有用，請隨意拍手。也歡迎留言提供建議，謝謝。</pre><p><a href="http://eepurl.com/cZxlij">《大山姆的機機車車™》電子報</a></p><p><em>Originally published at </em><a href="https://samtsai.org/2018/11/02/231-more-about-juce/"><em>samtsai.org</em></a><em> on November 1, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0e75d40deeb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/juce-tips/231-%E6%9B%B4%E5%A4%9A-juce-%E7%9A%84%E4%BA%94%E5%9B%9B%E4%B8%89-f0e75d40deeb">[231] 更多 JUCE 的五四三</a> was originally published in <a href="https://medium.com/juce-tips">JUCE Tips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[142] JUCE 5 以及新授權模式]]></title>
            <link>https://medium.com/juce-tips/142-juce-5-%E4%BB%A5%E5%8F%8A%E6%96%B0%E6%8E%88%E6%AC%8A%E6%A8%A1%E5%BC%8F-36ca7a960ae4?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/36ca7a960ae4</guid>
            <category><![CDATA[juce]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 16:28:50 GMT</pubDate>
            <atom:updated>2017-04-23T08:20:17.737Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="[142] JUCE 5 以及新授權模式" src="https://cdn-images-1.medium.com/max/601/0*v3tw4HkJ9JOy9RDj." /></figure><p>昨天收到 JUCE 5（目前的版本是 4.3.1） 即將於下月推出的通知信，同時公佈<a href="http://ift.tt/2oepeQ7">新的授權模式</a>。下表是第二個版本，JUCE team 在第一個版本發出後收到不少使用者回饋，並「順應民意」在 24 小時內做出了修改：</p><figure><img alt="[142] JUCE 5 以及新授權模式" src="https://cdn-images-1.medium.com/max/1024/0*WUN6ZnsRLcTlTdcX." /></figure><h4>JUCE Indie 變便宜但加上營收上限</h4><p>原本的 JUCE 4 授權分兩個層級：JUCE Indie , JUCE Pro。兩者的授權費用一模一樣（月繳 $49 鎂），但 JUCE Pro 可用來開發 Mobile app（Android/iOS）。新的授權把 JUCE Indie 的費用降至月繳 $35 鎂，或是一次付清 $700 鎂。先前的 JUCE Indie 沒有營收限制，新的授權則加上了 $200K 鎂營收或資本額天花板，超過需升級到月繳 $65 鎂的 JUCE Pro 授權。</p><p>新的授權方案讓 JUCE Indie 用家也可用 JUCE 來開發 Mobile app。這麼一縮一放、一放一縮，我覺得對付費使用者更友善了。當然，每間公司有各自的考量，有鑑於此，JUCE 家不會強迫已經付費的客戶改用新的授權，<strong>原用戶可持續依原授權付費，並享用 JUCE 5 帶來的新功能</strong>。</p><h4>JUCE Pro 雖然變貴，但有內含 Android / iOS 支援</h4><p>JUCE Pro 月繳費用由 $49 鎂增加到 $65。但原本開發 Android / iOS app 需要另外購買授權，各 $49 鎂，改由內含在 JUCE Pro 授權裡。</p><h4>AAX 外掛由不支援改成支援</h4><p>新授權模式剛公佈時，JUCE Indie 方案無法用來開發 AAX 外掛（舊方案可以），這點在 JUCE 論壇引起<a href="http://ift.tt/2oUYFhQ">廣泛討論</a>。JUCE Team 在一天內即接受顧客建議，將 AAX 加回 JUCE Indie 方案。</p><h4>增加兩個新的授權模式：Personal and Education</h4><p>JUCE 是<a href="http://ift.tt/1uMSepq">開源碼專案</a>，採用雙授權模式：GPL and Commercial。開源碼專案可用 JUCE 來開發跨平台軟體，完全免費。有些預算有限的單體軟體開發者希望利用 JUCE 寫軟體賺錢，每月 $35 鎂的 JUCE Indie，說多不多，說少也不算少（每月台幣 $1000 左右，一年約 $12000）。<strong>JUCE Personal 即針對這個客群所設計。多少錢呢？免費！</strong></p><p>JUCE Personal 很適合個人或小資本的公司，使用限制有二：</p><ol><li>年營收少於 $50K 鎂（台幣 $150 萬)</li><li>程式啟動時出現一個 Made with JUCE 的<strong>過場畫面</strong></li></ol><p>第二點的<strong>過場畫面</strong>引發一些<a href="http://ift.tt/2oeakJU">疑慮</a>，不過創辦人<a href="http://ift.tt/2oz16mG">表示各位多慮了</a>。付費用戶不受影響，GPL 開源用戶可以選擇關閉該<strong>過場畫面</strong>，只有免費而且不想（或不能）將源碼開源的專案，也就是 JUCE Personal and JUCE Education 授權方案才會出現該畫面。</p><h4>JUCE 5 的新功能</h4><blockquote>Huckleberry JUCE brings new development on mobile, user interfaces and Bluetooth LE. We’re also migrating to C++ 11/14, and of course keeping up to date with the various operating systems changes.</blockquote><p>除了開始採用 C++ 11/14 新功能外，似乎沒有立即更新的需求。</p><p>此文章同步登於 <a href="http://ift.tt/2oVi1TW">http://ift.tt/2oVi1TW</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36ca7a960ae4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/juce-tips/142-juce-5-%E4%BB%A5%E5%8F%8A%E6%96%B0%E6%8E%88%E6%AC%8A%E6%A8%A1%E5%BC%8F-36ca7a960ae4">[142] JUCE 5 以及新授權模式</a> was originally published in <a href="https://medium.com/juce-tips">JUCE Tips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[139] JUCE Diary #13：C++ namespace 的必要性]]></title>
            <link>https://medium.com/juce-tips/139-juce-diary-13%E5%91%BD%E5%90%8D%E7%A9%BA%E9%96%93namespace%E6%9C%89%E5%85%B6%E5%BF%85%E8%A6%81-11eb4833449b?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/11eb4833449b</guid>
            <category><![CDATA[cplusplus]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 16:28:24 GMT</pubDate>
            <atom:updated>2017-03-18T09:21:46.745Z</atom:updated>
            <content:encoded><![CDATA[<h4>前言</h4><figure><img alt="[139] JUCE Diary #13：命名空間（namespace）有其必要" src="https://cdn-images-1.medium.com/max/1024/0*Z49MDqgBIiZLhoRJ." /><figcaption>Cover Image: <a href="http://ift.tt/2n8ukf8">http://ift.tt/2n8ukf8</a></figcaption></figure><p><a href="http://ift.tt/YpnWjz">C++ namespace</a> 的用意是減少名稱衝突，Objective-C 則是以「加上前贅詞」（「贅」者，多餘、沒有用處。）的方式處理，老實說有點不牢靠。</p><p>JUCE 的公開類別置放於 <strong>juce::</strong> 命名空間裡。不過，預設情況下由於<br><em>JuceHeader.h</em> 引入了 using namespace juce;，因此使用 JUCE 類別不需要加上 <em>juce::</em>。這麼做純粹是為了節省打字時間，並試圖讓「版面」更乾淨，但不應視為「最佳實務」。這個預設行為可以透過定義 DONT_SET_USING_JUCE_NAMESPACE=1 來改變。不過，經驗顯示加上後反而是自找麻煩...</p><h4>那些年，我們一起經歷的不美好…</h4><p>C++ namespace 的美意如前述，但現實是殘酷的，「人多必有枯枝，碼厚總有遺毒」。軟體專案發展到一定規模，複雜度日益升高，「同樣功能的模組重複實作」的問題無法避免。以 C++ 類別為例，當專案用到兩個不同的函式庫時，很可能會寫出名稱一模一樣，但介面與實作不盡相同的類別。然後麻煩就來了…</p><p>JUCE 裡有一個 <a href="http://ift.tt/2a2kLEN">juce::Rectangle</a> 類別跟 Windows SDK 裡的 <a href="http://ift.tt/2nCgr6v">Rectangle</a> 函數衝突，問題發生在引入 <em>Windows.h</em> 後，會出現以下錯誤：</p><pre>error C2872: &#39;Rectangle&#39; : ambiguous symbol 1&gt; could be &#39;C:\Programme\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(3989) : BOOL Rectangle(HDC,int,int,int,int)</pre><p>Win32 API 多為 C 語言介面，無「命名空間」概念，亦無使用「前贅詞」保護，先寫先贏。再加上幾乎是開發 Windows 應用程式必備，影響深遠。前面提到，JUCE 預設會把 juce:: 命名空間捨去，然後就打架了。</p><p>針對 Rectangle 的衝突問題，解法至少二個：</p><p>簡單的作法是連同命名空間一起寫，像這樣： juce::Rectangle，搞定。由此可看出 namespace 確實有其效用，若是 JUCE Rectangle 沒宣告在 juce:: 命名空間，那麼這個簡單作法便不可行。</p><p>另一種<a href="http://ift.tt/2n8h3De">作法</a>是在引入 <em>Windows.h</em> 前定義 NOGDI，不要引入 Rectangle 函數，如下：</p><pre>#define NOGDI<br>#include &lt;windows.h&gt;<br>#include &lt;WinBase.h&gt;<br>#include &lt;atomic&gt;</pre><p>C++ namespace 立意良善，但使用上相對麻煩，有些人就怕麻煩（麻煩可能比蟑螂還可怕），不重視、不使用命名空間，原本獨立發展的專案沒有問題，一旦產生交集，遇到的問題可能不是三兩下解決得了。</p><p>敝社的 C++ 程式碼慣例是自定義的類別一律放在公司命名空間內，視個別專案再放到獨自的命名空間裡。這麼做，對大家都好。</p><p>還是嫌麻煩的話，拜託，請謹守底線 — — <strong>不要在標頭檔（.h/.hpp）使用 </strong><strong>using namespace std</strong>。</p><h4>嚴以律己</h4><p><a href="http://ift.tt/1nNdGyg">Google C++ Style Guide 對於命名空間的規範</a>相對嚴格，不準用 using namespace xxx。與其不知何時被反咬，倒不如一開始就嚴格要求，將發生衝突的機率降至最低。</p><p>此文章同步登於 <a href="http://ift.tt/2nCrlcP">http://ift.tt/2nCrlcP</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11eb4833449b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/juce-tips/139-juce-diary-13%E5%91%BD%E5%90%8D%E7%A9%BA%E9%96%93namespace%E6%9C%89%E5%85%B6%E5%BF%85%E8%A6%81-11eb4833449b">[139] JUCE Diary #13：C++ namespace 的必要性</a> was originally published in <a href="https://medium.com/juce-tips">JUCE Tips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[153] JUCE Diary #14：Catch Test Framework]]></title>
            <link>https://medium.com/juce-tips/153-juce-diary-14catch-test-framework-73cde59287d2?source=rss----c0643c3fd921---4</link>
            <guid isPermaLink="false">https://medium.com/p/73cde59287d2</guid>
            <category><![CDATA[juce]]></category>
            <category><![CDATA[cplusplus]]></category>
            <dc:creator><![CDATA[I’m Sam]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 16:27:57 GMT</pubDate>
            <atom:updated>2017-05-29T02:59:53.640Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="[153] JUCE Diary #14：Catch Test Framework" src="https://cdn-images-1.medium.com/max/600/0*2GpOhAQhqnm5JQ90." /></figure><p><a href="http://ift.tt/UTjgkv">Catch</a> 在 C++ 單元測試、自動化測試領域算是新兵。由於設計優良，使用簡便，近來頗受好評。JUCE 內建了<a href="http://ift.tt/2pZga2r">單元測試機制</a>，雖然大部分情況下比夠用還多，不過，為了避免落入「固步自封」的工程師死亡陷阱，偶爾還是要看看窗外的世界，弄髒手，動動腦。</p><p>JUCE 論壇經常出現高手分享自己的作品，昨天就看到 <a href="http://ift.tt/2qoFcIp">varx</a> 這個把 <a href="http://ift.tt/1wpO4H5">Reactive-Extension, RxCpp</a> 導入到 JUCE 的專案，太有才，改天一定要試試。不過，今天的重點不在該專案，原因是我挖了專案原始碼來看，發現作者用了 Catch 做單元測試，而不是用 JUCE 內建的機制。然後，使用 Catch 來做測試真的很簡單。底下說明使用方式。</p><p>首先，使用 Projucer 建一個 Console Application。為什麼要選這個類型的專案？因為「自動產生的程式碼最少」。Main.cpp 長這樣：</p><p>中略。</p><p>原因是，在 Medium 寫含有程式碼的文章太痛苦了，想看完整版，請移駕主站： <a href="http://ift.tt/2r9i1z0">http://ift.tt/2r9i1z0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73cde59287d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/juce-tips/153-juce-diary-14catch-test-framework-73cde59287d2">[153] JUCE Diary #14：Catch Test Framework</a> was originally published in <a href="https://medium.com/juce-tips">JUCE Tips</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>