Skip to content

Commit

Permalink
Renamed directory and updated submodule path
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiwonjumit committed Aug 21, 2024
1 parent 322504d commit d2e44ab
Show file tree
Hide file tree
Showing 90 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
[submodule "src/server/services/procedures/roboscape/speckjs"]
path = src/server/services/procedures/roboscape/speckjs
url = https://github.com/NetsBlox/speckjs.git
[submodule "src/procedures/beatblox/SoundLibrary"]
path = src/procedures/beatblox/SoundLibrary
[submodule "src/procedures/sound-clips/SoundLibrary"]
path = src/procedures/sound-clips/SoundLibrary
url = [email protected]:NetsBlox/SoundLibrary.git
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { registerTypes } = require("./types");
const { MidiReader } = require("./src/midi-api");
const path = require("path");
const utils = require("../utils/index");
const BeatBlox = {};
const SoundClips = {};
const soundLibrary = require("./SoundLibrary/soundLibrary.json");
const drumLibrary = require("./SoundLibrary/drumSoundLibrary.json");
const midiLibrary = require("./MidiLibrary/midiLibrary.json");
Expand All @@ -23,7 +23,7 @@ const masterSoundLibrary = [

registerTypes();

BeatBlox._filetoBuffer = async function (audio_path) {
SoundClips._filetoBuffer = async function (audio_path) {
const data = await fsp.readFile(audio_path);
utils.sendAudioBuffer(this.response, data);
};
Expand All @@ -33,7 +33,7 @@ BeatBlox._filetoBuffer = async function (audio_path) {
* @param {String=} soundType
* @returns {Array}
*/
BeatBlox._getNamesBySoundType = async function (soundType = "") {
SoundClips._getNamesBySoundType = async function (soundType = "") {
var names = [];

//Filter SoundCategories JSON by soundType
Expand All @@ -55,7 +55,7 @@ BeatBlox._getNamesBySoundType = async function (soundType = "") {
* @param {DrumOneShotTypes=} drumType
* @returns {String}
*/
BeatBlox.getDrumOneShotNames = async function (
SoundClips.getDrumOneShotNames = async function (
packName = "",
drumType = "",
) {
Expand Down Expand Up @@ -87,7 +87,7 @@ BeatBlox.getDrumOneShotNames = async function (
* @param {InstrumentNames=} instrumentName
* @returns {Array}
*/
BeatBlox.getSoundNames = async function (
SoundClips.getSoundNames = async function (
chords = "",
key = "",
bpm = "",
Expand Down Expand Up @@ -120,7 +120,7 @@ BeatBlox.getSoundNames = async function (
* Get sound by name.
* @param {String=} nameOfSound
*/
BeatBlox.nameToSound = async function (nameOfSound = "") {
SoundClips.nameToSound = async function (nameOfSound = "") {
const metadata = masterSoundLibrary
.find((obj) => obj.soundName === nameOfSound);

Expand All @@ -136,7 +136,7 @@ BeatBlox.nameToSound = async function (nameOfSound = "") {
* @param {String=} nameOfSound
* @returns {Array}
*/
BeatBlox._getMetaDataByName = async function (nameOfSound = "") {
SoundClips._getMetaDataByName = async function (nameOfSound = "") {
const metadata = soundLibrary.netsbloxSoundLibrary
.find((obj) => obj.soundName === nameOfSound);
return metadata;
Expand All @@ -147,7 +147,7 @@ BeatBlox._getMetaDataByName = async function (nameOfSound = "") {
* @param {String=} nameOfSong
* @returns {[Object{name: String, notes: [Note]}]}
*/
BeatBlox._getSong = async function (nameOfSong = "") {
SoundClips._getSong = async function (nameOfSong = "") {
const metadata = midiLibrary.netsbloxMidiLibrary.find((obj) =>
obj.Name === nameOfSong
);
Expand All @@ -167,7 +167,7 @@ BeatBlox._getSong = async function (nameOfSong = "") {
* @param {String=} name
* @returns {Array}
*/
BeatBlox._getSongNames = async function (composer = "", name = "") {
SoundClips._getSongNames = async function (composer = "", name = "") {
var names = [];
let queriedJSON = "";

Expand All @@ -194,4 +194,4 @@ BeatBlox._getSongNames = async function (composer = "", name = "") {
return names;
};

module.exports = BeatBlox;
module.exports = SoundClips;
File renamed without changes.
File renamed without changes.

0 comments on commit d2e44ab

Please sign in to comment.