From 32a69be04646ea624ea1f4ddfc3e812bfe97323b Mon Sep 17 00:00:00 2001
From: Oluwatito Ebiwonjumi <31973148+ebiwonjumit@users.noreply.github.com>
Date: Tue, 29 Aug 2023 19:46:00 -0500
Subject: [PATCH] Music app color and host change
* Changed Extension color to Purple
* Instrument location fixed
---------
Co-authored-by: Gabe Barnard
Co-authored-by: Gordon Stein <7331488+gsteinLTU@users.noreply.github.com>
---
extensions/BeatsBlox/index.js | 9 +++++++--
index.html | 8 ++++++++
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/extensions/BeatsBlox/index.js b/extensions/BeatsBlox/index.js
index 344f913..3baf24a 100644
--- a/extensions/BeatsBlox/index.js
+++ b/extensions/BeatsBlox/index.js
@@ -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)
)
@@ -4456,7 +4461,7 @@
getCategories() {
return [
- new Extension.Category('music', new Color(250, 51, 51)),
+ new Extension.Category('music', new Color(148,0,211)),
];
}
diff --git a/index.html b/index.html
index 28b02a8..0c22c42 100644
--- a/index.html
+++ b/index.html
@@ -30,6 +30,14 @@ NetsBlox Extensions
+
+ BeatsBlox
+
+
+ BeatsBlox extends Music Functionality within NetsBlox
+
+
+
BetterShare