Changeset 2914500
- Timestamp:
- 05/18/2023 09:30:34 PM (3 years ago)
- Location:
- music-sheet-viewer/trunk
- Files:
-
- 2 edited
-
music-sheet-viewer.php (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
music-sheet-viewer/trunk/music-sheet-viewer.php
r2707165 r2914500 8 8 * License: GPL3 9 9 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 10 * Version: 4. 0.211 12 Copyright Etienne Frejaville 2018, 2019, 2020, 2021, 2022 10 * Version: 4.1 11 12 Copyright Etienne Frejaville 2018, 2019, 2020, 2021, 2022, 2023 13 13 14 14 Music Sheet Viewer is free software: you can redistribute it and/or modify … … 37 37 class MusicSheetViewerPlugin 38 38 { 39 const MSV_VERSION = '4. 0.2';39 const MSV_VERSION = '4.1'; 40 40 const VRV_VERSION = '3.9.0'; 41 41 … … 53 53 const MSV_OPTION_CLASS = 'class'; 54 54 const MSV_OPTION_PLAY = 'play'; 55 const MSV_OPTION_TRANSP = 'transpose'; 55 56 56 57 // Fonts … … 108 109 protected $myclass; 109 110 protected $myplay; 111 protected $mytransp; 110 112 111 113 protected $uniqueid; … … 221 223 'default' => NULL, 222 224 'type' => 'string' 225 ], 226 'transpose' => [ 227 'default' => NULL, 228 'type' => 'string' 223 229 ] 224 230 ] … … 271 277 //we use the shortcode as handler 272 278 wp_enqueue_script (self::MSV_SHORTCODE, plugins_url('/js/verovio-toolkit-light.js', __FILE__ ), array(), self::VRV_VERSION); 273 wp_enqueue_script ('msv', plugins_url('/js/msv.js', __FILE__ ), array( ), self::MSV_VERSION);279 wp_enqueue_script ('msv', plugins_url('/js/msv.js', __FILE__ ), array('jquery'), self::MSV_VERSION); 274 280 275 281 // For setting filePackagePrefixURL in MidiPlayer of midiplayer.js. Useful to locate <instrument>.data … … 312 318 ,self::MSV_OPTION_CLASS => NULL 313 319 ,self::MSV_OPTION_PLAY => NULL 320 ,self::MSV_OPTION_TRANSP => NULL 314 321 // ...etc 315 322 ), $atts ); … … 331 338 && $attributes[self::MSV_OPTION_CLASS] == '') 332 339 $attributes[self::MSV_OPTION_CLASS] = NULL; 340 if (isset($attributes[self::MSV_OPTION_TRANSP]) 341 && $attributes[self::MSV_OPTION_TRANSP] == '') 342 $attributes[self::MSV_OPTION_TRANSP] = NULL; 333 343 334 344 $this->myformat = $attributes[self::MSV_OPTION_FORMAT]; … … 339 349 $this->myclass = $attributes[self::MSV_OPTION_CLASS]; 340 350 $this->myplay = $attributes[self::MSV_OPTION_PLAY]; 351 $this->mytransp = $attributes[self::MSV_OPTION_TRANSP]; 341 352 342 353 // Check params … … 533 544 $renderdpart .= ' 534 545 breaks:"auto",'; 546 547 $renderdpart .= ' 548 transpose:"'.$this->mytransp.'",'; 535 549 536 550 $renderdpart .= <<<RDP1 -
music-sheet-viewer/trunk/readme.txt
r2707165 r2914500 4 4 Tags: musicxml, abc, sheet, music, score, mei, MEI, viewer, MusicXML, pae, PAE, javascript 5 5 Requires at least: 4.6 6 Tested up to: 5.96 Tested up to: 6.2 7 7 Stable tag: trunk 8 8 Requires PHP: 5.6.32 … … 84 84 == Changelog == 85 85 86 = 4.1 = 87 * New transpose option 88 * Fix for adding jquery which may be missing on WP fresh install 6.0+ 89 * Tested compatibility with WordPress 6.2 90 86 91 = 4.0.2 = 87 * Fix issue making that scores won't play unless plugin is deactivated then activated (after upgrade). BE CAUTIOUS, PLEASE APPLY THAT FIX !!!!92 * Fix issue making that scores won't play unless plugin is deactivated then activated (after upgrade). 88 93 89 94 = 4.0 =
Note: See TracChangeset
for help on using the changeset viewer.