Skip to content

Commit

Permalink
add classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningTreeC committed Aug 20, 2021
1 parent 89630b0 commit 21f3aa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/musicsheets/files/modules/widgets/musicsheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ABCJSWidget.prototype.render = function(parent,nextSibling) {
this.computeAttributes();
this.execute();
this.pNode = this.document.createElement("div");
this.pNode.className = "tc-music-sheet";
parent.insertBefore(this.pNode,nextSibling);

var programs = ["acoustic_grand_piano", "bright_acoustic_piano", "electric_grand_piano", "honkytonk_piano", "electric_piano_1", "electric_piano_2", "harpsichord", "clavinet", "celesta", "glockenspiel", "music_box", "vibraphone", "marimba", "xylophone", "tubular_bells", "dulcimer", "drawbar_organ", "percussive_organ", "rock_organ", "church_organ", "reed_organ", "accordion", "harmonica", "tango_accordion", "acoustic_guitar_nylon", "acoustic_guitar_steel", "electric_guitar_jazz", "electric_guitar_clean", "electric_guitar_muted", "overdriven_guitar", "distortion_guitar", "guitar_harmonics", "acoustic_bass", "electric_bass_finger", "electric_bass_pick", "fretless_bass", "slap_bass_1", "slap_bass_2", "synth_bass_1", "synth_bass_2", "violin", "viola", "cello", "contrabass", "tremolo_strings", "pizzicato_strings", "orchestral_harp", "timpani", "string_ensemble_1", "string_ensemble_2", "synth_strings_1", "synth_strings_2", "choir_aahs", "voice_oohs", "synth_choir", "orchestra_hit", "trumpet", "trombone", "tuba", "muted_trumpet", "french_horn", "brass_section", "synth_brass_1", "synth_brass_2", "soprano_sax", "alto_sax", "tenor_sax", "baritone_sax", "oboe", "english_horn", "bassoon", "clarinet", "piccolo", "flute", "recorder", "pan_flute", "blown_bottle", "shakuhachi", "whistle", "ocarina", "lead_1_square", "lead_2_sawtooth", "lead_3_calliope", "lead_4_chiff", "lead_5_charang", "lead_6_voice", "lead_7_fifths", "lead_8_bass_lead", "pad_1_new_age", "pad_2_warm", "pad_3_polysynth", "pad_4_choir", "pad_5_bowed", "pad_6_metallic", "pad_7_halo", "pad_8_sweep", "fx_1_rain", "fx_2_soundtrack", "fx_3_crystal", "fx_4_atmosphere", "fx_5_brightness", "fx_6_goblins", "fx_7_echoes", "fx_8_scifi", "sitar", "banjo", "shamisen", "koto", "kalimba", "bagpipe", "fiddle", "shanai", "tinkle_bell", "agogo", "steel_drums", "woodblock", "taiko_drum", "melodic_tom", "synth_drum", "reverse_cymbal", "guitar_fret_noise", "breath_noise", "seashore", "bird_tweet", "telephone_ring", "helicopter", "applause", "gunshot", "percussion"];
Expand All @@ -56,11 +57,13 @@ ABCJSWidget.prototype.render = function(parent,nextSibling) {
var midi = ABCJS.synth.getMidiFile(renderedABC[0], { chordsOff: true, midiOutputType: "link" });
this.midiNode = this.document.createElement("div");
this.midiNode.innerHTML = midi;
this.midiNode.className = "tc-midi-download";
parent.insertBefore(this.midiNode,nextSibling);
this.domNodes.push(this.midiNode);
}
if(renderedABC && this.renderMidi) {
this.pNode2 = this.document.createElement("div");
this.pNode2.className = "tc-playback-controls";
parent.insertBefore(this.pNode2,nextSibling);
if(ABCJS.synth.supportsAudio()) {
this.synthControl = new ABCJS.synth.SynthController();
Expand Down

0 comments on commit 21f3aa5

Please sign in to comment.