1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
|
/*
* FormSingerStypeConfig.cs
* Copyright © 2008-2011 kbinani
*
* This file is part of org.kbinani.cadencii.
*
* org.kbinani.cadencii is free software; you can redistribute it and/or
* modify it under the terms of the GPLv3 License.
*
* org.kbinani.cadencii is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#if JAVA
package org.kbinani.cadencii;
//INCLUDE-SECTION IMPORT ../BuildJavaUI/src/org/kbinani/cadencii/FormNoteExpressionConfig.java
import java.awt.event.*;
import java.util.*;
import org.kbinani.*;
import org.kbinani.apputil.*;
import org.kbinani.vsq.*;
import org.kbinani.windows.forms.*;
#else
using System;
using System.Drawing;
using System.Windows.Forms;
using org.kbinani.apputil;
using org.kbinani.vsq;
using org.kbinani.windows.forms;
using org.kbinani.java.util;
using org.kbinani.java.awt.event_;
namespace org.kbinani.cadencii
{
using BEventArgs = System.EventArgs;
using boolean = System.Boolean;
using BEventHandler = System.EventHandler;
#endif
#if JAVA
public class FormNoteExpressionConfig extends BDialog {
#else
public class FormNoteExpressionConfig : BDialog
{
#endif
boolean m_apply_current_track = false;
NoteHeadHandle m_note_head_handle = null;
public FormNoteExpressionConfig( SynthesizerType type, NoteHeadHandle note_head_handle )
{
#if JAVA
super();
initialize();
#else
InitializeComponent();
#endif
registerEventHandlers();
setResources();
Util.applyFontRecurse( this, AppManager.editorConfig.getBaseFont() );
applyLanguage();
if ( note_head_handle != null ) {
m_note_head_handle = (NoteHeadHandle)note_head_handle.clone();
}
if ( type == SynthesizerType.VOCALOID1 ) {
#if JAVA
getContentPane().remove( groupDynamicsControl );
getContentPane().remove( panelVocaloid2Template );
getContentPane().remove( groupPitchControl );
#else
flowLayoutPanel.Controls.Remove( groupDynamicsControl );
flowLayoutPanel.Controls.Remove( panelVocaloid2Template );
flowLayoutPanel.Controls.Remove( groupPitchControl );
#endif
} else {
#if JAVA
getContentPane().remove( groupAttack );
#else
flowLayoutPanel.Controls.Remove( groupAttack );
#endif
}
//comboAttackTemplateを更新
NoteHeadHandle empty = new NoteHeadHandle();
comboAttackTemplate.removeAllItems();
empty.IconID = "$01010000";
empty.setCaption( "[Non Attack]" );
comboAttackTemplate.addItem( empty );
comboAttackTemplate.setSelectedItem( empty );
String icon_id = "";
if ( m_note_head_handle != null ) {
icon_id = m_note_head_handle.IconID;
txtDuration.setText( m_note_head_handle.getDuration() + "" );
txtDepth.setText( m_note_head_handle.getDepth() + "" );
} else {
txtDuration.setEnabled( false );
txtDepth.setEnabled( false );
trackDuration.setEnabled( false );
trackDepth.setEnabled( false );
}
for ( Iterator<NoteHeadHandle> itr = VocaloSysUtil.attackConfigIterator( SynthesizerType.VOCALOID1 ); itr.hasNext(); ) {
NoteHeadHandle item = itr.next();
comboAttackTemplate.addItem( item );
if ( item.IconID.Equals( icon_id ) ) {
comboAttackTemplate.setSelectedItem( comboAttackTemplate.getItemAt( comboAttackTemplate.getItemCount() - 1 ) );
}
}
#if JAVA
comboAttackTemplate.selectedIndexChangedEvent.add( new BEventHandler( this, "comboAttackTemplate_SelectedIndexChanged" ) );
#else
comboAttackTemplate.SelectedIndexChanged += new BEventHandler( comboAttackTemplate_SelectedIndexChanged );
#endif
comboTemplate.removeAllItems();
String[] strs = new String[]{
"[Select a template]",
"normal",
"accent",
"strong accent",
"legato",
"slow legate",
};
for( int i = 0; i < strs.Length; i++ ){
comboTemplate.addItem( strs[i] );
}
#if JAVA
if( type == SynthesizerType.VOCALOID1 ){
this.setSize( this.getWidth(), 238 );
}else{
this.setSize( this.getWidth(), 400 );
}
#else
Size current_size = this.ClientSize;
this.ClientSize = new Size( current_size.Width, flowLayoutPanel.ClientSize.Height + flowLayoutPanel.Top * 2 );
this.FormBorderStyle = FormBorderStyle.FixedDialog;
#endif
}
#region public methods
public NoteHeadHandle getEditedNoteHeadHandle()
{
return m_note_head_handle;
}
public void applyLanguage()
{
lblTemplate.setText( _( "Template" ) );
lblTemplate.setMnemonic( KeyEvent.VK_T, comboTemplate );
groupPitchControl.setTitle( _( "Pitch Control" ) );
lblBendDepth.setText( _( "Bend Depth" ) );
lblBendDepth.setMnemonic( KeyEvent.VK_B, txtBendDepth );
lblBendLength.setText( _( "Bend Length" ) );
lblBendLength.setMnemonic( KeyEvent.VK_L, txtBendLength );
chkUpPortamento.setText( _( "Add portamento in rising movement" ) );
chkUpPortamento.setMnemonic( KeyEvent.VK_R );
chkDownPortamento.setText( _( "Add portamento in falling movement" ) );
chkDownPortamento.setMnemonic( KeyEvent.VK_F );
groupAttack.setTitle( _( "Attack Control (VOCALOID1)" ) );
groupDynamicsControl.setTitle( _( "Dynamics Control (VOCALOID2)" ) );
lblDecay.setText( _( "Decay" ) );
lblDecay.setMnemonic( KeyEvent.VK_D, txtDecay );
lblAccent.setText( _( "Accent" ) );
lblAccent.setMnemonic( KeyEvent.VK_A, txtAccent );
btnOK.setText( _( "OK" ) );
btnCancel.setText( _( "Cancel" ) );
#if !JAVA
lblTemplate.Left = comboTemplate.Left - lblTemplate.Width;
#endif
setTitle( _( "Expression control property" ) );
}
public int getPMBendDepth()
{
return trackBendDepth.getValue();
}
public void setPMBendDepth( int value )
{
trackBendDepth.setValue( value );
txtBendDepth.setText( value + "" );
}
public int getPMBendLength()
{
return trackBendLength.getValue();
}
public void setPMBendLength( int value )
{
trackBendLength.setValue( value );
txtBendLength.setText( value + "" );
}
public int getPMbPortamentoUse()
{
int ret = 0;
if ( chkUpPortamento.isSelected() ) {
ret += 1;
}
if ( chkDownPortamento.isSelected() ) {
ret += 2;
}
return ret;
}
public void setPMbPortamentoUse( int value )
{
if ( value % 2 == 1 ) {
chkUpPortamento.setSelected( true );
} else {
chkUpPortamento.setSelected( false );
}
if ( value >= 2 ) {
chkDownPortamento.setSelected( true );
} else {
chkDownPortamento.setSelected( false );
}
}
public int getDEMdecGainRate()
{
return trackDecay.getValue();
}
public void setDEMdecGainRate( int value )
{
trackDecay.setValue( value );
txtDecay.setText( value + "" );
}
public int getDEMaccent()
{
return trackAccent.getValue();
}
public void setDEMaccent( int value )
{
trackAccent.setValue( value );
txtAccent.setText( value + "" );
}
public boolean getApplyCurrentTrack()
{
return m_apply_current_track;
}
#endregion
#region helper methods
private static String _( String id )
{
return Messaging.getMessage( id );
}
private void registerEventHandlers()
{
txtBendLength.TextChanged += new BEventHandler( txtBendLength_TextChanged );
txtBendDepth.TextChanged += new BEventHandler( txtBendDepth_TextChanged );
trackBendLength.ValueChanged += new BEventHandler( trackBendLength_Scroll );
trackBendDepth.ValueChanged += new BEventHandler( trackBendDepth_Scroll );
txtAccent.TextChanged += new BEventHandler( txtAccent_TextChanged );
txtDecay.TextChanged += new BEventHandler( txtDecay_TextChanged );
trackAccent.ValueChanged += new BEventHandler( trackAccent_Scroll );
trackDecay.ValueChanged += new BEventHandler( trackDecay_Scroll );
btnOK.Click += new BEventHandler( btnOK_Click );
comboTemplate.SelectedIndexChanged += new BEventHandler( comboBox1_SelectedIndexChanged );
txtDepth.TextChanged += new BEventHandler( txtDepth_TextChanged );
txtDuration.TextChanged += new BEventHandler( txtDuration_TextChanged );
trackDepth.ValueChanged += new BEventHandler( trackDepth_Scroll );
trackDuration.ValueChanged += new BEventHandler( trackDuration_Scroll );
btnCancel.Click += new BEventHandler( btnCancel_Click );
}
private void setResources()
{
}
#endregion
#region event handlers
public void comboAttackTemplate_SelectedIndexChanged( Object sender, BEventArgs e )
{
int index = comboAttackTemplate.getSelectedIndex();
if ( index < 0 ) {
return;
}
if ( index == 0 ) {
m_note_head_handle = null;
txtDuration.setEnabled( false );
trackDuration.setEnabled( false );
txtDepth.setEnabled( false );
trackDepth.setEnabled( false );
return;
}
txtDuration.setEnabled( true );
trackDuration.setEnabled( true );
txtDepth.setEnabled( true );
trackDepth.setEnabled( true );
NoteHeadHandle aconfig = (NoteHeadHandle)comboAttackTemplate.getSelectedItem();
if ( m_note_head_handle == null ) {
txtDuration.setText( aconfig.getDuration() + "" );
txtDepth.setText( aconfig.getDepth() + "" );
}
m_note_head_handle = (NoteHeadHandle)aconfig.clone();
m_note_head_handle.setDuration( trackDuration.getValue() );
m_note_head_handle.setDepth( trackDepth.getValue() );
}
public void trackBendDepth_Scroll( Object sender, BEventArgs e )
{
String s = trackBendDepth.getValue() + "";
if( !str.compare( s, txtBendDepth.getText() ) ){
txtBendDepth.setText( s );
}
}
public void txtBendDepth_TextChanged( Object sender, BEventArgs e )
{
try {
int draft = str.toi( txtBendDepth.getText() );
if ( draft < trackBendDepth.getMinimum() ) {
draft = trackBendDepth.getMinimum();
txtBendDepth.setText( draft + "" );
} else if ( trackBendDepth.getMaximum() < draft ) {
draft = trackBendDepth.getMaximum();
txtBendDepth.setText( draft + "" );
}
if ( draft != trackBendDepth.getValue() ) {
trackBendDepth.setValue( draft );
}
} catch ( Exception ex ) {
Logger.write( typeof( FormNoteExpressionConfig ) + ".txtBendDepth_TextChanged; ex=" + ex + "\n" );
}
}
public void trackBendLength_Scroll( Object sender, BEventArgs e )
{
String s = trackBendLength.getValue() + "";
if( !str.compare( s, txtBendLength.getText() ) ){
txtBendLength.setText( s );
}
}
public void txtBendLength_TextChanged( Object sender, BEventArgs e )
{
try {
int draft = str.toi( txtBendLength.getText() );
if ( draft < trackBendLength.getMinimum() ) {
draft = trackBendLength.getMinimum();
txtBendLength.setText( draft + "" );
} else if ( trackBendLength.getMaximum() < draft ) {
draft = trackBendLength.getMaximum();
txtBendLength.setText( draft + "" );
}
if ( draft != trackBendLength.getValue() ) {
trackBendLength.setValue( draft );
}
} catch ( Exception ex ) {
Logger.write( typeof( FormNoteExpressionConfig ) + ".txtBendLength_TextChanged; ex=" + ex + "\n" );
}
}
public void trackDecay_Scroll( Object sender, BEventArgs e )
{
String s = trackDecay.getValue() + "";
if( !str.compare( s, txtDecay.getText() ) ){
txtDecay.setText( s );
}
}
public void txtDecay_TextChanged( Object sender, BEventArgs e )
{
try {
int draft = str.toi( txtDecay.getText() );
if ( draft < trackDecay.getMinimum() ) {
draft = trackDecay.getMinimum();
txtDecay.setText( draft + "" );
} else if ( trackDecay.getMaximum() < draft ) {
draft = trackDecay.getMaximum();
txtDecay.setText( draft + "" );
}
if ( draft != trackDecay.getValue() ) {
trackDecay.setValue( draft );
}
} catch ( Exception ex ) {
Logger.write( typeof( FormNoteExpressionConfig ) + ".txtDecay_TextChanged; ex=" + ex + "\n" );
}
}
public void trackAccent_Scroll( Object sender, BEventArgs e )
{
String s = trackAccent.getValue() + "";
if( !str.compare( s, txtAccent.getText() ) ){
txtAccent.setText( s );
}
}
public void txtAccent_TextChanged( Object sender, BEventArgs e )
{
try {
int draft = str.toi( txtAccent.getText() );
if ( draft < trackAccent.getMinimum() ) {
draft = trackAccent.getMinimum();
txtAccent.setText( draft + "" );
} else if ( trackAccent.getMaximum() < draft ) {
draft = trackAccent.getMaximum();
txtAccent.setText( draft + "" );
}
if ( draft != trackAccent.getValue() ) {
trackAccent.setValue( draft );
}
} catch ( Exception ex ) {
Logger.write( typeof( FormNoteExpressionConfig ) + ".txtAccent_TextChanged; ex=" + ex + "\n" );
}
}
public void btnOK_Click( Object sender, BEventArgs e )
{
setDialogResult( BDialogResult.OK );
}
public void comboBox1_SelectedIndexChanged( Object sender, BEventArgs e )
{
int index = comboTemplate.getSelectedIndex() - 1;
if( index < 0 || 4 < index ){
return;
}
int[] pm_bend_depth = new int[]{ 8, 8, 8, 20, 20 };
int[] pm_bend_length = new int[]{ 0, 0, 0, 0, 0 };
int[] pmb_portamento_use = new int[]{ 0, 0, 0, 3, 3 };
int[] dem_dec_gain_rate = new int[]{ 50, 50, 70, 50, 50 };
int[] dem_accent = new int[]{ 50, 68, 80, 42, 25 };
setPMBendDepth( pm_bend_depth[index] );
setPMBendLength( pm_bend_length[index] );
setPMbPortamentoUse( pmb_portamento_use[index] );
setDEMdecGainRate( dem_dec_gain_rate[index] );
setDEMaccent( dem_accent[index] );
}
public void btnApply_Click( Object sender, BEventArgs e )
{
if ( AppManager.showMessageBox( _( "Would you like to change singer style for all events?" ),
FormMain._APP_NAME,
org.kbinani.windows.forms.Utility.MSGBOX_YES_NO_OPTION,
org.kbinani.windows.forms.Utility.MSGBOX_WARNING_MESSAGE ) == BDialogResult.YES ) {
m_apply_current_track = true;
setDialogResult( BDialogResult.OK );
}
}
public void trackDuration_Scroll( Object sender, BEventArgs e )
{
String s = trackDuration.getValue() + "";
if( !str.compare( s, txtDuration.getText() ) ){
txtDuration.setText( s );
}
if ( m_note_head_handle != null ) {
m_note_head_handle.setDuration( trackDuration.getValue() );
}
}
public void trackDepth_Scroll( Object sender, BEventArgs e )
{
String s = trackDepth.getValue() + "";
if( !str.compare( s, txtDepth.getText() ) ){
txtDepth.setText( s );
}
if ( m_note_head_handle != null ) {
m_note_head_handle.setDepth( trackDepth.getValue() );
}
}
public void txtDuration_TextChanged( Object sender, BEventArgs e )
{
try {
int draft = str.toi( txtDuration.getText() );
if ( draft < trackDuration.getMinimum() ) {
draft = trackDuration.getMinimum();
txtDuration.setText( draft + "" );
} else if ( trackDuration.getMaximum() < draft ) {
draft = trackDuration.getMaximum();
txtDuration.setText( draft + "" );
}
if ( draft != trackDuration.getValue() ) {
trackDuration.setValue( draft );
}
if ( m_note_head_handle != null ) {
m_note_head_handle.setDuration( draft );
}
} catch ( Exception ex ) {
Logger.write( typeof( FormNoteExpressionConfig ) + ".txtDuration_TextChanged; ex=" + ex + "\n" );
#if JAVA
ex.printStackTrace();
#endif
}
}
public void txtDepth_TextChanged( Object sender, BEventArgs e )
{
try {
int draft = str.toi( txtDepth.getText() );
if ( draft < trackDepth.getMinimum() ) {
draft = trackDepth.getMinimum();
txtDepth.setText( draft + "" );
} else if ( trackDepth.getMaximum() < draft ) {
draft = trackDepth.getMaximum();
txtDepth.setText( draft + "" );
}
if ( draft != trackDepth.getValue() ) {
trackDepth.setValue( draft );
}
if ( m_note_head_handle != null ) {
m_note_head_handle.setDepth( trackDepth.getValue() );
}
} catch ( Exception ex ) {
Logger.write( typeof( FormNoteExpressionConfig ) + ".txtDepth_TextChanged; ex=" + ex + "\n" );
#if JAVA
ex.printStackTrace();
#endif
}
}
public void btnCancel_Click( Object sender, BEventArgs e )
{
setDialogResult( BDialogResult.CANCEL );
}
#endregion
#region UI implementation
#if JAVA
#region UI Impl for Java
//INCLUDE-SECTION FIELD ../BuildJavaUI/src/org/kbinani/cadencii/FormNoteExpressionConfig.java
//INCLUDE-SECTION METHOD ../BuildJavaUI/src/org/kbinani/cadencii/FormNoteExpressionConfig.java
#endregion
#else
#region UI Impl for C#
/// <summary>
/// 必要なデザイナ変数です。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 使用中のリソースをすべてクリーンアップします。
/// </summary>
/// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
protected override void Dispose( boolean disposing )
{
if ( disposing && (components != null) ) {
components.Dispose();
}
base.Dispose( disposing );
}
#region Windows フォーム デザイナで生成されたコード
/// <summary>
/// デザイナ サポートに必要なメソッドです。このメソッドの内容を
/// コード エディタで変更しないでください。
/// </summary>
private void InitializeComponent()
{
this.groupPitchControl = new BGroupBox();
this.label5 = new BLabel();
this.label4 = new BLabel();
this.txtBendLength = new org.kbinani.cadencii.NumberTextBox();
this.txtBendDepth = new org.kbinani.cadencii.NumberTextBox();
this.trackBendLength = new BSlider();
this.trackBendDepth = new BSlider();
this.chkDownPortamento = new BCheckBox();
this.chkUpPortamento = new BCheckBox();
this.lblBendLength = new BLabel();
this.lblBendDepth = new BLabel();
this.groupDynamicsControl = new BGroupBox();
this.label7 = new BLabel();
this.label6 = new BLabel();
this.txtAccent = new org.kbinani.cadencii.NumberTextBox();
this.txtDecay = new org.kbinani.cadencii.NumberTextBox();
this.trackAccent = new BSlider();
this.trackDecay = new BSlider();
this.lblAccent = new BLabel();
this.lblDecay = new BLabel();
this.lblTemplate = new BLabel();
this.btnCancel = new BButton();
this.btnOK = new BButton();
this.comboTemplate = new BComboBox();
this.groupAttack = new BGroupBox();
this.lblAttackTemplate = new BLabel();
this.comboAttackTemplate = new BComboBox();
this.txtDepth = new org.kbinani.cadencii.NumberTextBox();
this.txtDuration = new org.kbinani.cadencii.NumberTextBox();
this.trackDepth = new BSlider();
this.trackDuration = new BSlider();
this.lblDepth = new BLabel();
this.lblDuration = new BLabel();
this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
this.panelVocaloid2Template = new BPanel();
this.panelButtons = new BPanel();
this.groupPitchControl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trackBendLength)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBendDepth)).BeginInit();
this.groupDynamicsControl.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trackAccent)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackDecay)).BeginInit();
this.groupAttack.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trackDepth)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackDuration)).BeginInit();
this.flowLayoutPanel.SuspendLayout();
this.panelVocaloid2Template.SuspendLayout();
this.panelButtons.SuspendLayout();
this.SuspendLayout();
//
// groupPitchControl
//
this.groupPitchControl.Controls.Add( this.label5 );
this.groupPitchControl.Controls.Add( this.label4 );
this.groupPitchControl.Controls.Add( this.txtBendLength );
this.groupPitchControl.Controls.Add( this.txtBendDepth );
this.groupPitchControl.Controls.Add( this.trackBendLength );
this.groupPitchControl.Controls.Add( this.trackBendDepth );
this.groupPitchControl.Controls.Add( this.chkDownPortamento );
this.groupPitchControl.Controls.Add( this.chkUpPortamento );
this.groupPitchControl.Controls.Add( this.lblBendLength );
this.groupPitchControl.Controls.Add( this.lblBendDepth );
this.groupPitchControl.Location = new System.Drawing.Point( 3, 38 );
this.groupPitchControl.Name = "groupPitchControl";
this.groupPitchControl.Size = new System.Drawing.Size( 367, 130 );
this.groupPitchControl.TabIndex = 0;
this.groupPitchControl.TabStop = false;
this.groupPitchControl.Text = "Pitch Control (VOCALOID2)";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point( 345, 42 );
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size( 11, 12 );
this.label5.TabIndex = 9;
this.label5.Text = "%";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point( 345, 16 );
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size( 11, 12 );
this.label4.TabIndex = 8;
this.label4.Text = "%";
//
// txtBendLength
//
this.txtBendLength.BackColor = System.Drawing.SystemColors.Window;
this.txtBendLength.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtBendLength.Location = new System.Drawing.Point( 300, 39 );
this.txtBendLength.Name = "txtBendLength";
this.txtBendLength.Size = new System.Drawing.Size( 39, 19 );
this.txtBendLength.TabIndex = 5;
this.txtBendLength.Text = "0";
this.txtBendLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtBendLength.Type = org.kbinani.cadencii.NumberTextBox.ValueType.Integer;
//
// txtBendDepth
//
this.txtBendDepth.BackColor = System.Drawing.SystemColors.Window;
this.txtBendDepth.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtBendDepth.Location = new System.Drawing.Point( 300, 13 );
this.txtBendDepth.Name = "txtBendDepth";
this.txtBendDepth.Size = new System.Drawing.Size( 39, 19 );
this.txtBendDepth.TabIndex = 2;
this.txtBendDepth.Text = "8";
this.txtBendDepth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtBendDepth.Type = org.kbinani.cadencii.NumberTextBox.ValueType.Integer;
//
// trackBendLength
//
this.trackBendLength.AutoSize = false;
this.trackBendLength.Location = new System.Drawing.Point( 138, 40 );
this.trackBendLength.Maximum = 100;
this.trackBendLength.Name = "trackBendLength";
this.trackBendLength.Size = new System.Drawing.Size( 156, 18 );
this.trackBendLength.TabIndex = 4;
this.trackBendLength.TickFrequency = 10;
//
// trackBendDepth
//
this.trackBendDepth.AutoSize = false;
this.trackBendDepth.Location = new System.Drawing.Point( 138, 14 );
this.trackBendDepth.Maximum = 100;
this.trackBendDepth.Name = "trackBendDepth";
this.trackBendDepth.Size = new System.Drawing.Size( 156, 18 );
this.trackBendDepth.TabIndex = 1;
this.trackBendDepth.TickFrequency = 10;
this.trackBendDepth.Value = 8;
//
// chkDownPortamento
//
this.chkDownPortamento.AutoSize = true;
this.chkDownPortamento.Location = new System.Drawing.Point( 20, 96 );
this.chkDownPortamento.Name = "chkDownPortamento";
this.chkDownPortamento.Size = new System.Drawing.Size( 224, 16 );
this.chkDownPortamento.TabIndex = 7;
this.chkDownPortamento.Text = "Add portamento in falling movement(&F)";
this.chkDownPortamento.UseVisualStyleBackColor = true;
//
// chkUpPortamento
//
this.chkUpPortamento.AutoSize = true;
this.chkUpPortamento.Location = new System.Drawing.Point( 20, 71 );
this.chkUpPortamento.Name = "chkUpPortamento";
this.chkUpPortamento.Size = new System.Drawing.Size( 222, 16 );
this.chkUpPortamento.TabIndex = 6;
this.chkUpPortamento.Text = "Add portamento in rising movement(&R)";
this.chkUpPortamento.UseVisualStyleBackColor = true;
//
// lblBendLength
//
this.lblBendLength.AutoSize = true;
this.lblBendLength.Location = new System.Drawing.Point( 20, 46 );
this.lblBendLength.Name = "lblBendLength";
this.lblBendLength.Size = new System.Drawing.Size( 83, 12 );
this.lblBendLength.TabIndex = 3;
this.lblBendLength.Text = "Bend Length(&L)";
//
// lblBendDepth
//
this.lblBendDepth.AutoSize = true;
this.lblBendDepth.Location = new System.Drawing.Point( 20, 20 );
this.lblBendDepth.Name = "lblBendDepth";
this.lblBendDepth.Size = new System.Drawing.Size( 81, 12 );
this.lblBendDepth.TabIndex = 0;
this.lblBendDepth.Text = "Bend Depth(&B)";
//
// groupDynamicsControl
//
this.groupDynamicsControl.Controls.Add( this.label7 );
this.groupDynamicsControl.Controls.Add( this.label6 );
this.groupDynamicsControl.Controls.Add( this.txtAccent );
this.groupDynamicsControl.Controls.Add( this.txtDecay );
this.groupDynamicsControl.Controls.Add( this.trackAccent );
this.groupDynamicsControl.Controls.Add( this.trackDecay );
this.groupDynamicsControl.Controls.Add( this.lblAccent );
this.groupDynamicsControl.Controls.Add( this.lblDecay );
this.groupDynamicsControl.Location = new System.Drawing.Point( 3, 174 );
this.groupDynamicsControl.Name = "groupDynamicsControl";
this.groupDynamicsControl.Size = new System.Drawing.Size( 367, 74 );
this.groupDynamicsControl.TabIndex = 1;
this.groupDynamicsControl.TabStop = false;
this.groupDynamicsControl.Text = "Dynamics Control (VOCALOID2)";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point( 345, 46 );
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size( 11, 12 );
this.label7.TabIndex = 11;
this.label7.Text = "%";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point( 345, 20 );
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size( 11, 12 );
this.label6.TabIndex = 10;
this.label6.Text = "%";
//
// txtAccent
//
this.txtAccent.BackColor = System.Drawing.SystemColors.Window;
this.txtAccent.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtAccent.Location = new System.Drawing.Point( 300, 43 );
this.txtAccent.Name = "txtAccent";
this.txtAccent.Size = new System.Drawing.Size( 39, 19 );
this.txtAccent.TabIndex = 13;
this.txtAccent.Text = "50";
this.txtAccent.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtAccent.Type = org.kbinani.cadencii.NumberTextBox.ValueType.Integer;
//
// txtDecay
//
this.txtDecay.BackColor = System.Drawing.SystemColors.Window;
this.txtDecay.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtDecay.Location = new System.Drawing.Point( 300, 17 );
this.txtDecay.Name = "txtDecay";
this.txtDecay.Size = new System.Drawing.Size( 39, 19 );
this.txtDecay.TabIndex = 10;
this.txtDecay.Text = "50";
this.txtDecay.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtDecay.Type = org.kbinani.cadencii.NumberTextBox.ValueType.Integer;
//
// trackAccent
//
this.trackAccent.AutoSize = false;
this.trackAccent.Location = new System.Drawing.Point( 138, 44 );
this.trackAccent.Maximum = 100;
this.trackAccent.Name = "trackAccent";
this.trackAccent.Size = new System.Drawing.Size( 156, 18 );
this.trackAccent.TabIndex = 12;
this.trackAccent.TickFrequency = 10;
this.trackAccent.Value = 50;
//
// trackDecay
//
this.trackDecay.AutoSize = false;
this.trackDecay.Location = new System.Drawing.Point( 138, 18 );
this.trackDecay.Maximum = 100;
this.trackDecay.Name = "trackDecay";
this.trackDecay.Size = new System.Drawing.Size( 156, 18 );
this.trackDecay.TabIndex = 9;
this.trackDecay.TickFrequency = 10;
this.trackDecay.Value = 50;
//
// lblAccent
//
this.lblAccent.AutoSize = true;
this.lblAccent.Location = new System.Drawing.Point( 18, 50 );
this.lblAccent.Name = "lblAccent";
this.lblAccent.Size = new System.Drawing.Size( 57, 12 );
this.lblAccent.TabIndex = 11;
this.lblAccent.Text = "Accent(&A)";
//
// lblDecay
//
this.lblDecay.AutoSize = true;
this.lblDecay.Location = new System.Drawing.Point( 18, 24 );
this.lblDecay.Name = "lblDecay";
this.lblDecay.Size = new System.Drawing.Size( 53, 12 );
this.lblDecay.TabIndex = 8;
this.lblDecay.Text = "Decay(&D)";
//
// lblTemplate
//
this.lblTemplate.AutoSize = true;
this.lblTemplate.Location = new System.Drawing.Point( 165, 6 );
this.lblTemplate.Name = "lblTemplate";
this.lblTemplate.Size = new System.Drawing.Size( 67, 12 );
this.lblTemplate.TabIndex = 2;
this.lblTemplate.Text = "Template(&T)";
//
// btnCancel
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point( 285, 12 );
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size( 78, 23 );
this.btnCancel.TabIndex = 16;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
//
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.Location = new System.Drawing.Point( 198, 12 );
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size( 78, 23 );
this.btnOK.TabIndex = 15;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
//
// comboTemplate
//
this.comboTemplate.FormattingEnabled = true;
this.comboTemplate.Items.AddRange( new Object[] {
"[Select a template]",
"normal",
"accent",
"strong accent",
"legato",
"slow legato"} );
this.comboTemplate.Location = new System.Drawing.Point( 242, 3 );
this.comboTemplate.Name = "comboTemplate";
this.comboTemplate.Size = new System.Drawing.Size( 121, 20 );
this.comboTemplate.TabIndex = 0;
this.comboTemplate.Text = "[Select a template]";
//
// groupAttack
//
this.groupAttack.Controls.Add( this.lblAttackTemplate );
this.groupAttack.Controls.Add( this.comboAttackTemplate );
this.groupAttack.Controls.Add( this.txtDepth );
this.groupAttack.Controls.Add( this.txtDuration );
this.groupAttack.Controls.Add( this.trackDepth );
this.groupAttack.Controls.Add( this.trackDuration );
this.groupAttack.Controls.Add( this.lblDepth );
this.groupAttack.Controls.Add( this.lblDuration );
this.groupAttack.Location = new System.Drawing.Point( 3, 254 );
this.groupAttack.Name = "groupAttack";
this.groupAttack.Size = new System.Drawing.Size( 367, 107 );
this.groupAttack.TabIndex = 17;
this.groupAttack.TabStop = false;
this.groupAttack.Text = "Attack (VOCALOID1)";
//
// lblAttackTemplate
//
this.lblAttackTemplate.AutoSize = true;
this.lblAttackTemplate.Location = new System.Drawing.Point( 18, 23 );
this.lblAttackTemplate.Name = "lblAttackTemplate";
this.lblAttackTemplate.Size = new System.Drawing.Size( 105, 12 );
this.lblAttackTemplate.TabIndex = 2;
this.lblAttackTemplate.Text = "Attack Variation(&V)";
//
// comboAttackTemplate
//
this.comboAttackTemplate.FormattingEnabled = true;
this.comboAttackTemplate.Location = new System.Drawing.Point( 143, 20 );
this.comboAttackTemplate.Name = "comboAttackTemplate";
this.comboAttackTemplate.Size = new System.Drawing.Size( 121, 20 );
this.comboAttackTemplate.TabIndex = 0;
this.comboAttackTemplate.Text = "[Non Attack]";
//
// txtDepth
//
this.txtDepth.BackColor = System.Drawing.SystemColors.Window;
this.txtDepth.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtDepth.Location = new System.Drawing.Point( 300, 72 );
this.txtDepth.Name = "txtDepth";
this.txtDepth.Size = new System.Drawing.Size( 39, 19 );
this.txtDepth.TabIndex = 13;
this.txtDepth.Text = "64";
this.txtDepth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtDepth.Type = org.kbinani.cadencii.NumberTextBox.ValueType.Integer;
//
// txtDuration
//
this.txtDuration.BackColor = System.Drawing.SystemColors.Window;
this.txtDuration.ForeColor = System.Drawing.SystemColors.WindowText;
this.txtDuration.Location = new System.Drawing.Point( 300, 46 );
this.txtDuration.Name = "txtDuration";
this.txtDuration.Size = new System.Drawing.Size( 39, 19 );
this.txtDuration.TabIndex = 10;
this.txtDuration.Text = "64";
this.txtDuration.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.txtDuration.Type = org.kbinani.cadencii.NumberTextBox.ValueType.Integer;
//
// trackDepth
//
this.trackDepth.AutoSize = false;
this.trackDepth.Location = new System.Drawing.Point( 138, 69 );
this.trackDepth.Maximum = 127;
this.trackDepth.Name = "trackDepth";
this.trackDepth.Size = new System.Drawing.Size( 156, 18 );
this.trackDepth.TabIndex = 12;
this.trackDepth.TickFrequency = 10;
this.trackDepth.Value = 64;
//
// trackDuration
//
this.trackDuration.AutoSize = false;
this.trackDuration.Location = new System.Drawing.Point( 138, 43 );
this.trackDuration.Maximum = 127;
this.trackDuration.Name = "trackDuration";
this.trackDuration.Size = new System.Drawing.Size( 156, 18 );
this.trackDuration.TabIndex = 9;
this.trackDuration.TickFrequency = 10;
this.trackDuration.Value = 64;
//
// lblDepth
//
this.lblDepth.AutoSize = true;
this.lblDepth.Location = new System.Drawing.Point( 18, 75 );
this.lblDepth.Name = "lblDepth";
this.lblDepth.Size = new System.Drawing.Size( 51, 12 );
this.lblDepth.TabIndex = 11;
this.lblDepth.Text = "Depth(&D)";
//
// lblDuration
//
this.lblDuration.AutoSize = true;
this.lblDuration.Location = new System.Drawing.Point( 18, 49 );
this.lblDuration.Name = "lblDuration";
this.lblDuration.Size = new System.Drawing.Size( 64, 12 );
this.lblDuration.TabIndex = 8;
this.lblDuration.Text = "Duration(&D)";
//
// flowLayoutPanel
//
this.flowLayoutPanel.AutoSize = true;
this.flowLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.flowLayoutPanel.Controls.Add( this.panelVocaloid2Template );
this.flowLayoutPanel.Controls.Add( this.groupPitchControl );
this.flowLayoutPanel.Controls.Add( this.groupDynamicsControl );
this.flowLayoutPanel.Controls.Add( this.groupAttack );
this.flowLayoutPanel.Controls.Add( this.panelButtons );
this.flowLayoutPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
this.flowLayoutPanel.Location = new System.Drawing.Point( 9, 9 );
this.flowLayoutPanel.Margin = new System.Windows.Forms.Padding( 0 );
this.flowLayoutPanel.Name = "flowLayoutPanel";
this.flowLayoutPanel.Size = new System.Drawing.Size( 373, 418 );
this.flowLayoutPanel.TabIndex = 18;
//
// panelVocaloid2Template
//
this.panelVocaloid2Template.Controls.Add( this.comboTemplate );
this.panelVocaloid2Template.Controls.Add( this.lblTemplate );
this.panelVocaloid2Template.Location = new System.Drawing.Point( 3, 3 );
this.panelVocaloid2Template.Name = "panelVocaloid2Template";
this.panelVocaloid2Template.Size = new System.Drawing.Size( 367, 29 );
this.panelVocaloid2Template.TabIndex = 19;
//
// panelButtons
//
this.panelButtons.Controls.Add( this.btnCancel );
this.panelButtons.Controls.Add( this.btnOK );
this.panelButtons.Location = new System.Drawing.Point( 3, 367 );
this.panelButtons.Name = "panelButtons";
this.panelButtons.Size = new System.Drawing.Size( 367, 48 );
this.panelButtons.TabIndex = 19;
//
// FormNoteExpressionConfig
//
this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 12F );
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size( 390, 514 );
this.Controls.Add( this.flowLayoutPanel );
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size( 6000, 6000 );
this.MinimizeBox = false;
this.Name = "FormNoteExpressionConfig";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Default Singer Style";
this.groupPitchControl.ResumeLayout( false );
this.groupPitchControl.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trackBendLength)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackBendDepth)).EndInit();
this.groupDynamicsControl.ResumeLayout( false );
this.groupDynamicsControl.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trackAccent)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackDecay)).EndInit();
this.groupAttack.ResumeLayout( false );
this.groupAttack.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trackDepth)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trackDuration)).EndInit();
this.flowLayoutPanel.ResumeLayout( false );
this.panelVocaloid2Template.ResumeLayout( false );
this.panelVocaloid2Template.PerformLayout();
this.panelButtons.ResumeLayout( false );
this.ResumeLayout( false );
this.PerformLayout();
}
#endregion
private BGroupBox groupPitchControl;
private BGroupBox groupDynamicsControl;
private BLabel lblBendDepth;
private BLabel lblTemplate;
private BLabel lblBendLength;
private BCheckBox chkDownPortamento;
private BCheckBox chkUpPortamento;
private BSlider trackBendDepth;
private BSlider trackBendLength;
private BSlider trackAccent;
private BSlider trackDecay;
private BLabel lblAccent;
private BLabel lblDecay;
private NumberTextBox txtBendLength;
private NumberTextBox txtBendDepth;
private NumberTextBox txtAccent;
private NumberTextBox txtDecay;
private BLabel label5;
private BLabel label4;
private BLabel label7;
private BLabel label6;
private BButton btnCancel;
private BButton btnOK;
private BComboBox comboTemplate;
private BGroupBox groupAttack;
private NumberTextBox txtDepth;
private NumberTextBox txtDuration;
private BSlider trackDepth;
private BSlider trackDuration;
private BLabel lblDepth;
private BLabel lblDuration;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel;
private BPanel panelButtons;
private BPanel panelVocaloid2Template;
private BComboBox comboAttackTemplate;
private BLabel lblAttackTemplate;
#endregion
#endif
#endregion
}
#if !JAVA
}
#endif
|