Skip to content

Commit

Permalink
Music app color and host change
Browse files Browse the repository at this point in the history
* Changed Extension color to Purple

* Instrument location fixed

---------

Co-authored-by: Gabe Barnard <[email protected]>
Co-authored-by: Gordon Stein <[email protected]>
  • Loading branch information
3 people authored Aug 30, 2023
1 parent 73472b0 commit 32a69be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 7 additions & 2 deletions extensions/BeatsBlox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4211,7 +4211,12 @@
const availableEffects = audioAPI.getAvailableEffects();
audioAPI.getAvailableMidiDevices().then(returnMidiDevice, fail);
audioAPI.getAvailableAudioInputDevices().then(returnAudioDevice, fail);
audioAPI.getAvailableInstruments('http://localhost:8000/extensions/MusicApp/instruments').then(

const devRoot = 'http://localhost:8000/extensions/BeatsBlox/instruments/';
const releaseRoot = 'https://extensions.netsblox.org/extensions/BeatsBlox/instruments/';
const instrumentLocation = window.origin.includes('localhost') ? devRoot : releaseRoot;

audioAPI.getAvailableInstruments(instrumentLocation).then(
instruments => instruments.forEach(
instrument => midiInstruments.push(instrument)
)
Expand Down Expand Up @@ -4456,7 +4461,7 @@

getCategories() {
return [
new Extension.Category('music', new Color(250, 51, 51)),
new Extension.Category('music', new Color(148,0,211)),
];
}

Expand Down
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ <h1>NetsBlox Extensions</h1>
</p>
</details>

<details>
<summary><input type="checkbox" class="extensionOption" name="BeatsBlox" style="margin-right: 10px" hidden /><a href="https://dev.netsblox.org/?extensions=[%22https://extensions.netsblox.org/extensions/BeatsBlox/index.js%22]#" target="_blank"> BeatsBlox </a></summary>
<p>
<input type="hidden" name="BeatsBlox_script" id="BeatsBlox_script" value="https://extensions.netsblox.org/extensions/BeatsBlox/index.js" />
BeatsBlox extends Music Functionality within NetsBlox
</p>
</details>

<details class="extension">
<summary><input type="checkbox" class="extensionOption" name="BetterShare" style="margin-right: 10px" hidden /><a href="https://editor.netsblox.org/?extensions=[%22https://extensions.netsblox.org/extensions/BetterShare/index.js%22]#" target="_blank"> BetterShare </a></summary>
<p>
Expand Down

0 comments on commit 32a69be

Please sign in to comment.