feat(legacy): visual cue point editor (#2947)
A visual cue point editor in the track editor view. This view displays the track as a waveform and allows you to set where the in- and out-cue points are set. These cue points determine the start and end points of the track. --------- Co-authored-by: Thomas Göttgens <tgoettgens@mail.com> Co-authored-by: Kyle Robbertze <paddatrapper@users.noreply.github.com>
This commit is contained in:
parent
71b20ae3c9
commit
da02e74f21
20 changed files with 9420 additions and 43 deletions
|
@ -8,9 +8,11 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
{
|
||||
// Set the method for the display form to POST
|
||||
$this->setMethod('post');
|
||||
$this->setAttrib('id', 'track_edit_' . $p_id);
|
||||
|
||||
$file_id = new Zend_Form_Element_Hidden('file_id');
|
||||
$file_id->setValue($p_id);
|
||||
$file_id->setDecorators(['ViewHelper']);
|
||||
$file_id->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none']);
|
||||
$file_id->removeDecorator('Label');
|
||||
$file_id->setAttrib('class', 'obj_id');
|
||||
|
@ -188,6 +190,14 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
]);
|
||||
$this->addElement($mood);
|
||||
|
||||
// Add replay gain field
|
||||
$replay_gain = new Zend_Form_Element_Hidden('replay_gain');
|
||||
$replay_gain->class = 'input_text replay_gain_' . $p_id;
|
||||
$replay_gain->setLabel(_('Replay Gain:'))
|
||||
->addDecorator('HtmlTag', ['tag' => 'div', 'style' => 'display:none'])
|
||||
->removeDecorator('Label');
|
||||
$this->addElement($replay_gain);
|
||||
|
||||
// Add bmp field
|
||||
$bpm = new Zend_Form_Element_Text('bpm');
|
||||
$bpm->class = 'input_text';
|
||||
|
@ -242,7 +252,7 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
$validCuePattern = '/^(?:[0-9]{1,2}:)?(?:[0-9]{1,2}:)?[0-9]{1,6}(\.\d{1,6})?$/';
|
||||
|
||||
$cueIn = new Zend_Form_Element_Text('cuein');
|
||||
$cueIn->class = 'input_text';
|
||||
$cueIn->class = 'input_text cuein_' . $p_id;
|
||||
$cueIn->setLabel('Cue In:');
|
||||
$cueInValidator = Application_Form_Helper_ValidationTypes::overrideRegexValidator(
|
||||
$validCuePattern,
|
||||
|
@ -252,7 +262,7 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
$this->addElement($cueIn);
|
||||
|
||||
$cueOut = new Zend_Form_Element_Text('cueout');
|
||||
$cueOut->class = 'input_text';
|
||||
$cueOut->class = 'input_text cueout_' . $p_id;
|
||||
$cueOut->setLabel('Cue Out:');
|
||||
$cueOutValidator = Application_Form_Helper_ValidationTypes::overrideRegexValidator(
|
||||
$validCuePattern,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue