New question type: Music Intervals

New question type: Music Intervals

Eric Brisson -
回帖数:20

Hello,

I have contributed a new question type to the Modules and Plugins database that may be helpful for music theory instruction at the high school or college level: musical intervals.

The respondent is given a note and prompted to enter a second one at a given interval - answers are entered in a graphical user interface. It has been tested in a classroom setting in the Fall of 2009.

Many thanks to Anthony Borrow for his help with the contribution process.

Eric Brisson

回复Eric Brisson

Re: New question type: Music Intervals

Gordon McLeod -
Plugin developers的头像

Eric,

Many thanks - I'll be loading this onto our development site this week and look forwards to making it live once we've played around with it.

回复Eric Brisson

Re: New question type: Music Intervals

Claire Browne -
HI Eric,

Good Plug-in.

I have installed it onto my moodle 1.9.7 dev site and found when I come to save the quiz this error pops up.

Have you come across this before? (see attachment)
附件 intervals_error.GIF
回复Claire Browne

Re: New question type: Music Intervals

Eric Brisson -
Hello Claire,

It looks as though the database table hasn't been created.

If you haven't done it, you could try the following: on the the Moodle main page, click "Notifications" (just under "Site Administration"). You should then see a confirmation that a database table ("question_interval") has been created, after which the questions should save and load properly. Note that any question you have created prior to doing this would have to be discarded, because the question options wouldn't have been saved to the database).


Please let me know if this doesn't work if if you had already done it.
回复Eric Brisson

Re: New question type: Music Intervals

Claire Browne -
Hi Eric,

I had done the Notifications part before I go to creating a quiz.

Does this plug-in work with Oracle databases?
回复Claire Browne

Re: New question type: Music Intervals

Eric Brisson -

I have only tested it with MySQL...I also suspect that Oracle compatibility might be the issue - I will look into this and try figuring it out.

回复Eric Brisson

Re: New question type: Music Intervals

Claire Browne -
Eric,

Thank you for your prompt reply.

If you need me to test anything out for you, please feel free to contact me.

I will look forward to the next update.
回复Eric Brisson

Re: New question type: Music Intervals

d morte -
First, thank you for this file type - I'm really looking forward to using it. However, when I preview my quiz, I get an error saying: This text is replaced by the Flash movie. I'm not sure what setting I'm missing that is preventing the flash from being generated.
回复d morte

Re: New question type: Music Intervals

Eric Brisson -
Hello Drew,

It could be an issue with Javascript being enabled in the browser - it is necessary to load and run the Flash interface. Otherwise, please let me know you browser and operating system - I would like to check if I can reproduce the problem.

Thanks for pointing it out.
回复Eric Brisson

Re: New question type: Music Intervals

d morte -
Hi Eric,
I just tried it in Opera 10.51, and Firefox 3.6 and received the errors: This text is replaced by the graphical interface. and This text is replaced by the Flash movie. (One was for Intervals and the other for Key Signatures).

I checked and I have Adobe Flash Player 10.0.42.34 installed and javascript enabled.

I'm not sure if there are any Moodle settings that I should be checking. I'm running 1.9.7
回复d morte

Re: New question type: Music Intervals

Eric Brisson -
Hi Drew,

I tried "intervals" with almost the same configuration as you (Opera 10.51, Firefox 3.6, 1.9.7) and it worked for me, both in Opera and Firefox. My Flash player is 10.0.45.2 - you could maybe try upgrading your flash to the latest version, although I doubt that this would change anything since Flash isn't loading at all on your pages.

The loading issue still seems to point to Javascript, somehow - loading is done through "swfobject", a javascript that loads Flash in various browsers. I would be curious to find out if you get javascript error messages when loading the question page. You could try the following quick test to see if error messages appear:

1) Start Firefox and install the Javascript debugger (https://addons.mozilla.org/en-US/firefox/addon/216). Restart Firefox.

2) In firefox, click "Tools-Javascript Debugger"

3) in the Javascript debugger, click "Debug->Error Trigger->Trace Errors"

4) Load a question page in Moodle - after loading the page, go back to the debugger window and check if any error message appears in the console (black window)
回复Eric Brisson

Re: New question type: Music Intervals

d morte -
Odd... I did exactly as you suggested, and received no errors in the black window.
附件 errors.JPG
回复d morte

Re: New question type: Music Intervals

Eric Brisson -
hhmm... yes, a little strange. Maybe visiting this page would be a good idea:

http://code.google.com/p/swfobject/wiki/test_suite

This page contains links that check various features of "swfobject" - try finding out if the links under "Dynamic embed method (using option 2)" work with your browser (they would show you various Flash movies and pop-up windows if they work). If they work, then the problem wouldn't be involving "swfobject".

If you have PC, I would be curious to find if Internet Explorer works (or Safari for a Mac?).

Eric


回复Eric Brisson

Re: New question type: Music Intervals

d morte -
Eric, I went to that page and clicked on every link in the second section. Almost all were little green boxes with my version of flash 10.0.42.34... I tried on IE8 and the same problem exists. Is there a test page of the intervals / key signature on a different server that I could test - it would help to determine if it is a browser issue or a moodle/server issue.
回复d morte

Re: New question type: Music Intervals

Eric Brisson -
Hi Drew,
I have opened my development version of 1.9.7 for outside access and sent you the login info through email - I am curious to find out if this will load on your machine.

回复Eric Brisson

Re: New question type: Music Intervals

Paulo Ramalhoto -

Hi!

I would like to use it in Portuguese... How can I translate it?

 

Thanks

回复Paulo Ramalhoto

Re: New question type: Music Intervals

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像

Inside the question type code, (in the folder question/type/interval), there will be a folder lang. Currently that only contains a sub-folder en_utf8, with the various files that contain the English translation. You need to make a copy of that folder called pt_utf8, and then change all the text to Portugese.

You can browse the code of the interval question type online: http://cvs.moodle.org/contrib/plugins/question/type/interval/

Here is a plugin that has been translated into two other langauges, so you can see how it works: http://cvs.moodle.org/contrib/plugins/admin/report/customsql/lang/?pathrev=MOODLE_19_STABLE

回复Eric Brisson

Re: New question type: Music Intervals

Mauricio Poveda -

plug-ins are excellent and I work very well com

I get in line questionnaire chords

 this is if there would be an excellent contribution to those who teach music

tank

回复Eric Brisson

Re: New question type: Music Intervals

Mauricio Poveda -

dear friend eric I wonder if you can get the plug-in questionnaire tipe chords it would be helpful

tanks

Morriss

回复Eric Brisson

Re: New question type: Music Intervals

Bernadette Norton -

Hi Eric,

Have you worked out how long it will be before the next update for the Music Intervals plug-in will be as I have tried to put it in the latest MOODLE app and a number of errors come up stating it is not an up to date plug-in (notifications section) and then I have to delete it in the question type folder just to make sure the site will work as the notifications keeps popping up if I try to go into the HOME page of my site.

It would be great to use this tool for my music students and I hope to add this plug-in soon.  It would be a pity if it wasn't compatible with all the new updates to MOODLE.

Hope to hear from you soon about an update.

From Bernie

 

回复Bernadette Norton

Re: New question type: Music Intervals

Jay Huber -

I have converted Eric's plugins to work in Moodle 2.x; and have conversed with Eric offline about releasing these to the community.  They are still in Beta and I am waiting for approval for them to showup in the Moodle plugin database.  They work identically, but required a bit more code to work in Moodle 2.  I have not tested the Import/Export functionality, but they can be found here:

https://github.com/jayhuber/musickeysignature/zipball/master

https://github.com/jayhuber/musicscale/zipball/master

https://github.com/jayhuber/musicinterval/zipball/master

Please report issues on GitHub as well.  Our music faculty began testing these on Friday, after I vigoriously converted 100 questions from Moodle 1.9 to 2.3.