Skip to content

Commit

Permalink
update client
Browse files Browse the repository at this point in the history
generate page break event for chordpro comments
  • Loading branch information
deleolajide committed Jan 9, 2025
1 parent ad031af commit 1c93fd6
Show file tree
Hide file tree
Showing 14 changed files with 387 additions and 220 deletions.
Binary file not shown.
Binary file not shown.
Binary file added classes/jsp/assets/bass/flow-pop_110_8727.bass
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 14 additions & 12 deletions classes/jsp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
<input title='Play Intro end Ending' style="margin-left: 10px;margin-right: 10px;" id="introEnd" type="checkbox" checked>Intro/Outro
<input title='Enable Guitar pedal effects' checked style="margin-left: 10px;margin-right: 10px;" id="reverb" type="checkbox">Pedals
<input title='Dont override midi file program change settings' style="margin-left: 10px;margin-right: 10px;" id="program-change" type="checkbox">No P.Change
<input title='Dont play chords in midi song file' style="margin-left: 10px;margin-right: 10px;" id="mute-chords" type="checkbox">Mute Chords
<input title='Dont display chords with lyrics' style="margin-left: 10px;margin-right: 10px;" id="vocalist-mode" type="checkbox">Vocalist
<input title='Guitar volume control' id="volume" type="range" min="1" max="100" step="1" value="25" style="height: 20px; width: 150px;margin-left: 20px;margin-right: 10px;">
<span id="showVol">VOL</span>
</div>
Expand Down Expand Up @@ -73,20 +75,20 @@
<tr><td><b>Arranger Type</b></td><td><select id="arrangerType" type="text" class="form-control input"></select></td><td valign="top" rowspan="13" colspan="5"><div id="synth"></div></td></tr>
<tr><td><b>Arranger Group</b></td><td><select id="arrangerGroup" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Arranger Style</b></td><td><select id="arrangerStyle" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Input Controller</b></td><td><select id="midiInType" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Sound Font File</b></td><td><select id="arrangerSf2" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Output MIDI Device</b></td><td><select id="midiOutSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Input MIDI Device</b></td><td><select id="midiInSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Input Device Type</b></td><td><select id="midiInType" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Pads Synth MIDI Device</b></td><td><select id="midiPadsSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>RealGuitar MIDI Device</b></td><td><select id="midiFwdSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>RealGuitar Strum Pattern</b></td><td><select id="realguitar" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Input Audio Device</b></td><td><select id="inputAudioDevice" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Output Audio Device</b></td><td><select id="outputAudioDevice" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Chord Loop</b></td><td><select id="realchordLoop" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Drum Loop</b></td><td><select id="realdrumLoop" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Bass Loop</b></td><td><select id="realbassLoop" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>MIDI In</b></td><td><select id="midiInSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>MIDI Out</b></td><td><select id="midiOutSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>MIDI Synth</b></td><td><select id="midiPadsSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>RealGuitar Out</b></td><td><select id="midiFwdSel" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>RealGuitar Strum</b></td><td><select id="realguitar" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Device In</b></td><td><select id="inputAudioDevice" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Device Out</b></td><td><select id="outputAudioDevice" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Chord</b></td><td><select id="realchordLoop" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Drum</b></td><td><select id="realdrumLoop" type="text" class="form-control input"></select></td><td></td></tr>
<tr><td><b>Audio Bass</b></td><td><select id="realbassLoop" type="text" class="form-control input"></select></td><td></td></tr>
<tr>
<td><b>ChordTracker MIDI Device</b></td>
<td><b>ChordTracker</b></td>
<td><select id="midiChordTrackerSel" type="text" class="form-control input"></select></td>
<td valign="top" rowspan="2" colspan="4">
<div id="liberlive" style="display:none;">
Expand Down
24 changes: 16 additions & 8 deletions classes/jsp/js/audio_looper.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,22 @@ AudioLooper.prototype.addUri = function(loop, output, bpm) {

if (loop.url.startsWith("assets"))
{
fetch(loop.url)
.then(response => response.arrayBuffer())
.then(buffer => this.audioContext.decodeAudioData(buffer))
.then(sample => {
this.sample = sample;
console.debug("addUri", loop, sample);
if (this.cb_loaded) this.cb_loaded();
});
this.sample = window.loopCache[loop.url];

if (this.sample == undefined) {
fetch(loop.url, {cache: "force-cache"})
.then(response => response.arrayBuffer())
.then(buffer => this.audioContext.decodeAudioData(buffer))
.then(sample => {
this.sample = sample;
window.loopCache[loop.url] = sample;
console.debug("addUri fetched", loop.url, sample);
if (this.cb_loaded) this.cb_loaded(false);
});
} else {
console.debug("addUri cached", loop.url, this.sample);
if (this.cb_loaded) this.cb_loaded(true);
}
} else {
const dbName = loop.url;
const store = new idbKeyval.Store(dbName, dbName);
Expand Down
2 changes: 1 addition & 1 deletion classes/jsp/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const createOrinAyoWindow = () => {
chrome.windows.create(data, async (win) => {
//await chrome.offscreen.closeDocument();
chrome.storage.local.set({orinAyoWin: win.id});
chrome.windows.update(win.id, {width: 1120, height: 1040});
chrome.windows.update(win.id, {width: 1190, height: 1040});
});
}

Expand Down
Loading

0 comments on commit 1c93fd6

Please sign in to comment.