<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div>
   Ive got the software (abjs) working on a non pmwiki site (http://folk-lyrics.co.uk/Tunebook/HomePage) but not on the pmwiki version to be (currently at http://s593332318.websitehome.co.uk/Music/pmwiki/pmwiki.php?n=Tunebook.HomePage). When i get time, I was going to experiment with versions of abcjs and different configurations. I just wondsee ed if anyone was already successful in getting music out?
  </div>
  <div>
   regards
  </div>
  <div>
   Dave Cooke
  </div>
  <blockquote type="cite">
   On 12 December 2019 at 11:58 Hans-Jürgen Godau <juergen@godau-witten.de> wrote: 
   <br>
   <br>
   <div dir="ltr">
    <div style="font-family: times new roman,serif; font-size: large;" class="ox-128114fc3c-gmail_default">
     Sorry, I don't use the player. So, can anybody help David?
    </div>
    <div style="font-family: times new roman,serif; font-size: large;" class="ox-128114fc3c-gmail_default">
     regards,
    </div>
    <div style="font-family: times new roman,serif; font-size: large;" class="ox-128114fc3c-gmail_default">
     jürgen 
     <br>
    </div>
   </div>
   <br>
   <div class="ox-128114fc3c-gmail_quote">
    <div class="ox-128114fc3c-gmail_attr" dir="ltr">
     Am Mi., 11. Dez. 2019 um 20:31 Uhr schrieb < 
     <a href="mailto:david@ellendee.co.uk">david@ellendee.co.uk</a>>: 
     <br>
    </div>
    <blockquote>
     <div>
      <div class="ox-128114fc3c-gmail-m_8111499273715847290WordSection1">
       <p class="ox-128114fc3c-MsoNormal">Many thanks for your email. I seem to have it working except that since most browsers no longer have the music player plug-in, how do you get the tune to be played?<u></u><u></u></p>
       <p class="ox-128114fc3c-MsoNormal"><u></u> <u></u></p>
       <p class="ox-128114fc3c-MsoNormal">Regards<u></u><u></u></p>
       <p class="ox-128114fc3c-MsoNormal"><u></u> <u></u></p>
       <p class="ox-128114fc3c-MsoNormal">Dave Cooke<u></u><u></u></p>
       <p class="ox-128114fc3c-MsoNormal"><u></u> <u></u></p>
       <p class="ox-128114fc3c-MsoNormal"><strong>From:</strong> Hans-Jürgen Godau <<a target="_blank" href="mailto:juergen@godau-witten.de" rel="noopener">juergen@godau-witten.de</a>> <br><strong>Sent:</strong> 19 July 2019 15:34<br><strong>To:</strong> David Cooke <<a target="_blank" href="mailto:david@ellendee.co.uk" rel="noopener">david@ellendee.co.uk</a>><br><strong>Cc:</strong> PMWiki <<a target="_blank" href="mailto:pmwiki-users@pmichaud.com" rel="noopener">pmwiki-users@pmichaud.com</a>><br><strong>Subject:</strong> Re: [pmwiki-users] ABC tunebook<u></u><u></u></p>
       <p class="ox-128114fc3c-MsoNormal"><u></u> <u></u></p>
       <div>
        <div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;">I use abctunebook. I made some mods to cope with php 7.2 and the latest pmwiki-release.<u></u><u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;"><u></u> <u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;">Here are my diffs:<u></u><u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;"><u></u> <u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Courier New';">--- abctunebook/cookbook/abctunebook.php 2016-01-08 15:39:00.000000000 +0100<br>+++ cookbook/abctunebook.php 2018-11-13 12:43:55.756779161 +0100<br>@@ -16,20 +16,23 @@<br> <br> $RecipeInfo['AbcTunebook']['Version'] = '2016-01-08';<br> <br>-SDV($AbcTunebooks['default'], 'Tunebook');<br>+SDV($AbcTunebooks, array('default'=>'Tunebook', 0 => 'Liederbuch'));<br>+<br>+<br> SDV($AddTunePage, 'NewTune');<br> <br> SDVA($Abcjs, array(<br>- 'dir' => $PubDirUrl.'/abcjs',<br>+ 'dir' => $FarmPubDirUrl.'/abcjs',<br>  'base' => 'abcjs_base-min.js',<br>  'editor' => 'abc_editor.js',<br>+ 'editor' => 'abc_editor.js',<br>  'plugin' => 'abc_plugin.js',<br>  'midi_program' => '1',<br>  'midi_qpm' => '160',<br> ));<br> <br> # (:abcjs:) directive will load abcjs plugin scripts even if page is not in a tunebook group.<br>-Markup_e('abcjs', 'directives', '/\\(:abcjs:\\)/is', "AbcjsLoadPlugin(\$pagename)");<br>+Markup('abcjs', 'directives', '/\\(:abcjs:\\)/is', "AbcjsLoadPlugin");<br> <br> # otherwise abcjs will not be loaded and markup rules not be set<br> $name = PageVar($pagename,'$Name');<br>@@ -37,17 +40,21 @@<br> if (!in_array($group, $AbcTunebooks)) return;<br> <br> # load abcjs plugin<br>-if($action=='browse') {<br>+if($action!='edit') {<br>  AbcjsLoadPlugin($pagename);<br>- Markup_e('X:abc', '>[=','/(?<!\\]<a>\\]\n)(X:\\s*\\d+\\s*\n.*?)\n<:vspace>/s',"AbcTextMarkup(\$m[1])</a>");<br>- Markup_e('#abc', '<X:abc',<br>-  '/\\[\\[#(abc\\d*)<a>\\]\\](.*?)\\[\\[#\\1end\\]\\]/is</a>', "AbcTextMarkup(\$m[2],\$m[1])");<br>+ Markup('X:abc', '>[=','/(?<!\\]<a>\\]\n)(X:\\s*\\d+\\s*\n.*?)\n<:vspace>/s',"AbcTextMarkup</a>");<br>+ Markup('#abc', '<X:abc',<br>+  '/\\[\\[#(abc\\d*)<a>\\]\\](.*?)\\[\\[#\\1end\\]\\]/is</a>', "AbcTextMarkup2");<br>+}<br>+<br>+function AbcTextMarkup2($m) {<br>+return AbcTextMarkup($m,$m[1]);<br> }<br> <br> $FmtPV['$MidiTempo'] = '$GLOBALS[Abcjs]["midi_qpm"]';<br> <br>-function AbcjsLoadPlugin($pagename) {<br>- global $Abcjs, $AbcTunebooks, $HTMLFooterFmt, $HTMLHeaderFmt, $HTMLStylesFmt;<br>+function AbcjsLoadPlugin($m) {<br>+ global $Abcjs, $AbcTunebooks, $HTMLFooterFmt, $HTMLHeaderFmt, $HTMLStylesFmt, $pagename;<br>  $speed = PageTextVar($pagename, 'speed');<br>  if (!$speed) $speed = 1;<br>  $rhythm = PageTextVar($pagename, 'R');<br>@@ -73,9 +80,9 @@<br>  ";<br> }<br> <br>-function AbcTextMarkup($text, $section=false) {<br>+function AbcTextMarkup($m, $section=false) {<br>  static $cnt=0; $cnt++;<br>- $text = trim($text);<br>+ $text = trim($m[2]);<br>  $out = '';<br>  if ($section) {<br>  $editlnk = "{[foxedit $section 'edit' form=Site.FoxAbcTemplates#editabc]}";</span><u></u><u></u></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;">----------------------------------------------------------------------------------<u></u><u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;">It seems to work for me, at least partially. I have some difficulties with the inline-editor.<u></u><u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;"><u></u> <u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;">Hope this helps,<u></u><u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;"><u></u> <u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;">jürgen<u></u><u></u></span></p>
         </div>
         <div>
          <p class="ox-128114fc3c-MsoNormal"><span style="font-size: 18pt; font-family: 'Times New Roman',serif;"><u></u> <u></u></span></p>
         </div>
        </div>
        <p class="ox-128114fc3c-MsoNormal"><u></u> <u></u></p>
        <div>
         <div>
          <p class="ox-128114fc3c-MsoNormal">Am Di., 16. Juli 2019 um 04:44 Uhr schrieb David Cooke <<a target="_blank" href="mailto:david@ellendee.co.uk" rel="noopener">david@ellendee.co.uk</a>>:<u></u><u></u></p>
         </div>
         <blockquote>
          <div>
           <p>Is anyone using ABC tunebook and got it working. I used to use this a while ago, I came back last week to rebuild my folk song website only to find that it is now 'broken'. The last update was about 3 years ago with the previous major PHP update. Now when I try to install it,  I'm getting loads of error messages and no music script. <u></u><u></u></p>
           <div>
            <p> Regards<u></u><u></u></p>
            <p><u></u> <u></u></p>
            <p><strong>Dave Cooke</strong><u></u><u></u></p>
           </div>
          </div>
          <p class="ox-128114fc3c-MsoNormal">_______________________________________________<br>pmwiki-users mailing list<br><a target="_blank" href="mailto:pmwiki-users@pmichaud.com" rel="noopener">pmwiki-users@pmichaud.com</a><br><a target="_blank" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noopener">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><u></u><u></u></p>
         </blockquote>
        </div>
       </div>
      </div>
     </div>
     <br>
     <div>
      This email has been scanned by BullGuard antivirus protection.
     </div>
     <div>
      For more info visit 
      <a target="_blank" href="http://www.bullguard.com/tracking.aspx?affiliate=bullguard&buyaffiliate=smtp&url=/" rel="noopener">www.bullguard.com</a>
     </div>
    </blockquote>
   </div>
  </blockquote>
  <div class="default-style">
   <br> 
  </div> 
 </body>
</html>