FieldMidity implements MidiJS and LibTiMidityJS libraries in a file field display formatter for Drupal. It plays midi files in your browser, using a sound bank where each voice is downloaded as they are called by the channel information in the midi file at load time. It's very similar to the old midi browser plugins, except that the controller is javascript and the samples are hosted remotely.

Project page:
https://www.drupal.org/sandbox/vincer/2779871

Demo site:
http://fieldmidity.newinelabs.com/

Clone command:
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/vincer/2779871.git fieldmidity

Comments

vincer created an issue. See original summary.

PA robot’s picture

Issue summary: View changes
Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxvincer2779871git

Fixed the git clone URL in the issue summary for non-maintainer users.

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

joachim’s picture

Interesting module!

I'm confused as to what fieldmidity_theme_registry_alter() is doing. You're altering templates from your own module...? Of which there are none anyway...?

vincer’s picture

Thanks for looking at this.
For fieldmidity_theme_registry_alter(), I'm just using it to override the core field.tpl.php with the module's field--field-midi.tpl.php.
I don't know of another way to do this, or what a better approach might be.
I'm open to any input.

joachim’s picture

I don't see any tpl files in the repo. Have you given the right branch in the git clone command above?

vincer’s picture

Looks like I didn't add it to the repo. Updated. Should be good now.

dilipsingh02’s picture

Please fixed the following error:

FILE: /var/www/drupal-7-pareview/pareview_temp/fieldmidity.module
------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------
1 | WARNING | There must be no blank line following an inline comment
36 | WARNING | There must be no blank line following an inline comment
70 | WARNING | Unused variable $settings.
------------------------------------------------------------------------
vincer’s picture

@dilipsingh02 - fieldmidity.module Is updated with corrections. ty

dilipsingh02’s picture

Automated Review

http://pareview.sh/pareview/httpsgitdrupalorgsandboxvincer2779871git

(-) Git default branch is not set, see the documentation on setting a default branch.

Manual Review

Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
No: Does not follow the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
No: List of security issues identified.
Coding style & Drupal API usage
  1. (*) Remove commented code line from your code. Found // $settings = $display['settings']; // Currently unused, but may be implemented in line no 65 fieldmidity.module. Found in many places check in entire module.
  2. (*) t('<a href="#playmidi-') . $item["fid"] . ('"; onclick="MIDIjs.play(') . t("'") . file_create_url($item["uri"]) . t("'") . t(');">'), change to l() (https://api.drupal.org/api/drupal/includes%21common.inc/function/l/7.x)
  3. (+) follow Drupal coding standers and fixed the space and indent issues

The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.

If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.

This review uses the Project Application Review Template.

vincer’s picture

@dilipsingh02 - I've just committed an update. I believe I've corrected all of the #9 issues.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.

vincer’s picture

Status: Closed (won't fix) » Needs review
vincer’s picture

Status: Needs review » Active
vincer’s picture

Status: Active » Needs review

Pareview.sh shows no errors. There are 3 warnings, but I'm not sure that they need to be addressed.

addonsolutions’s picture

Hi Vincer,

This is not critical issue. but it is incorrect.
Code after RETURN statement cannot be executed on line #21
return your content after break statement.

vincer’s picture

Status: Needs review » Active
vincer’s picture

Status: Active » Needs review

RETURN statement cannot be executed issue has been cleared.

Warped’s picture

Status: Needs review » Postponed (maintainer needs more info)

Thank you for your contribution!

After 2017 March 7 everyone can promote a project to a full project.  A full project has a short project name and a drupal.org/project URL.  It can also have releases (like alpha1 or 1.0).  Edit your sandbox project, and then choose the 'Promote' tab.

https://www.drupal.org/docs/8/understanding-drupal-version-numbers/drupa...
https://www.drupal.org/docs/8/choosing-a-drupal-version/what-do-version-...
https://www.drupal.org/docs/8/understanding-drupal-version-numbers/what-...
https://www.drupal.org/docs/8/choosing-a-drupal-version/release-stable-v...

If you'd like to opt into security coverage, please ensure your module is ready for a full release, and then set this issue back to 'needs review'

Immense apologies for how long it took to get to this review completed.

apaderno’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I am closing this application for the lack for replies. I take the OP just needed to be able to promote the project.