Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce dependency on web audio #190

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 />
tatecarson marked this conversation as resolved.
Show resolved Hide resolved
(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();
}
Comment on lines -1594 to -1596
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the new Nexus.context causes an AudioContext to be created (see the new version of main.js).

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