Skip to content

Commit

Permalink
Reduce dependency on web audio (#190)
Browse files Browse the repository at this point in the history
* Only create AudioContext when necessary

* Tweak npm version

* Rebuild dist files
  • Loading branch information
pendragon-andyh authored Aug 29, 2020
1 parent 88bae45 commit fc13997
Show file tree
Hide file tree
Showing 9 changed files with 420 additions and 336 deletions.
13 changes: 4 additions & 9 deletions api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,16 @@ <h3 style="margin: 10px auto 0px;width:100%;font-size:14pt;font-weight:normal">V
<h5>Setup</h5>

<p>
Download <a href="https://cdn.jsdelivr.net/npm/nexusui@2.0.13/dist/NexusUI.js" download>NexusUI.js</a>. <br />
Download <a href="https://cdn.jsdelivr.net/npm/nexusui@2.1.5/dist/NexusUI.js" download>NexusUI.js</a>. <br />
(The link grabs the latest version of the file directly from our NPM.)
</p>

<p>
Or access on a CDN if you want a hosted file:
</p>
<ul>
<li><a href="https://cdn.jsdelivr.net/npm/nexusui@2.0.13/dist/NexusUI.js">Development</a></li>
<li><a href="https://cdn.jsdelivr.net/npm/nexusui@2.0.13/dist/NexusUI.min.js">Production</a></li>
<li><a href="https://cdn.jsdelivr.net/npm/nexusui@2.1.5/dist/NexusUI.js">Development</a></li>
<li><a href="https://cdn.jsdelivr.net/npm/nexusui@2.1.5/dist/NexusUI.min.js">Production</a></li>
</ul>


Expand Down Expand Up @@ -373,7 +373,7 @@ <h5>Dynamically Adding and Removing Interfaces</h5>
<p data-height="265" data-theme-id="0" data-slug-hash="GmEJVL" data-default-tab="html,result" data-user="taylorbf" data-embed-version="2" data-pen-title="Basic Dial" class="codepen">See the Pen <a href="https://codepen.io/taylorbf/pen/GmEJVL/">Basic Dial</a> by Ben Taylor (<a href="http://codepen.io/taylorbf">@taylorbf</a>) on <a href="http://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
<!-- <p data-height="265" data-theme-id="0" data-slug-hash="ygGMxq" data-default-tab="js,result" data-user="taylorbf" data-embed-version="2" data-pen-title="MT Test" class="codepen">See the Pen <a href="http://codepen.io/taylorbf/pen/ygGMxq/">MT Test</a> by Ben Taylor (<a href="http://codepen.io/taylorbf">@taylorbf</a>) on <a href="http://codepen.io">CodePen</a>.</p>
<p data-height="265" data-theme-id="0" data-slug-hash="ygGMxq" data-default-tab="js,result" data-user="taylorbf" data-embed-version="2" data-pen-title="MT Test" class="codepen">See the Pen <a href="http://codepen.io/taylorbf/pen/ygGMxq/">MT Test</a> by Ben Taylor (<a href="http://codepen.io/taylorbf">@taylorbf</a>) on <a href="http://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script> -->


Expand Down Expand Up @@ -1591,18 +1591,13 @@ <h3>Properties</h3>
var Unformatted = {}
var API = {}
var Helpers = []
if (Nexus.context.close) {
Nexus.context.close();
}
Nexus.context = Tone.context;


$.getJSON('api.json', function (data) {
data.forEach(function (entry) {
Unformatted[entry.name] = entry
})


// Parse Helper doc into Helpers object
for (var key in Unformatted) {
if (LoadLinks.Helper.indexOf(key) >= 0) {
Expand Down
Loading

0 comments on commit fc13997

Please sign in to comment.