home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / DirectX_MI215397622009.psc / VBSoundPro.frm < prev   
Text File  |  2009-05-29  |  125KB  |  4,065 lines

  1. VERSION 5.00
  2. Object = "{C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.1#0"; "mci32.ocx"
  3. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  4. Begin VB.Form Form1 
  5.    Caption         =   "VB Sound Pro Ver. 1.6"
  6.    ClientHeight    =   8310
  7.    ClientLeft      =   60
  8.    ClientTop       =   675
  9.    ClientWidth     =   11790
  10.    Icon            =   "VBSoundPro.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   8310
  13.    ScaleWidth      =   11790
  14.    StartUpPosition =   2  'CenterScreen
  15.    Begin VB.Frame Frame11 
  16.       Caption         =   "Presets"
  17.       Height          =   4095
  18.       Left            =   10200
  19.       TabIndex        =   191
  20.       Top             =   120
  21.       Width           =   1215
  22.       Begin VB.TextBox Text37 
  23.          BackColor       =   &H00FF0000&
  24.          Height          =   195
  25.          Left            =   720
  26.          TabIndex        =   221
  27.          Top             =   3720
  28.          Width           =   255
  29.       End
  30.       Begin VB.TextBox Text36 
  31.          BackColor       =   &H00FF0000&
  32.          Height          =   195
  33.          Left            =   720
  34.          TabIndex        =   220
  35.          Top             =   3480
  36.          Width           =   255
  37.       End
  38.       Begin VB.TextBox Text35 
  39.          BackColor       =   &H00FF0000&
  40.          Height          =   195
  41.          Left            =   720
  42.          TabIndex        =   219
  43.          Top             =   3240
  44.          Width           =   255
  45.       End
  46.       Begin VB.TextBox Text34 
  47.          BackColor       =   &H00FF0000&
  48.          Height          =   195
  49.          Left            =   720
  50.          TabIndex        =   218
  51.          Top             =   3000
  52.          Width           =   255
  53.       End
  54.       Begin VB.TextBox Text33 
  55.          BackColor       =   &H00FF0000&
  56.          Height          =   195
  57.          Left            =   720
  58.          TabIndex        =   217
  59.          Top             =   2760
  60.          Width           =   255
  61.       End
  62.       Begin VB.TextBox Text32 
  63.          BackColor       =   &H00FF0000&
  64.          Height          =   195
  65.          Left            =   720
  66.          TabIndex        =   216
  67.          Top             =   2520
  68.          Width           =   255
  69.       End
  70.       Begin VB.TextBox Text31 
  71.          BackColor       =   &H00FF0000&
  72.          Height          =   195
  73.          Left            =   720
  74.          TabIndex        =   215
  75.          Top             =   2280
  76.          Width           =   255
  77.       End
  78.       Begin VB.TextBox Text30 
  79.          BackColor       =   &H00FF0000&
  80.          Height          =   195
  81.          Left            =   720
  82.          TabIndex        =   214
  83.          Top             =   2040
  84.          Width           =   255
  85.       End
  86.       Begin VB.TextBox Text29 
  87.          BackColor       =   &H00FF0000&
  88.          Height          =   195
  89.          Left            =   720
  90.          TabIndex        =   213
  91.          Top             =   1800
  92.          Width           =   255
  93.       End
  94.       Begin VB.TextBox Text28 
  95.          BackColor       =   &H00FF0000&
  96.          Height          =   195
  97.          Left            =   720
  98.          TabIndex        =   212
  99.          Top             =   1560
  100.          Width           =   255
  101.       End
  102.       Begin VB.TextBox Text27 
  103.          BackColor       =   &H00FF0000&
  104.          Height          =   195
  105.          Left            =   720
  106.          TabIndex        =   211
  107.          Top             =   1320
  108.          Width           =   255
  109.       End
  110.       Begin VB.TextBox Text26 
  111.          BackColor       =   &H00FF0000&
  112.          Height          =   195
  113.          Left            =   720
  114.          TabIndex        =   210
  115.          Top             =   1080
  116.          Width           =   255
  117.       End
  118.       Begin VB.TextBox Text25 
  119.          BackColor       =   &H00FF0000&
  120.          Height          =   195
  121.          Left            =   720
  122.          TabIndex        =   209
  123.          Top             =   840
  124.          Width           =   255
  125.       End
  126.       Begin VB.TextBox Text24 
  127.          BackColor       =   &H00FF0000&
  128.          Height          =   195
  129.          Left            =   720
  130.          TabIndex        =   208
  131.          Top             =   600
  132.          Width           =   255
  133.       End
  134.       Begin VB.TextBox Text23 
  135.          BackColor       =   &H00FF0000&
  136.          Height          =   195
  137.          Left            =   720
  138.          TabIndex        =   193
  139.          Top             =   360
  140.          Width           =   255
  141.       End
  142.       Begin VB.Label Label34 
  143.          Caption         =   "P15"
  144.          Height          =   255
  145.          Left            =   240
  146.          TabIndex        =   207
  147.          Top             =   3720
  148.          Width           =   375
  149.       End
  150.       Begin VB.Label Label33 
  151.          Caption         =   "P14"
  152.          Height          =   255
  153.          Left            =   240
  154.          TabIndex        =   206
  155.          Top             =   3480
  156.          Width           =   375
  157.       End
  158.       Begin VB.Label Label32 
  159.          Caption         =   "P13"
  160.          Height          =   255
  161.          Left            =   240
  162.          TabIndex        =   205
  163.          Top             =   3240
  164.          Width           =   375
  165.       End
  166.       Begin VB.Label Label31 
  167.          Caption         =   "P12"
  168.          Height          =   255
  169.          Left            =   240
  170.          TabIndex        =   204
  171.          Top             =   3000
  172.          Width           =   375
  173.       End
  174.       Begin VB.Label Label30 
  175.          Caption         =   "P11"
  176.          Height          =   255
  177.          Left            =   240
  178.          TabIndex        =   203
  179.          Top             =   2760
  180.          Width           =   375
  181.       End
  182.       Begin VB.Label Label29 
  183.          Caption         =   "P10"
  184.          Height          =   255
  185.          Left            =   240
  186.          TabIndex        =   202
  187.          Top             =   2520
  188.          Width           =   375
  189.       End
  190.       Begin VB.Label Label28 
  191.          Caption         =   "P09"
  192.          Height          =   255
  193.          Left            =   240
  194.          TabIndex        =   201
  195.          Top             =   2280
  196.          Width           =   375
  197.       End
  198.       Begin VB.Label Label27 
  199.          Caption         =   "P08"
  200.          Height          =   255
  201.          Left            =   240
  202.          TabIndex        =   200
  203.          Top             =   2040
  204.          Width           =   375
  205.       End
  206.       Begin VB.Label Label26 
  207.          Caption         =   "P07"
  208.          Height          =   255
  209.          Left            =   240
  210.          TabIndex        =   199
  211.          Top             =   1800
  212.          Width           =   375
  213.       End
  214.       Begin VB.Label Label25 
  215.          Caption         =   "P06"
  216.          Height          =   255
  217.          Left            =   240
  218.          TabIndex        =   198
  219.          Top             =   1560
  220.          Width           =   375
  221.       End
  222.       Begin VB.Label Label24 
  223.          Caption         =   "P05"
  224.          Height          =   255
  225.          Left            =   240
  226.          TabIndex        =   197
  227.          Top             =   1320
  228.          Width           =   375
  229.       End
  230.       Begin VB.Label Label23 
  231.          Caption         =   "P04"
  232.          Height          =   255
  233.          Left            =   240
  234.          TabIndex        =   196
  235.          Top             =   1080
  236.          Width           =   375
  237.       End
  238.       Begin VB.Label Label22 
  239.          Caption         =   "P03"
  240.          Height          =   255
  241.          Left            =   240
  242.          TabIndex        =   195
  243.          Top             =   840
  244.          Width           =   375
  245.       End
  246.       Begin VB.Label Label21 
  247.          Caption         =   "P02"
  248.          Height          =   255
  249.          Left            =   240
  250.          TabIndex        =   194
  251.          Top             =   600
  252.          Width           =   375
  253.       End
  254.       Begin VB.Label Label20 
  255.          Caption         =   "P01"
  256.          Height          =   255
  257.          Left            =   240
  258.          TabIndex        =   192
  259.          Top             =   360
  260.          Width           =   375
  261.       End
  262.    End
  263.    Begin VB.Frame Frame10 
  264.       Caption         =   "MiDi Sound Presets"
  265.       Height          =   615
  266.       Left            =   120
  267.       TabIndex        =   175
  268.       Top             =   7080
  269.       Width           =   11295
  270.       Begin VB.CommandButton Command40 
  271.          Caption         =   "P15"
  272.          Height          =   255
  273.          Left            =   10320
  274.          TabIndex        =   190
  275.          Top             =   240
  276.          Width           =   615
  277.       End
  278.       Begin VB.CommandButton Command39 
  279.          Caption         =   "P14"
  280.          Height          =   255
  281.          Left            =   9600
  282.          TabIndex        =   189
  283.          Top             =   240
  284.          Width           =   615
  285.       End
  286.       Begin VB.CommandButton Command38 
  287.          Caption         =   "P13"
  288.          Height          =   255
  289.          Left            =   8880
  290.          TabIndex        =   188
  291.          Top             =   240
  292.          Width           =   615
  293.       End
  294.       Begin VB.CommandButton Command37 
  295.          Caption         =   "P12"
  296.          Height          =   255
  297.          Left            =   8160
  298.          TabIndex        =   187
  299.          Top             =   240
  300.          Width           =   615
  301.       End
  302.       Begin VB.CommandButton Command36 
  303.          Caption         =   "P11"
  304.          Height          =   255
  305.          Left            =   7440
  306.          TabIndex        =   186
  307.          Top             =   240
  308.          Width           =   615
  309.       End
  310.       Begin VB.CommandButton Command35 
  311.          Caption         =   "P10"
  312.          Height          =   255
  313.          Left            =   6720
  314.          TabIndex        =   185
  315.          Top             =   240
  316.          Width           =   615
  317.       End
  318.       Begin VB.CommandButton Command34 
  319.          Caption         =   "P09"
  320.          Height          =   255
  321.          Left            =   6000
  322.          TabIndex        =   184
  323.          Top             =   240
  324.          Width           =   615
  325.       End
  326.       Begin VB.CommandButton Command33 
  327.          Caption         =   "P08"
  328.          Height          =   255
  329.          Left            =   5280
  330.          TabIndex        =   183
  331.          Top             =   240
  332.          Width           =   615
  333.       End
  334.       Begin VB.CommandButton Command32 
  335.          Caption         =   "P07"
  336.          Height          =   255
  337.          Left            =   4560
  338.          TabIndex        =   182
  339.          Top             =   240
  340.          Width           =   615
  341.       End
  342.       Begin VB.CommandButton Command31 
  343.          Caption         =   "P06"
  344.          Height          =   255
  345.          Left            =   3840
  346.          TabIndex        =   181
  347.          Top             =   240
  348.          Width           =   615
  349.       End
  350.       Begin VB.CommandButton Command30 
  351.          Caption         =   "P05"
  352.          Height          =   255
  353.          Left            =   3120
  354.          TabIndex        =   180
  355.          Top             =   240
  356.          Width           =   615
  357.       End
  358.       Begin VB.CommandButton Command29 
  359.          Caption         =   "P04"
  360.          Height          =   255
  361.          Left            =   2400
  362.          TabIndex        =   179
  363.          Top             =   240
  364.          Width           =   615
  365.       End
  366.       Begin VB.CommandButton Command28 
  367.          Caption         =   "P03"
  368.          Height          =   255
  369.          Left            =   1680
  370.          TabIndex        =   178
  371.          Top             =   240
  372.          Width           =   615
  373.       End
  374.       Begin VB.CommandButton Command27 
  375.          Caption         =   "P02"
  376.          Height          =   255
  377.          Left            =   960
  378.          TabIndex        =   177
  379.          Top             =   240
  380.          Width           =   615
  381.       End
  382.       Begin VB.CommandButton Command26 
  383.          Caption         =   "P01"
  384.          Height          =   255
  385.          Left            =   240
  386.          TabIndex        =   176
  387.          Top             =   240
  388.          Width           =   615
  389.       End
  390.    End
  391.    Begin VB.Frame Frame9 
  392.       Caption         =   "Status Lights"
  393.       Height          =   4095
  394.       Left            =   8640
  395.       TabIndex        =   140
  396.       Top             =   120
  397.       Width           =   1455
  398.       Begin VB.TextBox Text22 
  399.          BackColor       =   &H00FF0000&
  400.          Height          =   195
  401.          Left            =   1080
  402.          TabIndex        =   174
  403.          Top             =   3720
  404.          Width           =   255
  405.       End
  406.       Begin VB.TextBox Text21 
  407.          BackColor       =   &H00FF0000&
  408.          Height          =   195
  409.          Left            =   1080
  410.          TabIndex        =   173
  411.          Top             =   3480
  412.          Width           =   255
  413.       End
  414.       Begin VB.TextBox Text20 
  415.          BackColor       =   &H00FF0000&
  416.          Height          =   195
  417.          Left            =   1080
  418.          TabIndex        =   172
  419.          Top             =   3240
  420.          Width           =   255
  421.       End
  422.       Begin VB.TextBox Text19 
  423.          BackColor       =   &H00FF0000&
  424.          Height          =   195
  425.          Left            =   1080
  426.          TabIndex        =   171
  427.          Top             =   3000
  428.          Width           =   255
  429.       End
  430.       Begin VB.TextBox Text18 
  431.          BackColor       =   &H00FF0000&
  432.          Height          =   195
  433.          Left            =   1080
  434.          TabIndex        =   170
  435.          Top             =   2760
  436.          Width           =   255
  437.       End
  438.       Begin VB.TextBox Text17 
  439.          BackColor       =   &H00FF0000&
  440.          Height          =   195
  441.          Left            =   1080
  442.          TabIndex        =   169
  443.          Top             =   2520
  444.          Width           =   255
  445.       End
  446.       Begin VB.TextBox Text15 
  447.          BackColor       =   &H00FF0000&
  448.          Height          =   195
  449.          Left            =   1080
  450.          TabIndex        =   158
  451.          Top             =   2280
  452.          Width           =   255
  453.       End
  454.       Begin VB.TextBox Text14 
  455.          BackColor       =   &H00FF0000&
  456.          Height          =   195
  457.          Left            =   1080
  458.          TabIndex        =   156
  459.          Top             =   2040
  460.          Width           =   255
  461.       End
  462.       Begin VB.TextBox Text13 
  463.          BackColor       =   &H00FF0000&
  464.          Height          =   195
  465.          Left            =   1080
  466.          TabIndex        =   155
  467.          Top             =   1800
  468.          Width           =   255
  469.       End
  470.       Begin VB.TextBox Text12 
  471.          BackColor       =   &H00FF0000&
  472.          Height          =   195
  473.          Left            =   1080
  474.          TabIndex        =   152
  475.          Top             =   1560
  476.          Width           =   255
  477.       End
  478.       Begin VB.TextBox Text11 
  479.          BackColor       =   &H00FF0000&
  480.          Height          =   195
  481.          Left            =   1080
  482.          TabIndex        =   151
  483.          Top             =   1320
  484.          Width           =   255
  485.       End
  486.       Begin VB.TextBox Text10 
  487.          BackColor       =   &H00FF0000&
  488.          Height          =   195
  489.          Left            =   1080
  490.          TabIndex        =   148
  491.          Top             =   1080
  492.          Width           =   255
  493.       End
  494.       Begin VB.TextBox Text9 
  495.          BackColor       =   &H00FF0000&
  496.          Height          =   195
  497.          Left            =   1080
  498.          TabIndex        =   147
  499.          Top             =   840
  500.          Width           =   255
  501.       End
  502.       Begin VB.TextBox Text8 
  503.          BackColor       =   &H00FF0000&
  504.          Height          =   195
  505.          Left            =   1080
  506.          TabIndex        =   144
  507.          Top             =   600
  508.          Width           =   255
  509.       End
  510.       Begin VB.TextBox Text7 
  511.          BackColor       =   &H00FF0000&
  512.          Height          =   195
  513.          Left            =   1080
  514.          TabIndex        =   142
  515.          Top             =   360
  516.          Width           =   255
  517.       End
  518.       Begin VB.Label Label19 
  519.          Caption         =   "MCIClose"
  520.          Height          =   255
  521.          Left            =   120
  522.          TabIndex        =   168
  523.          Top             =   3720
  524.          Width           =   855
  525.       End
  526.       Begin VB.Label Label18 
  527.          Caption         =   "MCIOpen"
  528.          Height          =   255
  529.          Left            =   120
  530.          TabIndex        =   167
  531.          Top             =   3480
  532.          Width           =   855
  533.       End
  534.       Begin VB.Label Label17 
  535.          Caption         =   "SWCall"
  536.          Height          =   255
  537.          Left            =   120
  538.          TabIndex        =   166
  539.          Top             =   3240
  540.          Width           =   855
  541.       End
  542.       Begin VB.Label Label16 
  543.          Caption         =   "Song Stop"
  544.          Height          =   255
  545.          Left            =   120
  546.          TabIndex        =   165
  547.          Top             =   3000
  548.          Width           =   855
  549.       End
  550.       Begin VB.Label Label15 
  551.          Caption         =   "Song Play"
  552.          Height          =   255
  553.          Left            =   120
  554.          TabIndex        =   164
  555.          Top             =   2760
  556.          Width           =   855
  557.       End
  558.       Begin VB.Label Label14 
  559.          Caption         =   "Key Up"
  560.          Height          =   255
  561.          Left            =   120
  562.          TabIndex        =   163
  563.          Top             =   2520
  564.          Width           =   855
  565.       End
  566.       Begin VB.Label Label12 
  567.          Caption         =   "Key down"
  568.          Height          =   255
  569.          Left            =   120
  570.          TabIndex        =   157
  571.          Top             =   2280
  572.          Width           =   855
  573.       End
  574.       Begin VB.Label Label11 
  575.          Caption         =   "MCI Record"
  576.          Height          =   255
  577.          Left            =   120
  578.          TabIndex        =   154
  579.          Top             =   2040
  580.          Width           =   855
  581.       End
  582.       Begin VB.Label Label10 
  583.          Caption         =   "MCI Play"
  584.          Height          =   255
  585.          Left            =   120
  586.          TabIndex        =   153
  587.          Top             =   1800
  588.          Width           =   855
  589.       End
  590.       Begin VB.Label Label9 
  591.          Caption         =   "PlayBack"
  592.          Height          =   255
  593.          Left            =   120
  594.          TabIndex        =   150
  595.          Top             =   1560
  596.          Width           =   855
  597.       End
  598.       Begin VB.Label Label8 
  599.          Caption         =   "Record"
  600.          Height          =   255
  601.          Left            =   120
  602.          TabIndex        =   149
  603.          Top             =   1320
  604.          Width           =   855
  605.       End
  606.       Begin VB.Label Label7 
  607.          Caption         =   "MiDi Stop"
  608.          Height          =   255
  609.          Left            =   120
  610.          TabIndex        =   146
  611.          Top             =   1080
  612.          Width           =   855
  613.       End
  614.       Begin VB.Label Label6 
  615.          Caption         =   "MiDi Play"
  616.          Height          =   255
  617.          Left            =   120
  618.          TabIndex        =   145
  619.          Top             =   840
  620.          Width           =   855
  621.       End
  622.       Begin VB.Label Label5 
  623.          Caption         =   "Gen Off"
  624.          Height          =   255
  625.          Left            =   120
  626.          TabIndex        =   143
  627.          Top             =   600
  628.          Width           =   855
  629.       End
  630.       Begin VB.Label Label4 
  631.          Caption         =   "Gen On"
  632.          Height          =   255
  633.          Left            =   120
  634.          TabIndex        =   141
  635.          Top             =   360
  636.          Width           =   855
  637.       End
  638.    End
  639.    Begin VB.Timer tmrplayback 
  640.       Enabled         =   0   'False
  641.       Interval        =   500
  642.       Left            =   11400
  643.       Top             =   6840
  644.    End
  645.    Begin VB.Frame Frame8 
  646.       Caption         =   "KeyBoard Keys"
  647.       Height          =   1335
  648.       Left            =   120
  649.       TabIndex        =   68
  650.       Top             =   5640
  651.       Width           =   11295
  652.       Begin VB.CommandButton pkey 
  653.          BackColor       =   &H00404040&
  654.          Height          =   495
  655.          Index           =   70
  656.          Left            =   10320
  657.          Style           =   1  'Graphical
  658.          TabIndex        =   138
  659.          Top             =   240
  660.          Width           =   255
  661.       End
  662.       Begin VB.CommandButton pkey 
  663.          BackColor       =   &H00404040&
  664.          Height          =   495
  665.          Index           =   68
  666.          Left            =   10080
  667.          Style           =   1  'Graphical
  668.          TabIndex        =   136
  669.          Top             =   240
  670.          Width           =   255
  671.       End
  672.       Begin VB.CommandButton pkey 
  673.          BackColor       =   &H00404040&
  674.          Height          =   495
  675.          Index           =   66
  676.          Left            =   9840
  677.          Style           =   1  'Graphical
  678.          TabIndex        =   134
  679.          Top             =   240
  680.          Width           =   255
  681.       End
  682.       Begin VB.CommandButton pkey 
  683.          BackColor       =   &H00FFFFFF&
  684.          Height          =   975
  685.          Index           =   71
  686.          Left            =   10440
  687.          Style           =   1  'Graphical
  688.          TabIndex        =   139
  689.          Tag             =   "1"
  690.          Top             =   240
  691.          Width           =   255
  692.       End
  693.       Begin VB.CommandButton pkey 
  694.          BackColor       =   &H00FFFFFF&
  695.          Height          =   975
  696.          Index           =   69
  697.          Left            =   10200
  698.          Style           =   1  'Graphical
  699.          TabIndex        =   137
  700.          Tag             =   "1"
  701.          Top             =   240
  702.          Width           =   255
  703.       End
  704.       Begin VB.CommandButton pkey 
  705.          BackColor       =   &H00404040&
  706.          Height          =   495
  707.          Index           =   63
  708.          Left            =   9360
  709.          Style           =   1  'Graphical
  710.          TabIndex        =   131
  711.          Top             =   240
  712.          Width           =   255
  713.       End
  714.       Begin VB.CommandButton pkey 
  715.          BackColor       =   &H00404040&
  716.          Height          =   495
  717.          Index           =   61
  718.          Left            =   9120
  719.          Style           =   1  'Graphical
  720.          TabIndex        =   129
  721.          Top             =   240
  722.          Width           =   255
  723.       End
  724.       Begin VB.CommandButton pkey 
  725.          BackColor       =   &H00404040&
  726.          Height          =   495
  727.          Index           =   58
  728.          Left            =   8640
  729.          Style           =   1  'Graphical
  730.          TabIndex        =   126
  731.          Top             =   240
  732.          Width           =   255
  733.       End
  734.       Begin VB.CommandButton pkey 
  735.          BackColor       =   &H00404040&
  736.          Height          =   495
  737.          Index           =   56
  738.          Left            =   8400
  739.          Style           =   1  'Graphical
  740.          TabIndex        =   124
  741.          Top             =   240
  742.          Width           =   255
  743.       End
  744.       Begin VB.CommandButton pkey 
  745.          BackColor       =   &H00404040&
  746.          Height          =   495
  747.          Index           =   54
  748.          Left            =   8160
  749.          Style           =   1  'Graphical
  750.          TabIndex        =   122
  751.          Top             =   240
  752.          Width           =   255
  753.       End
  754.       Begin VB.CommandButton pkey 
  755.          BackColor       =   &H00404040&
  756.          Height          =   495
  757.          Index           =   51
  758.          Left            =   7680
  759.          Style           =   1  'Graphical
  760.          TabIndex        =   119
  761.          Top             =   240
  762.          Width           =   255
  763.       End
  764.       Begin VB.CommandButton pkey 
  765.          BackColor       =   &H00404040&
  766.          Height          =   495
  767.          Index           =   49
  768.          Left            =   7440
  769.          Style           =   1  'Graphical
  770.          TabIndex        =   117
  771.          Top             =   240
  772.          Width           =   255
  773.       End
  774.       Begin VB.CommandButton pkey 
  775.          BackColor       =   &H00404040&
  776.          Height          =   495
  777.          Index           =   46
  778.          Left            =   6960
  779.          Style           =   1  'Graphical
  780.          TabIndex        =   114
  781.          Top             =   240
  782.          Width           =   255
  783.       End
  784.       Begin VB.CommandButton pkey 
  785.          BackColor       =   &H00404040&
  786.          Height          =   495
  787.          Index           =   44
  788.          Left            =   6720
  789.          Style           =   1  'Graphical
  790.          TabIndex        =   112
  791.          Top             =   240
  792.          Width           =   255
  793.       End
  794.       Begin VB.CommandButton pkey 
  795.          BackColor       =   &H00404040&
  796.          Height          =   495
  797.          Index           =   42
  798.          Left            =   6480
  799.          Style           =   1  'Graphical
  800.          TabIndex        =   110
  801.          Top             =   240
  802.          Width           =   255
  803.       End
  804.       Begin VB.CommandButton pkey 
  805.          BackColor       =   &H00404040&
  806.          Height          =   495
  807.          Index           =   39
  808.          Left            =   6000
  809.          Style           =   1  'Graphical
  810.          TabIndex        =   107
  811.          Top             =   240
  812.          Width           =   255
  813.       End
  814.       Begin VB.CommandButton pkey 
  815.          BackColor       =   &H00404040&
  816.          Height          =   495
  817.          Index           =   32
  818.          Left            =   5040
  819.          Style           =   1  'Graphical
  820.          TabIndex        =   100
  821.          Top             =   240
  822.          Width           =   255
  823.       End
  824.       Begin VB.CommandButton pkey 
  825.          BackColor       =   &H00404040&
  826.          Height          =   495
  827.          Index           =   30
  828.          Left            =   4800
  829.          Style           =   1  'Graphical
  830.          TabIndex        =   98
  831.          Top             =   240
  832.          Width           =   255
  833.       End
  834.       Begin VB.CommandButton pkey 
  835.          BackColor       =   &H00FFFFFF&
  836.          Height          =   975
  837.          Index           =   67
  838.          Left            =   9960
  839.          Style           =   1  'Graphical
  840.          TabIndex        =   135
  841.          Tag             =   "1"
  842.          Top             =   240
  843.          Width           =   255
  844.       End
  845.       Begin VB.CommandButton pkey 
  846.          BackColor       =   &H00404040&
  847.          Height          =   495
  848.          Index           =   37
  849.          Left            =   5760
  850.          Style           =   1  'Graphical
  851.          TabIndex        =   105
  852.          Top             =   240
  853.          Width           =   255
  854.       End
  855.       Begin VB.CommandButton pkey 
  856.          BackColor       =   &H00404040&
  857.          Height          =   495
  858.          Index           =   34
  859.          Left            =   5280
  860.          Style           =   1  'Graphical
  861.          TabIndex        =   102
  862.          Top             =   240
  863.          Width           =   255
  864.       End
  865.       Begin VB.CommandButton pkey 
  866.          BackColor       =   &H00404040&
  867.          Height          =   495
  868.          Index           =   25
  869.          Left            =   4080
  870.          Style           =   1  'Graphical
  871.          TabIndex        =   93
  872.          Top             =   240
  873.          Width           =   255
  874.       End
  875.       Begin VB.CommandButton pkey 
  876.          BackColor       =   &H00404040&
  877.          Height          =   495
  878.          Index           =   27
  879.          Left            =   4320
  880.          Style           =   1  'Graphical
  881.          TabIndex        =   95
  882.          Top             =   240
  883.          Width           =   255
  884.       End
  885.       Begin VB.CommandButton pkey 
  886.          BackColor       =   &H00404040&
  887.          Height          =   495
  888.          Index           =   22
  889.          Left            =   3600
  890.          Style           =   1  'Graphical
  891.          TabIndex        =   90
  892.          Top             =   240
  893.          Width           =   255
  894.       End
  895.       Begin VB.CommandButton pkey 
  896.          BackColor       =   &H00404040&
  897.          Height          =   495
  898.          Index           =   20
  899.          Left            =   3360
  900.          Style           =   1  'Graphical
  901.          TabIndex        =   88
  902.          Top             =   240
  903.          Width           =   255
  904.       End
  905.       Begin VB.CommandButton pkey 
  906.          BackColor       =   &H00404040&
  907.          Height          =   495
  908.          Index           =   18
  909.          Left            =   3120
  910.          Style           =   1  'Graphical
  911.          TabIndex        =   86
  912.          Top             =   240
  913.          Width           =   255
  914.       End
  915.       Begin VB.CommandButton pkey 
  916.          BackColor       =   &H00404040&
  917.          Height          =   495
  918.          Index           =   15
  919.          Left            =   2640
  920.          Style           =   1  'Graphical
  921.          TabIndex        =   83
  922.          Top             =   240
  923.          Width           =   255
  924.       End
  925.       Begin VB.CommandButton pkey 
  926.          BackColor       =   &H00404040&
  927.          Height          =   495
  928.          Index           =   13
  929.          Left            =   2400
  930.          Style           =   1  'Graphical
  931.          TabIndex        =   81
  932.          Top             =   240
  933.          Width           =   255
  934.       End
  935.       Begin VB.CommandButton pkey 
  936.          BackColor       =   &H00404040&
  937.          Height          =   495
  938.          Index           =   10
  939.          Left            =   1920
  940.          Style           =   1  'Graphical
  941.          TabIndex        =   79
  942.          Top             =   240
  943.          Width           =   255
  944.       End
  945.       Begin VB.CommandButton pkey 
  946.          BackColor       =   &H00000000&
  947.          Height          =   495
  948.          Index           =   8
  949.          Left            =   1680
  950.          Style           =   1  'Graphical
  951.          TabIndex        =   77
  952.          Top             =   240
  953.          Width           =   255
  954.       End
  955.       Begin VB.CommandButton pkey 
  956.          BackColor       =   &H00404040&
  957.          Height          =   495
  958.          Index           =   6
  959.          Left            =   1440
  960.          Style           =   1  'Graphical
  961.          TabIndex        =   75
  962.          Top             =   240
  963.          Width           =   255
  964.       End
  965.       Begin VB.CommandButton pkey 
  966.          BackColor       =   &H00404040&
  967.          Height          =   495
  968.          Index           =   3
  969.          Left            =   960
  970.          Style           =   1  'Graphical
  971.          TabIndex        =   72
  972.          Top             =   240
  973.          Width           =   255
  974.       End
  975.       Begin VB.CommandButton pkey 
  976.          BackColor       =   &H00404040&
  977.          Height          =   495
  978.          Index           =   1
  979.          Left            =   720
  980.          Style           =   1  'Graphical
  981.          TabIndex        =   70
  982.          Top             =   240
  983.          Width           =   255
  984.       End
  985.       Begin VB.CommandButton pkey 
  986.          BackColor       =   &H00FFFFFF&
  987.          Height          =   975
  988.          Index           =   65
  989.          Left            =   9720
  990.          Style           =   1  'Graphical
  991.          TabIndex        =   133
  992.          Tag             =   "1"
  993.          Top             =   240
  994.          Width           =   255
  995.       End
  996.       Begin VB.CommandButton pkey 
  997.          BackColor       =   &H00FFFFFF&
  998.          Height          =   975
  999.          Index           =   64
  1000.          Left            =   9480
  1001.          Style           =   1  'Graphical
  1002.          TabIndex        =   132
  1003.          Tag             =   "1"
  1004.          Top             =   240
  1005.          Width           =   255
  1006.       End
  1007.       Begin VB.CommandButton pkey 
  1008.          BackColor       =   &H00FFFFFF&
  1009.          Height          =   975
  1010.          Index           =   62
  1011.          Left            =   9240
  1012.          Style           =   1  'Graphical
  1013.          TabIndex        =   130
  1014.          Tag             =   "1"
  1015.          Top             =   240
  1016.          Width           =   255
  1017.       End
  1018.       Begin VB.CommandButton pkey 
  1019.          BackColor       =   &H00FFFFFF&
  1020.          Height          =   975
  1021.          Index           =   60
  1022.          Left            =   9000
  1023.          Style           =   1  'Graphical
  1024.          TabIndex        =   128
  1025.          Tag             =   "1"
  1026.          Top             =   240
  1027.          Width           =   255
  1028.       End
  1029.       Begin VB.CommandButton pkey 
  1030.          BackColor       =   &H00FFFFFF&
  1031.          Height          =   975
  1032.          Index           =   59
  1033.          Left            =   8760
  1034.          Style           =   1  'Graphical
  1035.          TabIndex        =   127
  1036.          Tag             =   "1"
  1037.          Top             =   240
  1038.          Width           =   255
  1039.       End
  1040.       Begin VB.CommandButton pkey 
  1041.          BackColor       =   &H00FFFFFF&
  1042.          Height          =   975
  1043.          Index           =   57
  1044.          Left            =   8520
  1045.          Style           =   1  'Graphical
  1046.          TabIndex        =   125
  1047.          Tag             =   "1"
  1048.          Top             =   240
  1049.          Width           =   255
  1050.       End
  1051.       Begin VB.CommandButton pkey 
  1052.          BackColor       =   &H00FFFFFF&
  1053.          Height          =   975
  1054.          Index           =   55
  1055.          Left            =   8280
  1056.          Style           =   1  'Graphical
  1057.          TabIndex        =   123
  1058.          Tag             =   "1"
  1059.          Top             =   240
  1060.          Width           =   255
  1061.       End
  1062.       Begin VB.CommandButton pkey 
  1063.          BackColor       =   &H00FFFFFF&
  1064.          Height          =   975
  1065.          Index           =   53
  1066.          Left            =   8040
  1067.          Style           =   1  'Graphical
  1068.          TabIndex        =   121
  1069.          Tag             =   "1"
  1070.          Top             =   240
  1071.          Width           =   255
  1072.       End
  1073.       Begin VB.CommandButton pkey 
  1074.          BackColor       =   &H00FFFFFF&
  1075.          Height          =   975
  1076.          Index           =   52
  1077.          Left            =   7800
  1078.          Style           =   1  'Graphical
  1079.          TabIndex        =   120
  1080.          Tag             =   "1"
  1081.          Top             =   240
  1082.          Width           =   255
  1083.       End
  1084.       Begin VB.CommandButton pkey 
  1085.          BackColor       =   &H00FFFFFF&
  1086.          Height          =   975
  1087.          Index           =   50
  1088.          Left            =   7560
  1089.          Style           =   1  'Graphical
  1090.          TabIndex        =   118
  1091.          Tag             =   "1"
  1092.          Top             =   240
  1093.          Width           =   255
  1094.       End
  1095.       Begin VB.CommandButton pkey 
  1096.          BackColor       =   &H00FFFFFF&
  1097.          Height          =   975
  1098.          Index           =   48
  1099.          Left            =   7320
  1100.          Style           =   1  'Graphical
  1101.          TabIndex        =   116
  1102.          Tag             =   "1"
  1103.          Top             =   240
  1104.          Width           =   255
  1105.       End
  1106.       Begin VB.CommandButton pkey 
  1107.          BackColor       =   &H00FFFFFF&
  1108.          Height          =   975
  1109.          Index           =   47
  1110.          Left            =   7080
  1111.          Style           =   1  'Graphical
  1112.          TabIndex        =   115
  1113.          Tag             =   "1"
  1114.          Top             =   240
  1115.          Width           =   255
  1116.       End
  1117.       Begin VB.CommandButton pkey 
  1118.          BackColor       =   &H00FFFFFF&
  1119.          Height          =   975
  1120.          Index           =   45
  1121.          Left            =   6840
  1122.          Style           =   1  'Graphical
  1123.          TabIndex        =   113
  1124.          Tag             =   "1"
  1125.          Top             =   240
  1126.          Width           =   255
  1127.       End
  1128.       Begin VB.CommandButton pkey 
  1129.          BackColor       =   &H00FFFFFF&
  1130.          Height          =   975
  1131.          Index           =   43
  1132.          Left            =   6600
  1133.          Style           =   1  'Graphical
  1134.          TabIndex        =   111
  1135.          Tag             =   "1"
  1136.          Top             =   240
  1137.          Width           =   255
  1138.       End
  1139.       Begin VB.CommandButton pkey 
  1140.          BackColor       =   &H00FFFFFF&
  1141.          Height          =   975
  1142.          Index           =   41
  1143.          Left            =   6360
  1144.          Style           =   1  'Graphical
  1145.          TabIndex        =   109
  1146.          Tag             =   "1"
  1147.          Top             =   240
  1148.          Width           =   255
  1149.       End
  1150.       Begin VB.CommandButton pkey 
  1151.          BackColor       =   &H00FFFFFF&
  1152.          Height          =   975
  1153.          Index           =   40
  1154.          Left            =   6120
  1155.          Style           =   1  'Graphical
  1156.          TabIndex        =   108
  1157.          Tag             =   "1"
  1158.          Top             =   240
  1159.          Width           =   255
  1160.       End
  1161.       Begin VB.CommandButton pkey 
  1162.          BackColor       =   &H00FFFFFF&
  1163.          Height          =   975
  1164.          Index           =   38
  1165.          Left            =   5880
  1166.          Style           =   1  'Graphical
  1167.          TabIndex        =   106
  1168.          Tag             =   "1"
  1169.          Top             =   240
  1170.          Width           =   255
  1171.       End
  1172.       Begin VB.CommandButton pkey 
  1173.          BackColor       =   &H00FFFFFF&
  1174.          Height          =   975
  1175.          Index           =   36
  1176.          Left            =   5640
  1177.          Style           =   1  'Graphical
  1178.          TabIndex        =   104
  1179.          Tag             =   "1"
  1180.          Top             =   240
  1181.          Width           =   255
  1182.       End
  1183.       Begin VB.CommandButton pkey 
  1184.          BackColor       =   &H00FFFFFF&
  1185.          Height          =   975
  1186.          Index           =   35
  1187.          Left            =   5400
  1188.          Style           =   1  'Graphical
  1189.          TabIndex        =   103
  1190.          Tag             =   "1"
  1191.          Top             =   240
  1192.          Width           =   255
  1193.       End
  1194.       Begin VB.CommandButton pkey 
  1195.          BackColor       =   &H00FFFFFF&
  1196.          Height          =   975
  1197.          Index           =   33
  1198.          Left            =   5160
  1199.          Style           =   1  'Graphical
  1200.          TabIndex        =   101
  1201.          Tag             =   "1"
  1202.          Top             =   240
  1203.          Width           =   255
  1204.       End
  1205.       Begin VB.CommandButton pkey 
  1206.          BackColor       =   &H00FFFFFF&
  1207.          Height          =   975
  1208.          Index           =   31
  1209.          Left            =   4920
  1210.          Style           =   1  'Graphical
  1211.          TabIndex        =   99
  1212.          Tag             =   "1"
  1213.          Top             =   240
  1214.          Width           =   255
  1215.       End
  1216.       Begin VB.CommandButton pkey 
  1217.          BackColor       =   &H00FFFFFF&
  1218.          Height          =   975
  1219.          Index           =   29
  1220.          Left            =   4680
  1221.          Style           =   1  'Graphical
  1222.          TabIndex        =   97
  1223.          Tag             =   "1"
  1224.          Top             =   240
  1225.          Width           =   255
  1226.       End
  1227.       Begin VB.CommandButton pkey 
  1228.          BackColor       =   &H00FFFFFF&
  1229.          Height          =   975
  1230.          Index           =   28
  1231.          Left            =   4440
  1232.          Style           =   1  'Graphical
  1233.          TabIndex        =   96
  1234.          Tag             =   "1"
  1235.          Top             =   240
  1236.          Width           =   255
  1237.       End
  1238.       Begin VB.CommandButton pkey 
  1239.          BackColor       =   &H00FFFFFF&
  1240.          Height          =   975
  1241.          Index           =   26
  1242.          Left            =   4200
  1243.          Style           =   1  'Graphical
  1244.          TabIndex        =   94
  1245.          Tag             =   "1"
  1246.          Top             =   240
  1247.          Width           =   255
  1248.       End
  1249.       Begin VB.CommandButton pkey 
  1250.          BackColor       =   &H00FFFFFF&
  1251.          Height          =   975
  1252.          Index           =   24
  1253.          Left            =   3960
  1254.          Style           =   1  'Graphical
  1255.          TabIndex        =   92
  1256.          Tag             =   "1"
  1257.          Top             =   240
  1258.          Width           =   255
  1259.       End
  1260.       Begin VB.CommandButton pkey 
  1261.          BackColor       =   &H00FFFFFF&
  1262.          Height          =   975
  1263.          Index           =   23
  1264.          Left            =   3720
  1265.          Style           =   1  'Graphical
  1266.          TabIndex        =   91
  1267.          Tag             =   "1"
  1268.          Top             =   240
  1269.          Width           =   255
  1270.       End
  1271.       Begin VB.CommandButton pkey 
  1272.          BackColor       =   &H00FFFFFF&
  1273.          Height          =   975
  1274.          Index           =   21
  1275.          Left            =   3480
  1276.          Style           =   1  'Graphical
  1277.          TabIndex        =   89
  1278.          Tag             =   "1"
  1279.          Top             =   240
  1280.          Width           =   255
  1281.       End
  1282.       Begin VB.CommandButton pkey 
  1283.          BackColor       =   &H00FFFFFF&
  1284.          Height          =   975
  1285.          Index           =   19
  1286.          Left            =   3240
  1287.          Style           =   1  'Graphical
  1288.          TabIndex        =   87
  1289.          Tag             =   "1"
  1290.          Top             =   240
  1291.          Width           =   255
  1292.       End
  1293.       Begin VB.CommandButton pkey 
  1294.          BackColor       =   &H00FFFFFF&
  1295.          Height          =   975
  1296.          Index           =   17
  1297.          Left            =   3000
  1298.          Style           =   1  'Graphical
  1299.          TabIndex        =   85
  1300.          Tag             =   "1"
  1301.          Top             =   240
  1302.          Width           =   255
  1303.       End
  1304.       Begin VB.CommandButton pkey 
  1305.          BackColor       =   &H00FFFFFF&
  1306.          Height          =   975
  1307.          Index           =   16
  1308.          Left            =   2760
  1309.          Style           =   1  'Graphical
  1310.          TabIndex        =   84
  1311.          Tag             =   "1"
  1312.          Top             =   240
  1313.          Width           =   255
  1314.       End
  1315.       Begin VB.CommandButton pkey 
  1316.          BackColor       =   &H00FFFFFF&
  1317.          Height          =   975
  1318.          Index           =   14
  1319.          Left            =   2520
  1320.          Style           =   1  'Graphical
  1321.          TabIndex        =   82
  1322.          Tag             =   "1"
  1323.          Top             =   240
  1324.          Width           =   255
  1325.       End
  1326.       Begin VB.CommandButton pkey 
  1327.          BackColor       =   &H00FFFFFF&
  1328.          Height          =   975
  1329.          Index           =   12
  1330.          Left            =   2280
  1331.          Style           =   1  'Graphical
  1332.          TabIndex        =   159
  1333.          Tag             =   "1"
  1334.          Top             =   240
  1335.          Width           =   255
  1336.       End
  1337.       Begin VB.CommandButton pkey 
  1338.          BackColor       =   &H00FFFFFF&
  1339.          Height          =   975
  1340.          Index           =   11
  1341.          Left            =   2040
  1342.          Style           =   1  'Graphical
  1343.          TabIndex        =   80
  1344.          Tag             =   "1"
  1345.          Top             =   240
  1346.          Width           =   255
  1347.       End
  1348.       Begin VB.CommandButton pkey 
  1349.          BackColor       =   &H00FFFFFF&
  1350.          Height          =   975
  1351.          Index           =   9
  1352.          Left            =   1800
  1353.          Style           =   1  'Graphical
  1354.          TabIndex        =   78
  1355.          Tag             =   "1"
  1356.          Top             =   240
  1357.          Width           =   255
  1358.       End
  1359.       Begin VB.CommandButton pkey 
  1360.          BackColor       =   &H00FFFFFF&
  1361.          Height          =   975
  1362.          Index           =   7
  1363.          Left            =   1560
  1364.          Style           =   1  'Graphical
  1365.          TabIndex        =   76
  1366.          Tag             =   "1"
  1367.          Top             =   240
  1368.          Width           =   255
  1369.       End
  1370.       Begin VB.CommandButton pkey 
  1371.          BackColor       =   &H00FFFFFF&
  1372.          Height          =   975
  1373.          Index           =   5
  1374.          Left            =   1320
  1375.          Style           =   1  'Graphical
  1376.          TabIndex        =   74
  1377.          Tag             =   "1"
  1378.          Top             =   240
  1379.          Width           =   255
  1380.       End
  1381.       Begin VB.CommandButton pkey 
  1382.          BackColor       =   &H00FFFFFF&
  1383.          Height          =   975
  1384.          Index           =   4
  1385.          Left            =   1080
  1386.          Style           =   1  'Graphical
  1387.          TabIndex        =   73
  1388.          Tag             =   "1"
  1389.          Top             =   240
  1390.          Width           =   255
  1391.       End
  1392.       Begin VB.CommandButton pkey 
  1393.          BackColor       =   &H00FFFFFF&
  1394.          Height          =   975
  1395.          Index           =   2
  1396.          Left            =   840
  1397.          Style           =   1  'Graphical
  1398.          TabIndex        =   71
  1399.          Tag             =   "1"
  1400.          Top             =   240
  1401.          Width           =   255
  1402.       End
  1403.       Begin VB.CommandButton pkey 
  1404.          BackColor       =   &H00FFFFFF&
  1405.          Height          =   975
  1406.          Index           =   0
  1407.          Left            =   600
  1408.          Style           =   1  'Graphical
  1409.          TabIndex        =   69
  1410.          Tag             =   "1"
  1411.          Top             =   240
  1412.          Width           =   255
  1413.       End
  1414.    End
  1415.    Begin VB.Frame Frame7 
  1416.       Caption         =   "MIDI (Note) Recorder"
  1417.       Height          =   735
  1418.       Left            =   4800
  1419.       TabIndex        =   63
  1420.       Top             =   3480
  1421.       Width           =   3735
  1422.       Begin VB.CommandButton cmdplay 
  1423.          BackColor       =   &H0080FF80&
  1424.          Caption         =   "Play"
  1425.          Height          =   375
  1426.          Left            =   2760
  1427.          Style           =   1  'Graphical
  1428.          TabIndex        =   67
  1429.          Top             =   240
  1430.          Width           =   735
  1431.       End
  1432.       Begin VB.CommandButton cmdrec 
  1433.          BackColor       =   &H00C0C0FF&
  1434.          Caption         =   "Record"
  1435.          Height          =   375
  1436.          Left            =   1920
  1437.          MaskColor       =   &H8000000A&
  1438.          Style           =   1  'Graphical
  1439.          TabIndex        =   66
  1440.          Top             =   240
  1441.          Width           =   735
  1442.       End
  1443.       Begin VB.CommandButton cmdsave 
  1444.          BackColor       =   &H00FFFFC0&
  1445.          Caption         =   "Save"
  1446.          Height          =   375
  1447.          Left            =   1080
  1448.          Style           =   1  'Graphical
  1449.          TabIndex        =   65
  1450.          Top             =   240
  1451.          Width           =   735
  1452.       End
  1453.       Begin VB.CommandButton cmdload 
  1454.          BackColor       =   &H00FFFFC0&
  1455.          Caption         =   "Load"
  1456.          Height          =   375
  1457.          Left            =   240
  1458.          Style           =   1  'Graphical
  1459.          TabIndex        =   64
  1460.          Top             =   240
  1461.          Width           =   735
  1462.       End
  1463.    End
  1464.    Begin MSComDlg.CommonDialog CommonDialog1 
  1465.       Left            =   11280
  1466.       Top             =   7800
  1467.       _ExtentX        =   847
  1468.       _ExtentY        =   847
  1469.       _Version        =   393216
  1470.    End
  1471.    Begin VB.Frame Frame6 
  1472.       Caption         =   "MCI Media Control"
  1473.       Height          =   1215
  1474.       Left            =   120
  1475.       TabIndex        =   43
  1476.       Top             =   4320
  1477.       Width           =   11295
  1478.       Begin VB.CommandButton Command25 
  1479.          Caption         =   "MMov"
  1480.          Height          =   375
  1481.          Left            =   10440
  1482.          TabIndex        =   62
  1483.          Top             =   720
  1484.          Width           =   615
  1485.       End
  1486.       Begin VB.CommandButton Command24 
  1487.          Caption         =   "DigVid"
  1488.          Height          =   375
  1489.          Left            =   10440
  1490.          TabIndex        =   61
  1491.          Top             =   240
  1492.          Width           =   615
  1493.       End
  1494.       Begin VB.CommandButton Command23 
  1495.          Caption         =   "Vdsc"
  1496.          Height          =   375
  1497.          Left            =   9720
  1498.          TabIndex        =   60
  1499.          Top             =   720
  1500.          Width           =   615
  1501.       End
  1502.       Begin VB.CommandButton Command22 
  1503.          Caption         =   "MIDI"
  1504.          Height          =   375
  1505.          Left            =   9720
  1506.          TabIndex        =   59
  1507.          Top             =   240
  1508.          Width           =   615
  1509.       End
  1510.       Begin VB.CommandButton Command21 
  1511.          Caption         =   "Scan"
  1512.          Height          =   375
  1513.          Left            =   9000
  1514.          TabIndex        =   58
  1515.          Top             =   720
  1516.          Width           =   615
  1517.       End
  1518.       Begin VB.CommandButton Command20 
  1519.          Caption         =   "Wave"
  1520.          Height          =   375
  1521.          Left            =   9000
  1522.          TabIndex        =   57
  1523.          Top             =   240
  1524.          Width           =   615
  1525.       End
  1526.       Begin VB.CommandButton Command19 
  1527.          Caption         =   "VCR"
  1528.          Height          =   375
  1529.          Left            =   8280
  1530.          TabIndex        =   56
  1531.          Top             =   720
  1532.          Width           =   615
  1533.       End
  1534.       Begin VB.CommandButton Command18 
  1535.          Caption         =   "CD"
  1536.          Height          =   375
  1537.          Left            =   8280
  1538.          TabIndex        =   55
  1539.          Top             =   240
  1540.          Width           =   615
  1541.       End
  1542.       Begin VB.CommandButton Command17 
  1543.          Caption         =   "Dat"
  1544.          Height          =   375
  1545.          Left            =   7560
  1546.          TabIndex        =   54
  1547.          Top             =   720
  1548.          Width           =   615
  1549.       End
  1550.       Begin VB.CommandButton Command16 
  1551.          Caption         =   "AVI"
  1552.          Height          =   375
  1553.          Left            =   7560
  1554.          TabIndex        =   53
  1555.          Top             =   240
  1556.          Width           =   615
  1557.       End
  1558.       Begin VB.CommandButton Command15 
  1559.          Caption         =   "Save"
  1560.          Height          =   375
  1561.          Left            =   3960
  1562.          TabIndex        =   52
  1563.          Top             =   720
  1564.          Width           =   735
  1565.       End
  1566.       Begin VB.CommandButton Command14 
  1567.          Caption         =   "Seek"
  1568.          Height          =   375
  1569.          Left            =   5640
  1570.          TabIndex        =   51
  1571.          Top             =   240
  1572.          Width           =   735
  1573.       End
  1574.       Begin VB.CommandButton Command13 
  1575.          Caption         =   "Back"
  1576.          Height          =   375
  1577.          Left            =   6480
  1578.          TabIndex        =   50
  1579.          Top             =   720
  1580.          Width           =   735
  1581.       End
  1582.       Begin VB.CommandButton Command12 
  1583.          Caption         =   "Forward"
  1584.          Height          =   375
  1585.          Left            =   6480
  1586.          TabIndex        =   49
  1587.          Top             =   240
  1588.          Width           =   735
  1589.       End
  1590.       Begin VB.CommandButton Command11 
  1591.          Caption         =   "Eject"
  1592.          Height          =   375
  1593.          Left            =   5640
  1594.          TabIndex        =   48
  1595.          Top             =   720
  1596.          Width           =   735
  1597.       End
  1598.       Begin VB.CommandButton Command10 
  1599.          Caption         =   "Open"
  1600.          Height          =   375
  1601.          Left            =   3960
  1602.          TabIndex        =   47
  1603.          Top             =   240
  1604.          Width           =   735
  1605.       End
  1606.       Begin VB.CommandButton Command9 
  1607.          Caption         =   "Play "
  1608.          Height          =   375
  1609.          Left            =   4800
  1610.          TabIndex        =   46
  1611.          Top             =   240
  1612.          Width           =   735
  1613.       End
  1614.       Begin VB.CommandButton Command8 
  1615.          Caption         =   "Record"
  1616.          Height          =   375
  1617.          Left            =   4800
  1618.          TabIndex        =   45
  1619.          Top             =   720
  1620.          Width           =   735
  1621.       End
  1622.       Begin MCI.MMControl MMControl1 
  1623.          Height          =   855
  1624.          Left            =   240
  1625.          TabIndex        =   44
  1626.          Top             =   240
  1627.          Width           =   3540
  1628.          _ExtentX        =   6244
  1629.          _ExtentY        =   1508
  1630.          _Version        =   393216
  1631.          DeviceType      =   ""
  1632.          FileName        =   ""
  1633.       End
  1634.    End
  1635.    Begin VB.Timer tmrwelcome 
  1636.       Interval        =   100
  1637.       Left            =   11400
  1638.       Top             =   6360
  1639.    End
  1640.    Begin VB.Timer tmrrec 
  1641.       Enabled         =   0   'False
  1642.       Interval        =   50
  1643.       Left            =   11400
  1644.       Top             =   7320
  1645.    End
  1646.    Begin VB.Frame Frame4 
  1647.       Caption         =   "Frequency Adjust"
  1648.       BeginProperty Font 
  1649.          Name            =   "MS Sans Serif"
  1650.          Size            =   8.25
  1651.          Charset         =   0
  1652.          Weight          =   700
  1653.          Underline       =   0   'False
  1654.          Italic          =   0   'False
  1655.          Strikethrough   =   0   'False
  1656.       EndProperty
  1657.       Height          =   2055
  1658.       Left            =   120
  1659.       TabIndex        =   21
  1660.       Top             =   2160
  1661.       Width           =   4575
  1662.       Begin VB.TextBox Text2 
  1663.          Alignment       =   2  'Center
  1664.          BeginProperty Font 
  1665.             Name            =   "MS Sans Serif"
  1666.             Size            =   12
  1667.             Charset         =   0
  1668.             Weight          =   700
  1669.             Underline       =   0   'False
  1670.             Italic          =   0   'False
  1671.             Strikethrough   =   0   'False
  1672.          EndProperty
  1673.          Height          =   345
  1674.          Left            =   2520
  1675.          TabIndex        =   25
  1676.          Top             =   960
  1677.          Width           =   1575
  1678.       End
  1679.       Begin VB.TextBox Text1 
  1680.          Alignment       =   2  'Center
  1681.          BeginProperty Font 
  1682.             Name            =   "MS Sans Serif"
  1683.             Size            =   12
  1684.             Charset         =   0
  1685.             Weight          =   700
  1686.             Underline       =   0   'False
  1687.             Italic          =   0   'False
  1688.             Strikethrough   =   0   'False
  1689.          EndProperty
  1690.          Height          =   345
  1691.          Left            =   480
  1692.          TabIndex        =   24
  1693.          Top             =   960
  1694.          Width           =   1575
  1695.       End
  1696.       Begin VB.CommandButton Command2 
  1697.          Caption         =   "Mixer"
  1698.          BeginProperty Font 
  1699.             Name            =   "MS Sans Serif"
  1700.             Size            =   12
  1701.             Charset         =   0
  1702.             Weight          =   700
  1703.             Underline       =   0   'False
  1704.             Italic          =   0   'False
  1705.             Strikethrough   =   0   'False
  1706.          EndProperty
  1707.          Height          =   375
  1708.          Left            =   240
  1709.          TabIndex        =   23
  1710.          Top             =   1440
  1711.          Width           =   4095
  1712.       End
  1713.       Begin VB.HScrollBar HScroll1 
  1714.          Height          =   375
  1715.          LargeChange     =   20
  1716.          Left            =   240
  1717.          Max             =   10000
  1718.          Min             =   1
  1719.          TabIndex        =   22
  1720.          Top             =   360
  1721.          Value           =   1
  1722.          Width           =   4095
  1723.       End
  1724.    End
  1725.    Begin VB.TextBox txtHundreds 
  1726.       Alignment       =   2  'Center
  1727.       Enabled         =   0   'False
  1728.       BeginProperty Font 
  1729.          Name            =   "MS Sans Serif"
  1730.          Size            =   8.25
  1731.          Charset         =   0
  1732.          Weight          =   700
  1733.          Underline       =   0   'False
  1734.          Italic          =   0   'False
  1735.          Strikethrough   =   0   'False
  1736.       EndProperty
  1737.       Height          =   285
  1738.       Left            =   600
  1739.       TabIndex        =   18
  1740.       Top             =   1320
  1741.       Width           =   250
  1742.    End
  1743.    Begin VB.VScrollBar scrHundreds 
  1744.       Height          =   765
  1745.       Left            =   600
  1746.       Max             =   0
  1747.       Min             =   9
  1748.       TabIndex        =   20
  1749.       Top             =   1080
  1750.       Width           =   255
  1751.    End
  1752.    Begin VB.TextBox txtThousands 
  1753.       Alignment       =   2  'Center
  1754.       Enabled         =   0   'False
  1755.       BeginProperty Font 
  1756.          Name            =   "MS Sans Serif"
  1757.          Size            =   8.25
  1758.          Charset         =   0
  1759.          Weight          =   700
  1760.          Underline       =   0   'False
  1761.          Italic          =   0   'False
  1762.          Strikethrough   =   0   'False
  1763.       EndProperty
  1764.       Height          =   285
  1765.       Left            =   360
  1766.       TabIndex        =   19
  1767.       Top             =   1320
  1768.       Width           =   250
  1769.    End
  1770.    Begin VB.TextBox txtTens 
  1771.       Alignment       =   2  'Center
  1772.       Enabled         =   0   'False
  1773.       BeginProperty Font 
  1774.          Name            =   "MS Sans Serif"
  1775.          Size            =   8.25
  1776.          Charset         =   0
  1777.          Weight          =   700
  1778.          Underline       =   0   'False
  1779.          Italic          =   0   'False
  1780.          Strikethrough   =   0   'False
  1781.       EndProperty
  1782.       Height          =   285
  1783.       Left            =   840
  1784.       TabIndex        =   17
  1785.       Top             =   1320
  1786.       Width           =   250
  1787.    End
  1788.    Begin VB.TextBox txtUnits 
  1789.       Alignment       =   2  'Center
  1790.       Enabled         =   0   'False
  1791.       BeginProperty Font 
  1792.          Name            =   "MS Sans Serif"
  1793.          Size            =   8.25
  1794.          Charset         =   0
  1795.          Weight          =   700
  1796.          Underline       =   0   'False
  1797.          Italic          =   0   'False
  1798.          Strikethrough   =   0   'False
  1799.       EndProperty
  1800.       Height          =   285
  1801.       Left            =   1080
  1802.       TabIndex        =   16
  1803.       Top             =   1320
  1804.       Width           =   250
  1805.    End
  1806.    Begin VB.TextBox txtDecimal 
  1807.       Alignment       =   2  'Center
  1808.       Enabled         =   0   'False
  1809.       BeginProperty Font 
  1810.          Name            =   "MS Sans Serif"
  1811.          Size            =   8.25
  1812.          Charset         =   0
  1813.          Weight          =   700
  1814.          Underline       =   0   'False
  1815.          Italic          =   0   'False
  1816.          Strikethrough   =   0   'False
  1817.       EndProperty
  1818.       Height          =   285
  1819.       Left            =   1320
  1820.       TabIndex        =   15
  1821.       Top             =   1320
  1822.       Width           =   265
  1823.    End
  1824.    Begin VB.VScrollBar scrThousands 
  1825.       Height          =   765
  1826.       Left            =   360
  1827.       Max             =   0
  1828.       Min             =   9
  1829.       TabIndex        =   14
  1830.       Top             =   1080
  1831.       Width           =   255
  1832.    End
  1833.    Begin VB.VScrollBar VScroll4 
  1834.       Height          =   30
  1835.       Left            =   600
  1836.       TabIndex        =   13
  1837.       Top             =   1200
  1838.       Width           =   255
  1839.    End
  1840.    Begin VB.VScrollBar scrTens 
  1841.       Height          =   765
  1842.       Left            =   840
  1843.       Max             =   0
  1844.       Min             =   9
  1845.       TabIndex        =   12
  1846.       Top             =   1080
  1847.       Width           =   255
  1848.    End
  1849.    Begin VB.VScrollBar scrUnits 
  1850.       Height          =   765
  1851.       Left            =   1080
  1852.       Max             =   0
  1853.       Min             =   9
  1854.       TabIndex        =   11
  1855.       Top             =   1080
  1856.       Width           =   255
  1857.    End
  1858.    Begin VB.VScrollBar scrDecimal 
  1859.       Height          =   765
  1860.       Left            =   1320
  1861.       Max             =   0
  1862.       Min             =   9
  1863.       TabIndex        =   10
  1864.       Top             =   1080
  1865.       Width           =   265
  1866.    End
  1867.    Begin VB.Frame Frame3 
  1868.       Caption         =   "Function"
  1869.       BeginProperty Font 
  1870.          Name            =   "MS Sans Serif"
  1871.          Size            =   8.25
  1872.          Charset         =   0
  1873.          Weight          =   700
  1874.          Underline       =   0   'False
  1875.          Italic          =   0   'False
  1876.          Strikethrough   =   0   'False
  1877.       EndProperty
  1878.       Height          =   1215
  1879.       Left            =   1920
  1880.       TabIndex        =   7
  1881.       Top             =   840
  1882.       Width           =   2775
  1883.       Begin VB.CommandButton cmdStop 
  1884.          Caption         =   "Stop"
  1885.          BeginProperty Font 
  1886.             Name            =   "MS Sans Serif"
  1887.             Size            =   8.25
  1888.             Charset         =   0
  1889.             Weight          =   700
  1890.             Underline       =   0   'False
  1891.             Italic          =   0   'False
  1892.             Strikethrough   =   0   'False
  1893.          EndProperty
  1894.          Height          =   615
  1895.          Left            =   1440
  1896.          TabIndex        =   9
  1897.          Top             =   360
  1898.          Width           =   1095
  1899.       End
  1900.       Begin VB.CommandButton cmdGenerate 
  1901.          Caption         =   "Generate"
  1902.          BeginProperty Font 
  1903.             Name            =   "MS Sans Serif"
  1904.             Size            =   8.25
  1905.             Charset         =   0
  1906.             Weight          =   700
  1907.             Underline       =   0   'False
  1908.             Italic          =   0   'False
  1909.             Strikethrough   =   0   'False
  1910.          EndProperty
  1911.          Height          =   615
  1912.          Left            =   240
  1913.          TabIndex        =   8
  1914.          Top             =   360
  1915.          Width           =   1095
  1916.       End
  1917.    End
  1918.    Begin VB.Frame Frame1 
  1919.       Caption         =   "Wave Generator"
  1920.       BeginProperty Font 
  1921.          Name            =   "MS Sans Serif"
  1922.          Size            =   8.25
  1923.          Charset         =   0
  1924.          Weight          =   700
  1925.          Underline       =   0   'False
  1926.          Italic          =   0   'False
  1927.          Strikethrough   =   0   'False
  1928.       EndProperty
  1929.       Height          =   615
  1930.       Left            =   120
  1931.       TabIndex        =   0
  1932.       Top             =   120
  1933.       Width           =   4575
  1934.       Begin VB.OptionButton optNoise 
  1935.          Caption         =   "Noise"
  1936.          BeginProperty Font 
  1937.             Name            =   "MS Sans Serif"
  1938.             Size            =   8.25
  1939.             Charset         =   0
  1940.             Weight          =   700
  1941.             Underline       =   0   'False
  1942.             Italic          =   0   'False
  1943.             Strikethrough   =   0   'False
  1944.          EndProperty
  1945.          Height          =   255
  1946.          Left            =   3600
  1947.          TabIndex        =   5
  1948.          Top             =   240
  1949.          Width           =   855
  1950.       End
  1951.       Begin VB.OptionButton optSaw 
  1952.          Caption         =   "Saw"
  1953.          BeginProperty Font 
  1954.             Name            =   "MS Sans Serif"
  1955.             Size            =   8.25
  1956.             Charset         =   0
  1957.             Weight          =   700
  1958.             Underline       =   0   'False
  1959.             Italic          =   0   'False
  1960.             Strikethrough   =   0   'False
  1961.          EndProperty
  1962.          Height          =   255
  1963.          Left            =   2880
  1964.          TabIndex        =   4
  1965.          Top             =   240
  1966.          Width           =   735
  1967.       End
  1968.       Begin VB.OptionButton optTriangle 
  1969.          Caption         =   "Triangle"
  1970.          BeginProperty Font 
  1971.             Name            =   "MS Sans Serif"
  1972.             Size            =   8.25
  1973.             Charset         =   0
  1974.             Weight          =   700
  1975.             Underline       =   0   'False
  1976.             Italic          =   0   'False
  1977.             Strikethrough   =   0   'False
  1978.          EndProperty
  1979.          Height          =   255
  1980.          Left            =   1800
  1981.          TabIndex        =   3
  1982.          Top             =   240
  1983.          Width           =   1095
  1984.       End
  1985.       Begin VB.OptionButton optSquare 
  1986.          Caption         =   "Square"
  1987.          BeginProperty Font 
  1988.             Name            =   "MS Sans Serif"
  1989.             Size            =   8.25
  1990.             Charset         =   0
  1991.             Weight          =   700
  1992.             Underline       =   0   'False
  1993.             Italic          =   0   'False
  1994.             Strikethrough   =   0   'False
  1995.          EndProperty
  1996.          Height          =   255
  1997.          Left            =   840
  1998.          TabIndex        =   2
  1999.          Top             =   240
  2000.          Width           =   975
  2001.       End
  2002.       Begin VB.OptionButton optSine 
  2003.          Caption         =   "Sine"
  2004.          BeginProperty Font 
  2005.             Name            =   "MS Sans Serif"
  2006.             Size            =   8.25
  2007.             Charset         =   0
  2008.             Weight          =   700
  2009.             Underline       =   0   'False
  2010.             Italic          =   0   'False
  2011.             Strikethrough   =   0   'False
  2012.          EndProperty
  2013.          Height          =   255
  2014.          Left            =   120
  2015.          TabIndex        =   1
  2016.          Top             =   240
  2017.          Width           =   735
  2018.       End
  2019.    End
  2020.    Begin VB.Frame Frame2 
  2021.       Caption         =   "Frequency"
  2022.       BeginProperty Font 
  2023.          Name            =   "MS Sans Serif"
  2024.          Size            =   8.25
  2025.          Charset         =   0
  2026.          Weight          =   700
  2027.          Underline       =   0   'False
  2028.          Italic          =   0   'False
  2029.          Strikethrough   =   0   'False
  2030.       EndProperty
  2031.       Height          =   1215
  2032.       Left            =   120
  2033.       TabIndex        =   6
  2034.       Top             =   840
  2035.       Width           =   1695
  2036.    End
  2037.    Begin VB.Frame Frame5 
  2038.       Caption         =   "Midi Note Generator / Piano"
  2039.       BeginProperty Font 
  2040.          Name            =   "MS Sans Serif"
  2041.          Size            =   8.25
  2042.          Charset         =   0
  2043.          Weight          =   700
  2044.          Underline       =   0   'False
  2045.          Italic          =   0   'False
  2046.          Strikethrough   =   0   'False
  2047.       EndProperty
  2048.       Height          =   3255
  2049.       Left            =   4800
  2050.       TabIndex        =   26
  2051.       Top             =   120
  2052.       Width           =   3735
  2053.       Begin VB.CommandButton Command44 
  2054.          Caption         =   "Ent"
  2055.          Height          =   255
  2056.          Left            =   3000
  2057.          TabIndex        =   225
  2058.          Top             =   1920
  2059.          Width           =   495
  2060.       End
  2061.       Begin VB.CommandButton Command43 
  2062.          Caption         =   "Ent"
  2063.          Height          =   255
  2064.          Left            =   3000
  2065.          TabIndex        =   224
  2066.          Top             =   1440
  2067.          Width           =   495
  2068.       End
  2069.       Begin VB.CommandButton Command42 
  2070.          Caption         =   "Ent"
  2071.          Height          =   255
  2072.          Left            =   3000
  2073.          TabIndex        =   223
  2074.          Top             =   960
  2075.          Width           =   495
  2076.       End
  2077.       Begin VB.CommandButton Command41 
  2078.          Caption         =   "Ent"
  2079.          Height          =   255
  2080.          Left            =   3000
  2081.          TabIndex        =   222
  2082.          Top             =   480
  2083.          Width           =   495
  2084.       End
  2085.       Begin VB.TextBox Text16 
  2086.          Alignment       =   2  'Center
  2087.          Height          =   285
  2088.          Left            =   1800
  2089.          TabIndex        =   161
  2090.          Top             =   1920
  2091.          Width           =   1095
  2092.       End
  2093.       Begin VB.HScrollBar sldChan 
  2094.          Height          =   255
  2095.          Left            =   240
  2096.          Max             =   16
  2097.          Min             =   1
  2098.          TabIndex        =   160
  2099.          Top             =   1920
  2100.          Value           =   1
  2101.          Width           =   1455
  2102.       End
  2103.       Begin VB.CommandButton Command7 
  2104.          Caption         =   "Exit"
  2105.          BeginProperty Font 
  2106.             Name            =   "MS Sans Serif"
  2107.             Size            =   8.25
  2108.             Charset         =   0
  2109.             Weight          =   700
  2110.             Underline       =   0   'False
  2111.             Italic          =   0   'False
  2112.             Strikethrough   =   0   'False
  2113.          EndProperty
  2114.          Height          =   375
  2115.          Left            =   2520
  2116.          TabIndex        =   38
  2117.          Top             =   2760
  2118.          Width           =   1095
  2119.       End
  2120.       Begin VB.CommandButton Command6 
  2121.          Caption         =   "Mixer"
  2122.          BeginProperty Font 
  2123.             Name            =   "MS Sans Serif"
  2124.             Size            =   8.25
  2125.             Charset         =   0
  2126.             Weight          =   700
  2127.             Underline       =   0   'False
  2128.             Italic          =   0   'False
  2129.             Strikethrough   =   0   'False
  2130.          EndProperty
  2131.          Height          =   375
  2132.          Left            =   2520
  2133.          TabIndex        =   37
  2134.          Top             =   2280
  2135.          Width           =   1095
  2136.       End
  2137.       Begin VB.CommandButton Command5 
  2138.          Caption         =   "Stop Song"
  2139.          BeginProperty Font 
  2140.             Name            =   "MS Sans Serif"
  2141.             Size            =   8.25
  2142.             Charset         =   0
  2143.             Weight          =   700
  2144.             Underline       =   0   'False
  2145.             Italic          =   0   'False
  2146.             Strikethrough   =   0   'False
  2147.          EndProperty
  2148.          Height          =   375
  2149.          Left            =   1320
  2150.          TabIndex        =   36
  2151.          Top             =   2760
  2152.          Width           =   1095
  2153.       End
  2154.       Begin VB.CommandButton Command4 
  2155.          Caption         =   "Play Song"
  2156.          BeginProperty Font 
  2157.             Name            =   "MS Sans Serif"
  2158.             Size            =   8.25
  2159.             Charset         =   0
  2160.             Weight          =   700
  2161.             Underline       =   0   'False
  2162.             Italic          =   0   'False
  2163.             Strikethrough   =   0   'False
  2164.          EndProperty
  2165.          Height          =   375
  2166.          Left            =   1320
  2167.          TabIndex        =   35
  2168.          Top             =   2280
  2169.          Width           =   1095
  2170.       End
  2171.       Begin VB.CommandButton Command3 
  2172.          Caption         =   "Stop"
  2173.          BeginProperty Font 
  2174.             Name            =   "MS Sans Serif"
  2175.             Size            =   8.25
  2176.             Charset         =   0
  2177.             Weight          =   700
  2178.             Underline       =   0   'False
  2179.             Italic          =   0   'False
  2180.             Strikethrough   =   0   'False
  2181.          EndProperty
  2182.          Height          =   375
  2183.          Left            =   120
  2184.          TabIndex        =   34
  2185.          Top             =   2760
  2186.          Width           =   1095
  2187.       End
  2188.       Begin VB.CommandButton Command1 
  2189.          Caption         =   "Play"
  2190.          BeginProperty Font 
  2191.             Name            =   "MS Sans Serif"
  2192.             Size            =   8.25
  2193.             Charset         =   0
  2194.             Weight          =   700
  2195.             Underline       =   0   'False
  2196.             Italic          =   0   'False
  2197.             Strikethrough   =   0   'False
  2198.          EndProperty
  2199.          Height          =   375
  2200.          Left            =   120
  2201.          TabIndex        =   33
  2202.          Top             =   2280
  2203.          Width           =   1095
  2204.       End
  2205.       Begin VB.TextBox Text5 
  2206.          Alignment       =   2  'Center
  2207.          Height          =   285
  2208.          Left            =   1800
  2209.          TabIndex        =   32
  2210.          Top             =   1440
  2211.          Width           =   1095
  2212.       End
  2213.       Begin VB.TextBox Text4 
  2214.          Alignment       =   2  'Center
  2215.          Height          =   285
  2216.          Left            =   1800
  2217.          TabIndex        =   31
  2218.          Top             =   960
  2219.          Width           =   1095
  2220.       End
  2221.       Begin VB.TextBox Text3 
  2222.          Alignment       =   2  'Center
  2223.          Height          =   285
  2224.          Left            =   1800
  2225.          TabIndex        =   30
  2226.          Top             =   480
  2227.          Width           =   1095
  2228.       End
  2229.       Begin VB.HScrollBar sldVol 
  2230.          Height          =   255
  2231.          Left            =   240
  2232.          Max             =   127
  2233.          TabIndex        =   29
  2234.          Top             =   1440
  2235.          Width           =   1455
  2236.       End
  2237.       Begin VB.HScrollBar sldInst 
  2238.          Height          =   255
  2239.          Left            =   240
  2240.          Max             =   127
  2241.          TabIndex        =   28
  2242.          Top             =   480
  2243.          Width           =   1455
  2244.       End
  2245.       Begin VB.HScrollBar sldPitch 
  2246.          Height          =   255
  2247.          Left            =   240
  2248.          Max             =   100
  2249.          TabIndex        =   27
  2250.          Top             =   960
  2251.          Width           =   1455
  2252.       End
  2253.       Begin VB.Label Label13 
  2254.          Caption         =   "      Channel           Channel"
  2255.          BeginProperty Font 
  2256.             Name            =   "MS Sans Serif"
  2257.             Size            =   8.25
  2258.             Charset         =   0
  2259.             Weight          =   700
  2260.             Underline       =   0   'False
  2261.             Italic          =   0   'False
  2262.             Strikethrough   =   0   'False
  2263.          EndProperty
  2264.          Height          =   255
  2265.          Left            =   240
  2266.          TabIndex        =   162
  2267.          Top             =   1720
  2268.          Width           =   2655
  2269.       End
  2270.       Begin VB.Label Label3 
  2271.          Caption         =   "         Note                Note"
  2272.          BeginProperty Font 
  2273.             Name            =   "MS Sans Serif"
  2274.             Size            =   8.25
  2275.             Charset         =   0
  2276.             Weight          =   700
  2277.             Underline       =   0   'False
  2278.             Italic          =   0   'False
  2279.             Strikethrough   =   0   'False
  2280.          EndProperty
  2281.          Height          =   255
  2282.          Left            =   240
  2283.          TabIndex        =   41
  2284.          Top             =   760
  2285.          Width           =   2655
  2286.       End
  2287.       Begin VB.Label Label2 
  2288.          Caption         =   "       Volume             Volume   "
  2289.          BeginProperty Font 
  2290.             Name            =   "MS Sans Serif"
  2291.             Size            =   8.25
  2292.             Charset         =   0
  2293.             Weight          =   700
  2294.             Underline       =   0   'False
  2295.             Italic          =   0   'False
  2296.             Strikethrough   =   0   'False
  2297.          EndProperty
  2298.          Height          =   255
  2299.          Left            =   240
  2300.          TabIndex        =   40
  2301.          Top             =   1240
  2302.          Width           =   2655
  2303.       End
  2304.       Begin VB.Label Label1 
  2305.          Caption         =   "    Instruments      Instruments"
  2306.          BeginProperty Font 
  2307.             Name            =   "MS Sans Serif"
  2308.             Size            =   8.25
  2309.             Charset         =   0
  2310.             Weight          =   700
  2311.             Underline       =   0   'False
  2312.             Italic          =   0   'False
  2313.             Strikethrough   =   0   'False
  2314.          EndProperty
  2315.          Height          =   255
  2316.          Left            =   240
  2317.          TabIndex        =   39
  2318.          Top             =   280
  2319.          Width           =   2655
  2320.       End
  2321.    End
  2322.    Begin VB.TextBox Text6 
  2323.       Height          =   3135
  2324.       Left            =   4800
  2325.       MultiLine       =   -1  'True
  2326.       ScrollBars      =   2  'Vertical
  2327.       TabIndex        =   42
  2328.       Text            =   "VBSoundPro.frx":030A
  2329.       Top             =   240
  2330.       Width           =   3735
  2331.    End
  2332.    Begin VB.Menu op0 
  2333.       Caption         =   "Options"
  2334.       Begin VB.Menu op1 
  2335.          Caption         =   "DXOsc On"
  2336.       End
  2337.       Begin VB.Menu op2 
  2338.          Caption         =   "DXOsc Off"
  2339.       End
  2340.       Begin VB.Menu op3 
  2341.          Caption         =   "Midi In"
  2342.       End
  2343.       Begin VB.Menu op4 
  2344.          Caption         =   "Midi Out"
  2345.       End
  2346.       Begin VB.Menu op5 
  2347.          Caption         =   "MCI On"
  2348.       End
  2349.       Begin VB.Menu op6 
  2350.          Caption         =   "MCI Off"
  2351.       End
  2352.       Begin VB.Menu opt7 
  2353.          Caption         =   "Exit"
  2354.       End
  2355.    End
  2356.    Begin VB.Menu ps0 
  2357.       Caption         =   "Presets"
  2358.       Begin VB.Menu ps1 
  2359.          Caption         =   "Set P01"
  2360.       End
  2361.       Begin VB.Menu ps2 
  2362.          Caption         =   "Set P02"
  2363.       End
  2364.       Begin VB.Menu ps3 
  2365.          Caption         =   "Set P03"
  2366.       End
  2367.       Begin VB.Menu ps4 
  2368.          Caption         =   "Set P04"
  2369.       End
  2370.       Begin VB.Menu ps5 
  2371.          Caption         =   "Set P05"
  2372.       End
  2373.       Begin VB.Menu ps6 
  2374.          Caption         =   "Set P06"
  2375.       End
  2376.       Begin VB.Menu ps7 
  2377.          Caption         =   "Set P07"
  2378.       End
  2379.       Begin VB.Menu ps8 
  2380.          Caption         =   "Set P08"
  2381.       End
  2382.       Begin VB.Menu ps9 
  2383.          Caption         =   "Set P09"
  2384.       End
  2385.       Begin VB.Menu ps10 
  2386.          Caption         =   "Set P10"
  2387.       End
  2388.       Begin VB.Menu ps11 
  2389.          Caption         =   "Set P11"
  2390.       End
  2391.       Begin VB.Menu ps12 
  2392.          Caption         =   "Set P12"
  2393.       End
  2394.       Begin VB.Menu ps13 
  2395.          Caption         =   "Set P13"
  2396.       End
  2397.       Begin VB.Menu ps14 
  2398.          Caption         =   "Set P14"
  2399.       End
  2400.       Begin VB.Menu ps15 
  2401.          Caption         =   "Set P15"
  2402.       End
  2403.    End
  2404.    Begin VB.Menu sw0 
  2405.       Caption         =   "Software"
  2406.       Begin VB.Menu sw1 
  2407.          Caption         =   "SWCALL1"
  2408.       End
  2409.       Begin VB.Menu sw2 
  2410.          Caption         =   "SWCALL2"
  2411.       End
  2412.       Begin VB.Menu sw3 
  2413.          Caption         =   "SWCALL3"
  2414.       End
  2415.       Begin VB.Menu sw4 
  2416.          Caption         =   "SWCALL4"
  2417.       End
  2418.       Begin VB.Menu sw5 
  2419.          Caption         =   "SWRESET"
  2420.       End
  2421.    End
  2422.    Begin VB.Menu ab0 
  2423.       Caption         =   "About"
  2424.       Begin VB.Menu ab1 
  2425.          Caption         =   "Specs"
  2426.       End
  2427.       Begin VB.Menu ab5 
  2428.          Caption         =   "Presets"
  2429.       End
  2430.       Begin VB.Menu ab2 
  2431.          Caption         =   "Instruments"
  2432.       End
  2433.       Begin VB.Menu ab6 
  2434.          Caption         =   "Usage"
  2435.       End
  2436.       Begin VB.Menu ab4 
  2437.          Caption         =   "Contact"
  2438.       End
  2439.       Begin VB.Menu ab3 
  2440.          Caption         =   "About"
  2441.       End
  2442.    End
  2443. End
  2444. Attribute VB_Name = "Form1"
  2445. Attribute VB_GlobalNameSpace = False
  2446. Attribute VB_Creatable = False
  2447. Attribute VB_PredeclaredId = True
  2448. Attribute VB_Exposed = False
  2449.  
  2450. 'Complete VB Sound Demo, DirectX, MiDi recorder Including Duration, 126 Instruments, 5 Wave Format Generator, MCI Control of AVIVideo, CDAudio, DAT, DigitalVideo, MMMovie, Sequencer, VCR, Videodisc, or WaveAudio
  2451. 'Author Contact scott93727@aol.com
  2452.  
  2453. 'If you plan on using this code in your application
  2454. 'registration is required, for Registration Visit :
  2455. 'www.sharewaresoftware.info/vbsoundpro/vbsoundpro.htm
  2456.  
  2457. ' some e of the code was from the below authors
  2458. ' P I A N O  by Armin Niki
  2459. ' Update - Apr 20 2006 by Paul Bahlawan
  2460.  
  2461.  
  2462.  
  2463. Option Explicit
  2464.  
  2465. Private Declare Function midiOutClose Lib "winmm.dll" (ByVal hMidiOut As Long) As Long
  2466. Private Declare Function midiOutOpen Lib "winmm.dll" (lphMidiOut As Long, ByVal uDeviceID As Long, ByVal dwCallback As Long, ByVal dwInstance As Long, ByVal dwFlags As Long) As Long
  2467. Private Declare Function midiOutShortMsg Lib "winmm.dll" (ByVal hMidiOut As Long, ByVal dwMsg As Long) As Long
  2468.  
  2469. 'Create the DirectSound8 Object
  2470.  
  2471. Dim dx As New DirectX8
  2472. Dim ds As DirectSound8
  2473. Dim dsBuffer As DirectSoundSecondaryBuffer8
  2474.  
  2475. Private hmidi As Long
  2476. Private baseNote As Long
  2477. Private channel As Long
  2478. Private volume As Long
  2479. Private lNote As Long
  2480. Private Playin() As String
  2481. Private playinc As Long
  2482. Private timers As Long
  2483. Private rec As String
  2484. Dim midimsg As Long
  2485. Dim notep As Long
  2486.  
  2487. Dim stur, oncol, offcol
  2488. 'Declare the variables that will be used
  2489.  
  2490. Dim frequency As Double
  2491. Dim increment As Double
  2492. Dim fileName As String
  2493. Dim fileSize As Double
  2494. Dim sample As Long
  2495. Dim period As Double
  2496. Dim state As Integer
  2497. Dim bufferptr As Long
  2498. Dim inputValue As Double
  2499.  
  2500. Dim notetm, onoff, noteimp, asup, asdn, inst
  2501. Dim cs1a, cs2a, cs3a, cs4a
  2502. Dim cs1b, cs2b, cs3b, cs4b
  2503. Dim cs1c, cs2c, cs3c, cs4c
  2504. Dim cs1d, cs2d, cs3d, cs4d
  2505. Dim cs1e, cs2e, cs3e, cs4e
  2506. Dim cs1f, cs2f, cs3f, cs4f
  2507. Dim cs1g, cs2g, cs3g, cs4g
  2508. Dim cs1h, cs2h, cs3h, cs4h
  2509. Dim cs1i, cs2i, cs3i, cs4i
  2510. Dim cs1j, cs2j, cs3j, cs4j
  2511. Dim cs1k, cs2k, cs3k, cs4k
  2512. Dim cs1l, cs2l, cs3l, cs4l
  2513. Dim cs1m, cs2m, cs3m, cs4m
  2514. Dim cs1n, cs2n, cs3n, cs4n
  2515. Dim cs1o, cs2o, cs3o, cs4o
  2516. Dim cs1p, cs2p, cs3p, cs4p
  2517. Dim cs1q, cs2q, cs3q, cs4q
  2518. Dim cs1r, cs2r, cs3r, cs4r
  2519. Const Pi = 3.141592654
  2520. Const sampleRate = 44100
  2521. Const amplitude = 127
  2522. Private Sub domusickey(key As Integer)
  2523. Dim note As Long
  2524.     If key = vbKey1 Then note = 1
  2525.     If key = vbKey2 Then note = 3
  2526.     If key = vbKey3 Then note = 5
  2527.     If key = vbKey4 Then note = 6
  2528.     If key = vbKey5 Then note = 8
  2529.     If key = vbKey6 Then note = 10
  2530.     If key = vbKey7 Then note = 12
  2531.     If key = vbKey8 Then note = 13
  2532.     If key = vbKey9 Then note = 15
  2533.     If key = vbKey0 Then note = 17
  2534.     If key = 189 Then note = 18
  2535.     If key = 187 Then note = 20
  2536.     If key = vbKeyQ Then note = 22
  2537.     If key = vbKeyW Then note = 24
  2538.     If key = vbKeyE Then note = 25
  2539.     If key = vbKeyR Then note = 27
  2540.     If key = vbKeyT Then note = 29
  2541.     If key = vbKeyY Then note = 30
  2542.     If key = vbKeyU Then note = 32
  2543.     If key = vbKeyI Then note = 34
  2544.     If key = vbKeyO Then note = 36
  2545.     If key = vbKeyP Then note = 37
  2546.     If key = 219 Then note = 39
  2547.     If key = vbKeyA Then note = 41
  2548.     If key = vbKeyS Then note = 42
  2549.     If key = vbKeyD Then note = 44
  2550.     If key = vbKeyF Then note = 46
  2551.     If key = vbKeyG Then note = 48
  2552.     If key = vbKeyH Then note = 49
  2553.     If key = vbKeyJ Then note = 51
  2554.     If key = vbKeyK Then note = 53
  2555.     If key = vbKeyL Then note = 54
  2556.     If key = 186 Then note = 56
  2557.     If key = vbKeyZ Then note = 58
  2558.     If key = vbKeyX Then note = 60
  2559.     If key = vbKeyC Then note = 61
  2560.     If key = vbKeyV Then note = 63
  2561.     If key = vbKeyB Then note = 65
  2562.     If key = vbKeyN Then note = 66
  2563.     If key = vbKeyM Then note = 68
  2564.     If key = 188 Then note = 70
  2565.     If key = 190 Then note = 72
  2566.     If Not note = lNote And note Then
  2567.         domusic note
  2568.     End If
  2569. End Sub
  2570. 'Convert a key to a note, then stop that note
  2571. Private Sub domusickeystop(key As Integer)
  2572. Dim note As Long
  2573.     If key = vbKey1 Then note = 1
  2574.     If key = vbKey2 Then note = 3
  2575.     If key = vbKey3 Then note = 5
  2576.     If key = vbKey4 Then note = 6
  2577.     If key = vbKey5 Then note = 8
  2578.     If key = vbKey6 Then note = 10
  2579.     If key = vbKey7 Then note = 12
  2580.     If key = vbKey8 Then note = 13
  2581.     If key = vbKey9 Then note = 15
  2582.     If key = vbKey0 Then note = 17
  2583.     If key = 189 Then note = 18
  2584.     If key = 187 Then note = 20
  2585.     If key = vbKeyQ Then note = 22
  2586.     If key = vbKeyW Then note = 24
  2587.     If key = vbKeyE Then note = 25
  2588.     If key = vbKeyR Then note = 27
  2589.     If key = vbKeyT Then note = 29
  2590.     If key = vbKeyY Then note = 30
  2591.     If key = vbKeyU Then note = 32
  2592.     If key = vbKeyI Then note = 34
  2593.     If key = vbKeyO Then note = 36
  2594.     If key = vbKeyP Then note = 37
  2595.     If key = 219 Then note = 39
  2596.     If key = vbKeyA Then note = 41
  2597.     If key = vbKeyS Then note = 42
  2598.     If key = vbKeyD Then note = 44
  2599.     If key = vbKeyF Then note = 46
  2600.     If key = vbKeyG Then note = 48
  2601.     If key = vbKeyH Then note = 49
  2602.     If key = vbKeyJ Then note = 51
  2603.     If key = vbKeyK Then note = 53
  2604.     If key = vbKeyL Then note = 54
  2605.     If key = 186 Then note = 56
  2606.     If key = vbKeyZ Then note = 58
  2607.     If key = vbKeyX Then note = 60
  2608.     If key = vbKeyC Then note = 61
  2609.     If key = vbKeyV Then note = 63
  2610.     If key = vbKeyB Then note = 65
  2611.     If key = vbKeyN Then note = 66
  2612.     If key = vbKeyM Then note = 68
  2613.     If key = 188 Then note = 70
  2614.     If key = 190 Then note = 72
  2615.     domusicstop note
  2616. End Sub
  2617. Private Sub ab1_Click()
  2618. Dim Msg, Title
  2619. Title = "VB Sound Pro Ver. 1.6 "
  2620. Msg = "Complete VB Sound Demo, DirectX, MIDI (127 Instruments), Oscilators, MIDI Recorder Including Duration, 127 Instruments, 5 Wave Format Oscilator, MCI Control of AVIVideo, CDAudio, DAT, DigitalVideo, MMMovie, Sequencer, VCR, Videodisc, or WaveAudio.Best Run at 800X600 Resolution."
  2621. MsgBox Msg, , Title
  2622. End Sub
  2623. Private Sub ab5_Click()
  2624. Dim Msg, Title
  2625. Title = "VB Sound Pro Ver. 1.6"
  2626. Msg = "Presets allow the user to store 15 presets all each with seperate Instrument, Pitch, Volume and Channels Settings, to use adjust the 4 settings (Instrument, Pitch, Volume, Channel), and click the <Set Preset # of your choice> Menu Option under the <Presets> section."
  2627. MsgBox Msg, , Title
  2628. End Sub
  2629. Private Sub ab6_Click()
  2630. Dim Msg, Title
  2631. Title = "VB Sound Pro Ver. 1.6 "
  2632. Msg = "If you plan on using this code in your application, registration is required, Visit www.sharewaresoftware.info/vbsoundpro/vbsoundpro.htm for Registration."
  2633. MsgBox Msg, , Title
  2634. End Sub
  2635. Private Sub Command26_Click()
  2636.  
  2637. Text23.BackColor = "255"
  2638. Text24.BackColor = "16711680"
  2639. Text25.BackColor = "16711680"
  2640. Text26.BackColor = "16711680"
  2641. Text27.BackColor = "16711680"
  2642. Text28.BackColor = "16711680"
  2643. Text29.BackColor = "16711680"
  2644. Text30.BackColor = "16711680"
  2645. Text31.BackColor = "16711680"
  2646. Text32.BackColor = "16711680"
  2647. Text33.BackColor = "16711680"
  2648. Text34.BackColor = "16711680"
  2649. Text35.BackColor = "16711680"
  2650. Text36.BackColor = "16711680"
  2651. Text37.BackColor = "16711680"
  2652.  
  2653. On Error Resume Next
  2654. Open "cust1" For Input As #1
  2655. Input #1, cs1a, cs2a, cs3a, cs4a
  2656. Close #1
  2657. sldVol.Value = cs1a
  2658. sldPitch.Value = cs2a
  2659. sldChan.Value = cs3a
  2660. sldInst.Value = cs4a
  2661. End Sub
  2662. Private Sub Command27_Click()
  2663. Text23.BackColor = "16711680"
  2664. Text24.BackColor = "255"
  2665. Text25.BackColor = "16711680"
  2666. Text26.BackColor = "16711680"
  2667. Text27.BackColor = "16711680"
  2668. Text28.BackColor = "16711680"
  2669. Text29.BackColor = "16711680"
  2670. Text30.BackColor = "16711680"
  2671. Text31.BackColor = "16711680"
  2672. Text32.BackColor = "16711680"
  2673. Text33.BackColor = "16711680"
  2674. Text34.BackColor = "16711680"
  2675. Text35.BackColor = "16711680"
  2676. Text36.BackColor = "16711680"
  2677. Text37.BackColor = "16711680"
  2678.  
  2679. On Error Resume Next
  2680. Open "cust2" For Input As #1
  2681. Input #1, cs1b, cs2b, cs3b, cs4b
  2682. Close #1
  2683. sldVol.Value = cs1b
  2684. sldPitch.Value = cs2b
  2685. sldChan.Value = cs3b
  2686. sldInst.Value = cs4b
  2687. End Sub
  2688. Private Sub Command28_Click()
  2689. Text23.BackColor = "16711680"
  2690. Text24.BackColor = "16711680"
  2691. Text25.BackColor = "255"
  2692. Text26.BackColor = "16711680"
  2693. Text27.BackColor = "16711680"
  2694. Text28.BackColor = "16711680"
  2695. Text29.BackColor = "16711680"
  2696. Text30.BackColor = "16711680"
  2697. Text31.BackColor = "16711680"
  2698. Text32.BackColor = "16711680"
  2699. Text33.BackColor = "16711680"
  2700. Text34.BackColor = "16711680"
  2701. Text35.BackColor = "16711680"
  2702. Text36.BackColor = "16711680"
  2703. Text37.BackColor = "16711680"
  2704. On Error Resume Next
  2705. Open "cust3" For Input As #1
  2706. Input #1, cs1c, cs2c, cs3c, cs4c
  2707. Close #1
  2708. sldVol.Value = cs1c
  2709. sldPitch.Value = cs2c
  2710. sldChan.Value = cs3c
  2711. sldInst.Value = cs4c
  2712. End Sub
  2713. Private Sub Command29_Click()
  2714. Text23.BackColor = "16711680"
  2715. Text24.BackColor = "16711680"
  2716. Text25.BackColor = "16711680"
  2717. Text26.BackColor = "255"
  2718. Text27.BackColor = "16711680"
  2719. Text28.BackColor = "16711680"
  2720. Text29.BackColor = "16711680"
  2721. Text30.BackColor = "16711680"
  2722. Text31.BackColor = "16711680"
  2723. Text32.BackColor = "16711680"
  2724. Text33.BackColor = "16711680"
  2725. Text34.BackColor = "16711680"
  2726. Text35.BackColor = "16711680"
  2727. Text36.BackColor = "16711680"
  2728. Text37.BackColor = "16711680"
  2729. On Error Resume Next
  2730. Open "cust4" For Input As #1
  2731. Input #1, cs1d, cs2d, cs3d, cs4d
  2732. Close #1
  2733. sldVol.Value = cs1d
  2734. sldPitch.Value = cs2d
  2735. sldChan.Value = cs3d
  2736. sldInst.Value = cs4d
  2737. End Sub
  2738. Private Sub Command30_Click()
  2739. Text23.BackColor = "16711680"
  2740. Text24.BackColor = "16711680"
  2741. Text25.BackColor = "16711680"
  2742. Text26.BackColor = "16711680"
  2743. Text27.BackColor = "255"
  2744. Text28.BackColor = "16711680"
  2745. Text29.BackColor = "16711680"
  2746. Text30.BackColor = "16711680"
  2747. Text31.BackColor = "16711680"
  2748. Text32.BackColor = "16711680"
  2749. Text33.BackColor = "16711680"
  2750. Text34.BackColor = "16711680"
  2751. Text35.BackColor = "16711680"
  2752. Text36.BackColor = "16711680"
  2753. Text37.BackColor = "16711680"
  2754. On Error Resume Next
  2755. Open "cust5" For Input As #1
  2756. Input #1, cs1e, cs2e, cs3e, cs4e
  2757. Close #1
  2758. sldVol.Value = cs1e
  2759. sldPitch.Value = cs2e
  2760. sldChan.Value = cs3e
  2761. sldInst.Value = cs4e
  2762. End Sub
  2763. Private Sub Command31_Click()
  2764. Text23.BackColor = "16711680"
  2765. Text24.BackColor = "16711680"
  2766. Text25.BackColor = "16711680"
  2767. Text26.BackColor = "16711680"
  2768. Text27.BackColor = "16711680"
  2769. Text28.BackColor = "255"
  2770. Text29.BackColor = "16711680"
  2771. Text30.BackColor = "16711680"
  2772. Text31.BackColor = "16711680"
  2773. Text32.BackColor = "16711680"
  2774. Text33.BackColor = "16711680"
  2775. Text34.BackColor = "16711680"
  2776. Text35.BackColor = "16711680"
  2777. Text36.BackColor = "16711680"
  2778. Text37.BackColor = "16711680"
  2779. On Error Resume Next
  2780. Open "cust6" For Input As #1
  2781. Input #1, cs1f, cs2f, cs3f, cs4f
  2782. Close #1
  2783. sldVol.Value = cs1f
  2784. sldPitch.Value = cs2f
  2785. sldChan.Value = cs3f
  2786. sldInst.Value = cs4f
  2787. End Sub
  2788. Private Sub Command32_Click()
  2789. Text23.BackColor = "16711680"
  2790. Text24.BackColor = "16711680"
  2791. Text25.BackColor = "16711680"
  2792. Text26.BackColor = "16711680"
  2793. Text27.BackColor = "16711680"
  2794. Text28.BackColor = "16711680"
  2795. Text29.BackColor = "255"
  2796. Text30.BackColor = "16711680"
  2797. Text31.BackColor = "16711680"
  2798. Text32.BackColor = "16711680"
  2799. Text33.BackColor = "16711680"
  2800. Text34.BackColor = "16711680"
  2801. Text35.BackColor = "16711680"
  2802. Text36.BackColor = "16711680"
  2803. Text37.BackColor = "16711680"
  2804. On Error Resume Next
  2805. Open "cust7" For Input As #1
  2806. Input #1, cs1g, cs2g, cs3g, cs4g
  2807. Close #1
  2808. sldVol.Value = cs1g
  2809. sldPitch.Value = cs2g
  2810. sldChan.Value = cs3g
  2811. sldInst.Value = cs4g
  2812. End Sub
  2813. Private Sub Command33_Click()
  2814. Text23.BackColor = "16711680"
  2815. Text24.BackColor = "16711680"
  2816. Text25.BackColor = "16711680"
  2817. Text26.BackColor = "16711680"
  2818. Text27.BackColor = "16711680"
  2819. Text28.BackColor = "16711680"
  2820. Text29.BackColor = "16711680"
  2821. Text30.BackColor = "255"
  2822. Text31.BackColor = "16711680"
  2823. Text32.BackColor = "16711680"
  2824. Text33.BackColor = "16711680"
  2825. Text34.BackColor = "16711680"
  2826. Text35.BackColor = "16711680"
  2827. Text36.BackColor = "16711680"
  2828. Text37.BackColor = "16711680"
  2829. On Error Resume Next
  2830. Open "cust8" For Input As #1
  2831. Input #1, cs1h, cs2h, cs3h, cs4h
  2832. Close #1
  2833. sldVol.Value = cs1h
  2834. sldPitch.Value = cs2h
  2835. sldChan.Value = cs3h
  2836. sldInst.Value = cs4h
  2837. End Sub
  2838. Private Sub Command34_Click()
  2839. Text23.BackColor = "16711680"
  2840. Text24.BackColor = "16711680"
  2841. Text25.BackColor = "16711680"
  2842. Text26.BackColor = "16711680"
  2843. Text27.BackColor = "16711680"
  2844. Text28.BackColor = "16711680"
  2845. Text29.BackColor = "16711680"
  2846. Text30.BackColor = "16711680"
  2847. Text31.BackColor = "255"
  2848. Text32.BackColor = "16711680"
  2849. Text33.BackColor = "16711680"
  2850. Text34.BackColor = "16711680"
  2851. Text35.BackColor = "16711680"
  2852. Text36.BackColor = "16711680"
  2853. Text37.BackColor = "16711680"
  2854. On Error Resume Next
  2855. Open "cust9" For Input As #1
  2856. Input #1, cs1i, cs2i, cs3i, cs4i
  2857. Close #1
  2858. sldVol.Value = cs1i
  2859. sldPitch.Value = cs2i
  2860. sldChan.Value = cs3i
  2861. sldInst.Value = cs4i
  2862. End Sub
  2863. Private Sub Command35_Click()
  2864. Text23.BackColor = "16711680"
  2865. Text24.BackColor = "16711680"
  2866. Text25.BackColor = "16711680"
  2867. Text26.BackColor = "16711680"
  2868. Text27.BackColor = "16711680"
  2869. Text28.BackColor = "16711680"
  2870. Text29.BackColor = "16711680"
  2871. Text30.BackColor = "16711680"
  2872. Text31.BackColor = "16711680"
  2873. Text32.BackColor = "255"
  2874. Text33.BackColor = "16711680"
  2875. Text34.BackColor = "16711680"
  2876. Text35.BackColor = "16711680"
  2877. Text36.BackColor = "16711680"
  2878. Text37.BackColor = "16711680"
  2879. On Error Resume Next
  2880. Open "cust10" For Input As #1
  2881. Input #1, cs1j, cs2j, cs3j, cs4j
  2882. Close #1
  2883. sldVol.Value = cs1j
  2884. sldPitch.Value = cs2j
  2885. sldChan.Value = cs3j
  2886. sldInst.Value = cs4j
  2887. End Sub
  2888. Private Sub Command36_Click()
  2889. Text23.BackColor = "16711680"
  2890. Text24.BackColor = "16711680"
  2891. Text25.BackColor = "16711680"
  2892. Text26.BackColor = "16711680"
  2893. Text27.BackColor = "16711680"
  2894. Text28.BackColor = "16711680"
  2895. Text29.BackColor = "16711680"
  2896. Text30.BackColor = "16711680"
  2897. Text31.BackColor = "16711680"
  2898. Text32.BackColor = "16711680"
  2899. Text33.BackColor = "255"
  2900. Text34.BackColor = "16711680"
  2901. Text35.BackColor = "16711680"
  2902. Text36.BackColor = "16711680"
  2903. Text37.BackColor = "16711680"
  2904. On Error Resume Next
  2905. Open "cust11" For Input As #1
  2906. Input #1, cs1k, cs2k, cs3k, cs4k
  2907. Close #1
  2908. sldVol.Value = cs1k
  2909. sldPitch.Value = cs2k
  2910. sldChan.Value = cs3k
  2911. sldInst.Value = cs4k
  2912. End Sub
  2913. Private Sub Command37_Click()
  2914. Text23.BackColor = "16711680"
  2915. Text24.BackColor = "16711680"
  2916. Text25.BackColor = "16711680"
  2917. Text26.BackColor = "16711680"
  2918. Text27.BackColor = "16711680"
  2919. Text28.BackColor = "16711680"
  2920. Text29.BackColor = "16711680"
  2921. Text30.BackColor = "16711680"
  2922. Text31.BackColor = "16711680"
  2923. Text32.BackColor = "16711680"
  2924. Text33.BackColor = "16711680"
  2925. Text34.BackColor = "255"
  2926. Text35.BackColor = "16711680"
  2927. Text36.BackColor = "16711680"
  2928. Text37.BackColor = "16711680"
  2929. On Error Resume Next
  2930. Open "cust12" For Input As #1
  2931. Input #1, cs1l, cs2l, cs3l, cs4l
  2932. Close #1
  2933. sldVol.Value = cs1l
  2934. sldPitch.Value = cs2l
  2935. sldChan.Value = cs3l
  2936. sldInst.Value = cs4l
  2937. End Sub
  2938. Private Sub Command38_Click()
  2939. Text23.BackColor = "16711680"
  2940. Text24.BackColor = "16711680"
  2941. Text25.BackColor = "16711680"
  2942. Text26.BackColor = "16711680"
  2943. Text27.BackColor = "16711680"
  2944. Text28.BackColor = "16711680"
  2945. Text29.BackColor = "16711680"
  2946. Text30.BackColor = "16711680"
  2947. Text31.BackColor = "16711680"
  2948. Text32.BackColor = "16711680"
  2949. Text33.BackColor = "16711680"
  2950. Text34.BackColor = "16711680"
  2951. Text35.BackColor = "255"
  2952. Text36.BackColor = "16711680"
  2953. Text37.BackColor = "16711680"
  2954. On Error Resume Next
  2955. Open "cust13" For Input As #1
  2956. Input #1, cs1m, cs2m, cs3m, cs4m
  2957. Close #1
  2958. sldVol.Value = cs1m
  2959. sldPitch.Value = cs2m
  2960. sldChan.Value = cs3m
  2961. sldInst.Value = cs4m
  2962. End Sub
  2963. Private Sub Command39_Click()
  2964. Text23.BackColor = "16711680"
  2965. Text24.BackColor = "16711680"
  2966. Text25.BackColor = "16711680"
  2967. Text26.BackColor = "16711680"
  2968. Text27.BackColor = "16711680"
  2969. Text28.BackColor = "16711680"
  2970. Text29.BackColor = "16711680"
  2971. Text30.BackColor = "16711680"
  2972. Text31.BackColor = "16711680"
  2973. Text32.BackColor = "16711680"
  2974. Text33.BackColor = "16711680"
  2975. Text34.BackColor = "16711680"
  2976. Text35.BackColor = "16711680"
  2977. Text36.BackColor = "255"
  2978. Text37.BackColor = "16711680"
  2979. On Error Resume Next
  2980. Open "cust14" For Input As #1
  2981. Input #1, cs1n, cs2n, cs3n, cs4n
  2982. Close #1
  2983. sldVol.Value = cs1n
  2984. sldPitch.Value = cs2n
  2985. sldChan.Value = cs3n
  2986. sldInst.Value = cs4n
  2987. End Sub
  2988. Private Sub Command40_Click()
  2989. Text23.BackColor = "16711680"
  2990. Text24.BackColor = "16711680"
  2991. Text25.BackColor = "16711680"
  2992. Text26.BackColor = "16711680"
  2993. Text27.BackColor = "16711680"
  2994. Text28.BackColor = "16711680"
  2995. Text29.BackColor = "16711680"
  2996. Text30.BackColor = "16711680"
  2997. Text31.BackColor = "16711680"
  2998. Text32.BackColor = "16711680"
  2999. Text33.BackColor = "16711680"
  3000. Text34.BackColor = "16711680"
  3001. Text35.BackColor = "16711680"
  3002. Text36.BackColor = "16711680"
  3003. Text37.BackColor = "255"
  3004. On Error Resume Next
  3005. Open "cust15" For Input As #1
  3006. Input #1, cs1o, cs2o, cs3o, cs4o
  3007. Close #1
  3008. sldVol.Value = cs1o
  3009. sldPitch.Value = cs2o
  3010. sldChan.Value = cs3o
  3011. sldInst.Value = cs4o
  3012. End Sub
  3013. Private Sub Command41_Click()
  3014. On Error Resume Next
  3015. sldInst.Value = Text3.Text
  3016. End Sub
  3017. Private Sub Command42_Click()
  3018. On Error Resume Next
  3019. sldPitch.Value = Text4.Text
  3020. End Sub
  3021. Private Sub Command43_Click()
  3022. On Error Resume Next
  3023. sldVol.Value = Text5.Text
  3024. End Sub
  3025. Private Sub Command44_Click()
  3026. On Error Resume Next
  3027. sldChan.Value = Text16.Text
  3028. End Sub
  3029. 'Play piano via keyboard
  3030. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  3031.     domusickey KeyCode
  3032. End Sub
  3033. Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
  3034.     domusickeystop KeyCode
  3035. End Sub
  3036. Private Sub MMControl1_Done(NotifyCode As Integer)
  3037. Text13.BackColor = "16711680"
  3038. Text14.BackColor = "16711680"
  3039. End Sub
  3040. Private Sub opt7_Click()
  3041. On Error Resume Next
  3042.     dsBuffer.Stop
  3043.     Set dsBuffer = Nothing
  3044.     
  3045.     On Error Resume Next
  3046.     tmrwelcome.Enabled = False
  3047. domusicstop notep
  3048.  
  3049.     midiOutClose (hmidi)
  3050.     MMControl1.Command = "Close"
  3051.  
  3052. End Sub
  3053. Private Sub sldChan_Change()
  3054.     channel = sldChan.Value - 1
  3055.     Text16.Text = channel
  3056. End Sub
  3057. 'Play piano via mouse
  3058. Private Sub pKey_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  3059.     Text15.BackColor = "255"
  3060.     Text17.BackColor = "16711680"
  3061.     domusic Index + 1
  3062.     
  3063.     Text4.Text = Index
  3064. End Sub
  3065. Private Sub swcall(Index As Integer)
  3066.     ' used to call a note via software
  3067.     Text20.BackColor = "255"
  3068.     domusic Index + 1
  3069.     domusicstop Index + 1
  3070.     'example below
  3071.     'Private Sub Command41_Click()
  3072.     'Text20.BackColor = "255"
  3073.     'Call swcall(19)
  3074.     'End Sub
  3075.     'or: if x=5 then call swcall(19)(19 is the note)
  3076. End Sub
  3077. Private Sub pKey_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  3078.     Text15.BackColor = "16711680"
  3079.     Text17.BackColor = "255"
  3080.     domusicstop Index + 1
  3081. End Sub
  3082. Private Sub domusic(mNote As Long)
  3083. Dim midimsg As Long
  3084.     'Play note
  3085.     midimsg = &H90 + ((baseNote + mNote) * &H100) + (volume * &H10000) + channel
  3086.     midiOutShortMsg hmidi, midimsg
  3087.     'record the key-down event
  3088.     If tmrrec.Enabled Then rec = rec & mNote & "x" & timers & " "
  3089.     timers = 0
  3090.     lNote = mNote
  3091.     'hi-light key being played
  3092.     On Error Resume Next
  3093.     pkey(mNote - 1).BackColor = &HC000&    '&H6060F0
  3094. End Sub
  3095. 'Stop a note
  3096. Private Sub domusicstop(mNote As Long)
  3097. Dim midimsg As Long
  3098.     midimsg = &H80 + ((baseNote + mNote) * &H100) + channel
  3099.     midiOutShortMsg hmidi, midimsg
  3100.     'record the key-up event
  3101.     If tmrrec.Enabled Then rec = rec & -mNote & "x" & timers & " "
  3102.     timers = 0
  3103.     If mNote = lNote Then lNote = 0 'lNote = 0
  3104.     'mNote = 0
  3105.     If mNote > 0 Then 'un-hi-light key when released
  3106.         If pkey(mNote - 1).Tag = "1" Then
  3107.             pkey(mNote - 1).BackColor = vbWhite
  3108.         Else
  3109.             pkey(mNote - 1).BackColor = vbBlack
  3110.         End If
  3111.     End If
  3112. End Sub
  3113. 'Show middle C when pitch is changed
  3114. Private Sub sldPitch_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  3115.     If Button Then
  3116.         pkey(59 - sldPitch.Value).SetFocus
  3117.     End If
  3118. End Sub
  3119. Private Sub ab2_Click()
  3120. If stur = 2 Then stur = 1: GoTo stra:
  3121. If stur = 1 Then stur = 2: GoTo strb:
  3122.  
  3123. stra:
  3124. Text6.Visible = True
  3125. Frame5.Visible = False
  3126. GoTo stred
  3127.  
  3128. strb:
  3129. Text6.Visible = False
  3130. Frame5.Visible = True
  3131. GoTo stred
  3132.  
  3133. stred:
  3134. End Sub
  3135. Private Sub ab3_Click()
  3136. Dim Msg, Title
  3137. Title = "VB Sound Pro Ver. 1.6"
  3138. Msg = "Easy to Understand VB Sound Support for all Sound functions Including DirectX, MIDI, Oscilators, and MCI Functions.(Waves, MP3, MCI, MiDi, DirectX, AVIVideo, CDAudio, DAT, DigitalVideo, MMMovie, Sequencer, VCR, Videodisc, or WaveAudio)."
  3139. MsgBox Msg, , Title
  3140. End Sub
  3141. Private Sub ab4_Click()
  3142. Dim Msg, Title
  3143. Title = "VB Sound Pro Ver. 1.6 "
  3144. Msg = "(c) 2009 PWS software, Tech support scott93727@aol.com, http://www.freeclimate.com/pwssw/pwssw.htm"
  3145. MsgBox Msg, , Title
  3146. End Sub
  3147. Private Sub cmdrecord_Click()
  3148. If tmrplayback.Enabled Then cmdPlay_Click
  3149.     If tmrrec.Enabled Then
  3150.         'stop recording
  3151.         tmrrec.Enabled = False
  3152.         cmdrec.BackColor = &HC0C0FF
  3153.     Else
  3154.         'start recording
  3155.         rec = ""
  3156.         timers = 0
  3157.         tmrrec.Enabled = True
  3158.         cmdrec.BackColor = &H4040FF
  3159.     End If
  3160. End Sub
  3161. Private Sub Command10_Click()
  3162. CommonDialog1.DialogTitle = "Media Player Open"
  3163. On Error Resume Next
  3164.  CommonDialog1.CancelError = True
  3165.     On Error GoTo ErrHandler:
  3166.     CommonDialog1.flags = cdlOFNFileMustExist
  3167.     CommonDialog1.ShowOpen
  3168.    MMControl1.fileName = CommonDialog1.fileName
  3169.     'Me.Caption = "NoteEdit " & CommonDialog1.filename
  3170. ErrHandler:
  3171.     'if Cancel clicked, then exit procedure
  3172. 'MMControl1.DeviceType = "WaveAudio"
  3173.  
  3174. ' Open the MCI WaveAudio device.
  3175.    MMControl1.Command = "Open"
  3176. End Sub
  3177. Private Sub ps1_Click()
  3178. cs1a = sldVol.Value
  3179. cs2a = sldPitch.Value
  3180. cs3a = sldChan.Value
  3181. cs4a = sldInst.Value
  3182. On Error Resume Next
  3183. Open "cust1" For Output As #1
  3184. Write #1, cs1a, cs2a, cs3a, cs4a
  3185. Close #1
  3186. End Sub
  3187. Private Sub ps2_Click()
  3188. cs1b = sldVol.Value
  3189. cs2b = sldPitch.Value
  3190. cs3b = sldChan.Value
  3191. cs4b = sldInst.Value
  3192. On Error Resume Next
  3193. Open "cust2" For Output As #1
  3194. Write #1, cs1b, cs2b, cs3b, cs4b
  3195. Close #1
  3196. End Sub
  3197. Private Sub ps3_Click()
  3198. cs1c = sldVol.Value
  3199. cs2c = sldPitch.Value
  3200. cs3c = sldChan.Value
  3201. cs4c = sldInst.Value
  3202. On Error Resume Next
  3203. Open "cust3" For Output As #1
  3204. Write #1, cs1c, cs2c, cs3c, cs4c
  3205. Close #1
  3206. End Sub
  3207. Private Sub ps4_Click()
  3208. cs1d = sldVol.Value
  3209. cs2d = sldPitch.Value
  3210. cs3d = sldChan.Value
  3211. cs4d = sldInst.Value
  3212. On Error Resume Next
  3213. Open "cust4" For Output As #1
  3214. Write #1, cs1d, cs2d, cs3d, cs4d
  3215. Close #1
  3216. End Sub
  3217. Private Sub ps5_Click()
  3218. cs1e = sldVol.Value
  3219. cs2e = sldPitch.Value
  3220. cs3e = sldChan.Value
  3221. cs4e = sldInst.Value
  3222. On Error Resume Next
  3223. Open "cust5" For Output As #1
  3224. Write #1, cs1e, cs2e, cs3e, cs4e
  3225. Close #1
  3226. End Sub
  3227. Private Sub ps6_Click()
  3228. cs1f = sldVol.Value
  3229. cs2f = sldPitch.Value
  3230. cs3f = sldChan.Value
  3231. cs4f = sldInst.Value
  3232. On Error Resume Next
  3233. Open "cust6" For Output As #1
  3234. Write #1, cs1f, cs2f, cs3f, cs4f
  3235. Close #1
  3236. End Sub
  3237. Private Sub ps7_Click()
  3238. cs1g = sldVol.Value
  3239. cs2g = sldPitch.Value
  3240. cs3g = sldChan.Value
  3241. cs4g = sldInst.Value
  3242. On Error Resume Next
  3243. Open "cust7" For Output As #1
  3244. Write #1, cs1g, cs2g, cs3g, cs4g
  3245. Close #1
  3246. End Sub
  3247. Private Sub ps8_Click()
  3248. cs1h = sldVol.Value
  3249. cs2h = sldPitch.Value
  3250. cs3h = sldChan.Value
  3251. cs4h = sldInst.Value
  3252. On Error Resume Next
  3253. Open "cust8" For Output As #1
  3254. Write #1, cs1h, cs2h, cs3h, cs4h
  3255. Close #1
  3256. End Sub
  3257. Private Sub ps9_Click()
  3258. cs1i = sldVol.Value
  3259. cs2i = sldPitch.Value
  3260. cs3i = sldChan.Value
  3261. cs4i = sldInst.Value
  3262. On Error Resume Next
  3263. Open "cust9" For Output As #1
  3264. Write #1, cs1i, cs2i, cs3i, cs4i
  3265. Close #1
  3266. End Sub
  3267. Private Sub ps10_Click()
  3268. cs1j = sldVol.Value
  3269. cs2j = sldPitch.Value
  3270. cs3j = sldChan.Value
  3271. cs4j = sldInst.Value
  3272. On Error Resume Next
  3273. Open "cust10" For Output As #1
  3274. Write #1, cs1j, cs2j, cs3j, cs4j
  3275. Close #1
  3276. End Sub
  3277. Private Sub ps11_Click()
  3278. cs1k = sldVol.Value
  3279. cs2k = sldPitch.Value
  3280. cs3k = sldChan.Value
  3281. cs4k = sldInst.Value
  3282. On Error Resume Next
  3283. Open "cust11" For Output As #1
  3284. Write #1, cs1k, cs2k, cs3k, cs4k
  3285. Close #1
  3286. End Sub
  3287. Private Sub ps12_Click()
  3288. cs1l = sldVol.Value
  3289. cs2l = sldPitch.Value
  3290. cs3l = sldChan.Value
  3291. cs4l = sldInst.Value
  3292. On Error Resume Next
  3293. Open "cust12" For Output As #1
  3294. Write #1, cs1l, cs2l, cs3l, cs4l
  3295. Close #1
  3296. End Sub
  3297. Private Sub ps13_Click()
  3298. cs1m = sldVol.Value
  3299. cs2m = sldPitch.Value
  3300. cs3m = sldChan.Value
  3301. cs4m = sldInst.Value
  3302. On Error Resume Next
  3303. Open "cust13" For Output As #1
  3304. Write #1, cs1m, cs2m, cs3m, cs4m
  3305. Close #1
  3306. End Sub
  3307. Private Sub ps14_Click()
  3308. cs1n = sldVol.Value
  3309. cs2n = sldPitch.Value
  3310. cs3n = sldChan.Value
  3311. cs4n = sldInst.Value
  3312. On Error Resume Next
  3313. Open "cust14" For Output As #1
  3314. Write #1, cs1n, cs2n, cs3n, cs4n
  3315. Close #1
  3316. End Sub
  3317. Private Sub ps15_Click()
  3318. cs1o = sldVol.Value
  3319. cs2o = sldPitch.Value
  3320. cs3o = sldChan.Value
  3321. cs4o = sldInst.Value
  3322. On Error Resume Next
  3323. Open "cust15" For Output As #1
  3324. Write #1, cs1o, cs2o, cs3o, cs4o
  3325. Close #1
  3326. End Sub
  3327. Private Sub Command11_Click()
  3328. On Error Resume Next
  3329. MMControl1.Command = "Eject"
  3330. End Sub
  3331. Private Sub Command12_Click()
  3332. On Error Resume Next
  3333. MMControl1.Command = "Step"
  3334. End Sub
  3335. Private Sub Command13_Click()
  3336. On Error Resume Next
  3337. MMControl1.Command = "Back"
  3338. End Sub
  3339. Private Sub Command14_Click()
  3340. On Error Resume Next
  3341. MMControl1.Command = "Seek"
  3342. End Sub
  3343. Private Sub Command15_Click()
  3344. On Error Resume Next
  3345. MMControl1.Command = "Save"
  3346. End Sub
  3347. Private Sub Command16_Click()
  3348. Text22.BackColor = "16711680"
  3349. Text21.BackColor = "255"
  3350. On Error Resume Next
  3351. MMControl1.Command = "Open"
  3352. On Error Resume Next
  3353.  MMControl1.DeviceType = "AVIVideo"
  3354. End Sub
  3355. Private Sub Command17_Click()
  3356. Text22.BackColor = "16711680"
  3357. Text21.BackColor = "255"
  3358. On Error Resume Next
  3359. MMControl1.Command = "Open"
  3360. On Error Resume Next
  3361.  MMControl1.DeviceType = "Dat"
  3362. End Sub
  3363. Private Sub Command18_Click()
  3364. Text22.BackColor = "16711680"
  3365. Text21.BackColor = "255"
  3366. On Error Resume Next
  3367. MMControl1.Command = "Open"
  3368. On Error Resume Next
  3369.  MMControl1.DeviceType = "CDAudio"
  3370. End Sub
  3371. Private Sub Command19_Click()
  3372. Text22.BackColor = "16711680"
  3373. Text21.BackColor = "255"
  3374. On Error Resume Next
  3375. MMControl1.Command = "Open"
  3376. On Error Resume Next
  3377.  MMControl1.DeviceType = "VCR"
  3378. End Sub
  3379. Private Sub Command2_Click()
  3380. Dim retval
  3381. On Error Resume Next
  3382. retval = Shell("c:\windows\sndvol32", 1)
  3383. On Error Resume Next
  3384. retval = Shell("c:\windows\system32\sndvol32", 1)
  3385. End Sub
  3386. Private Sub Command20_Click()
  3387. Text22.BackColor = "16711680"
  3388. Text21.BackColor = "255"
  3389. On Error Resume Next
  3390. MMControl1.Command = "Open"
  3391. On Error Resume Next
  3392.  MMControl1.DeviceType = "WaveAudio"
  3393. End Sub
  3394. Private Sub Command21_Click()
  3395. Text22.BackColor = "16711680"
  3396. Text21.BackColor = "255"
  3397. On Error Resume Next
  3398. MMControl1.Command = "Open"
  3399. On Error Resume Next
  3400.  MMControl1.DeviceType = "Scanner"
  3401. End Sub
  3402. Private Sub Command22_Click()
  3403. Text22.BackColor = "16711680"
  3404. Text21.BackColor = "255"
  3405. On Error Resume Next
  3406. MMControl1.Command = "Open"
  3407. On Error Resume Next
  3408.  MMControl1.DeviceType = "Sequencer"
  3409. End Sub
  3410. Private Sub Command23_Click()
  3411. Text22.BackColor = "16711680"
  3412. Text21.BackColor = "255"
  3413. On Error Resume Next
  3414. MMControl1.Command = "Open"
  3415. On Error Resume Next
  3416.  MMControl1.DeviceType = "Videodisc"
  3417. End Sub
  3418. Private Sub Command24_Click()
  3419. Text22.BackColor = "16711680"
  3420. Text21.BackColor = "255"
  3421. On Error Resume Next
  3422. MMControl1.Command = "Open"
  3423. On Error Resume Next
  3424.  MMControl1.DeviceType = "DigitalVideo"
  3425. End Sub
  3426. Private Sub Command25_Click()
  3427. Text22.BackColor = "16711680"
  3428. Text21.BackColor = "255"
  3429. On Error Resume Next
  3430. MMControl1.Command = "Open"
  3431. On Error Resume Next
  3432.  MMControl1.DeviceType = "MMMovie"
  3433. End Sub
  3434. Private Sub Command6_Click()
  3435. Dim retval
  3436. On Error Resume Next
  3437. retval = Shell("c:\windows\sndvol32", 1)
  3438. On Error Resume Next
  3439. retval = Shell("c:\windows\system32\sndvol32", 1)
  3440. End Sub
  3441. Private Sub Command7_Click()
  3442. On Error Resume Next
  3443.     dsBuffer.Stop
  3444.     Set dsBuffer = Nothing
  3445.     
  3446.     On Error Resume Next
  3447.     tmrwelcome.Enabled = False
  3448. domusicstop notep
  3449.  
  3450.     midiOutClose (hmidi)
  3451.     MMControl1.Command = "Close"
  3452.  
  3453. Unload Me
  3454. End Sub
  3455. Private Sub Command8_Click()
  3456.  
  3457. Text13.BackColor = "16711680"
  3458. Text14.BackColor = "255"
  3459.  
  3460. On Error Resume Next
  3461. MMControl1.Command = "Record"
  3462. End Sub
  3463. Private Sub Command9_Click()
  3464.  
  3465. Text14.BackColor = "16711680"
  3466. Text13.BackColor = "255"
  3467.  
  3468. On Error Resume Next
  3469. MMControl1.Command = "Play"
  3470. End Sub
  3471. 'Initialize Waveform and Frequency Selectors - Note this
  3472. 'can also be done in the Properties Editor. I did it this
  3473. 'way to allow seeing all the initial settings at a glance.
  3474. Private Sub Form_Load()
  3475.  
  3476. oncol = 255
  3477. offcol = 16777215
  3478.     Text8.BackColor = "255"
  3479.     Text10.BackColor = "255"
  3480.     'Initialize the Waveform Selection option
  3481.     
  3482.     optSine.Value = True
  3483.     
  3484.     'Initialize the Freqency Selector buttons
  3485.     
  3486.     scrDecimal.Max = 0
  3487.     scrDecimal.Min = 9
  3488.     scrDecimal.Value = 0
  3489.     txtDecimal.Enabled = False
  3490.     txtDecimal.Text = "." & Str(scrDecimal.Value / 10)
  3491.     scrUnits.Max = 0
  3492.     scrUnits.Min = 9
  3493.     scrUnits.Value = 0
  3494.     txtUnits.Enabled = False
  3495.     txtUnits.Text = Str(scrUnits.Value)
  3496.     scrTens.Max = 0
  3497.     scrTens.Min = 9
  3498.     scrTens.Value = 4
  3499.     txtTens.Enabled = False
  3500.     txtTens.Text = Str(scrTens.Value)
  3501.     scrHundreds.Max = 0
  3502.     scrHundreds.Min = 9
  3503.     scrHundreds.Value = 4
  3504.     txtHundreds.Enabled = False
  3505.     txtHundreds.Text = Str(scrHundreds.Value)
  3506.     scrThousands.Max = 0
  3507.     scrThousands.Min = 9
  3508.     scrThousands.Value = 0
  3509.     txtThousands.Enabled = False
  3510.     txtThousands.Text = ""
  3511.     
  3512.     stur = 2
  3513.     
  3514.     Me.Show
  3515.     On Local Error Resume Next
  3516.     Set ds = dx.DirectSoundCreate("")
  3517.     If Err.Number <> 0 Then
  3518.         MsgBox "Unable to start DirectSound"
  3519.         End
  3520.     End If
  3521.     ds.SetCooperativeLevel Me.hWnd, DSSCL_PRIORITY
  3522.     
  3523.     'Set the default startup frequency
  3524.     conFreq
  3525.         
  3526. Dim rc As Long
  3527. Dim curDevice As Long
  3528. On Error Resume Next
  3529.     midiOutClose (hmidi)
  3530.     rc = midiOutOpen(hmidi, curDevice, 0, 0, 0)
  3531.     If (rc <> 0) Then
  3532.         MsgBox "Couldn't open midi device - Error #" & rc
  3533.     End If
  3534.     baseNote = 35
  3535.     channel = 1
  3536.     volume = 120
  3537.     sldInst.Value = 14
  3538.     sldVol.Value = 120
  3539.     sldPitch.Value = 50
  3540.     Text3.Text = sldInst.Value
  3541.     Text4.Text = sldVol.Value
  3542.     Text5.Text = sldPitch.Value
  3543.     Text16.Text = channel
  3544.     
  3545.       ' Set properties needed by MCI to open.
  3546.       On Error Resume Next
  3547.    MMControl1.Notify = False
  3548.    MMControl1.Wait = True
  3549.    MMControl1.Shareable = False
  3550.    MMControl1.DeviceType = "WaveAudio"
  3551.        
  3552. End Sub
  3553. 'Cleanup on program exit
  3554. Private Sub cmdExit_Click()
  3555. On Error Resume Next
  3556.     Cleanup
  3557.     Unload Me
  3558.     
  3559. End Sub
  3560. 'Dispose of the DirectSound Object and its buffer
  3561. Private Sub Cleanup()
  3562. On Error Resume Next
  3563.     If Not (dsBuffer Is Nothing) Then dsBuffer.Stop
  3564.     Set dsBuffer = Nothing
  3565.     Set ds = Nothing
  3566.     Set dx = Nothing
  3567.     
  3568. End Sub
  3569. Private Sub HScroll1_Change()
  3570. On Error Resume Next
  3571. Text1.Text = HScroll1.Value
  3572. frequency = HScroll1.Value
  3573.  
  3574.     dsBuffer.Stop
  3575.     Set dsBuffer = Nothing
  3576.     
  3577.     If optSine.Value = True Then
  3578.         sineWave
  3579.     End If
  3580.         If optSquare.Value = True Then
  3581.         squareWave
  3582.     End If
  3583.         If optTriangle.Value = True Then
  3584.         triangleWave
  3585.     End If
  3586.         If optSaw.Value = True Then
  3587.         sawWave
  3588.     End If
  3589.         If optNoise = True Then
  3590.         noise
  3591.     End If
  3592. End Sub
  3593. Private Sub op1_Click()
  3594. If optSine.Value = True Then
  3595.         sineWave
  3596.     End If
  3597.     
  3598.     If optSquare.Value = True Then
  3599.         squareWave
  3600.     End If
  3601.     
  3602.     If optTriangle.Value = True Then
  3603.         triangleWave
  3604.     End If
  3605.     
  3606.     If optSaw.Value = True Then
  3607.         sawWave
  3608.     End If
  3609.     
  3610.     If optNoise = True Then
  3611.         noise
  3612.     End If
  3613. End Sub
  3614. Private Sub op2_Click()
  3615. On Error Resume Next
  3616.     dsBuffer.Stop
  3617.     Set dsBuffer = Nothing
  3618. End Sub
  3619. Private Sub op3_Click()
  3620. Dim rc As Long
  3621. Dim curDevice As Long
  3622. On Error Resume Next
  3623. midiOutClose (hmidi)
  3624.     rc = midiOutOpen(hmidi, curDevice, 0, 0, 0)
  3625.     If (rc <> 0) Then
  3626.         MsgBox "Couldn't open midi device - Error #" & rc
  3627.     End If
  3628.     baseNote = 23
  3629.     channel = 15
  3630.     volume = 127
  3631.     sldInst.Value = 12
  3632.     sldVol.Value = 127
  3633.     
  3634. End Sub
  3635. Private Sub op4_Click()
  3636. On Error Resume Next
  3637.  midiOutClose (hmidi)
  3638. End Sub
  3639. Private Sub op5_Click()
  3640. On Error Resume Next
  3641. MMControl1.Command = "Open"
  3642. End Sub
  3643. Private Sub op6_Click()
  3644. On Error Resume Next
  3645. MMControl1.Command = "Close"
  3646. Text21.BackColor = "16711680"
  3647. Text22.BackColor = "255"
  3648. End Sub
  3649. 'Select Decimal and insert decimal point
  3650. Private Sub scrDecimal_Change()
  3651.  
  3652.     txtDecimal.Text = Str(scrDecimal.Value)
  3653.     On Error Resume Next
  3654.     conFreq
  3655.     
  3656. End Sub
  3657. 'Select Units Value
  3658. Private Sub scrUnits_Change()
  3659.  
  3660.     txtUnits.Text = Str(scrUnits.Value)
  3661.     On Error Resume Next
  3662.     conFreq
  3663.     
  3664. End Sub
  3665. 'Select Tens Value
  3666. Private Sub scrTens_Change()
  3667.  
  3668.     txtTens.Text = Str(scrTens.Value)
  3669.     On Error Resume Next
  3670.     conFreq
  3671.     
  3672. End Sub
  3673. 'Select Hundreds and mask leading zeroes
  3674. Private Sub scrHundreds_Change()
  3675.  
  3676.     txtHundreds.Text = Str(scrHundreds.Value)
  3677.     If scrHundreds.Value = 0 And scrThousands.Value = 0 Then
  3678.         txtHundreds.Text = ""
  3679.     End If
  3680. On Error Resume Next
  3681.     conFreq
  3682.     
  3683. End Sub
  3684. 'Select Thousands and mask leading zero
  3685. Private Sub scrThousands_Change()
  3686.  
  3687.     txtThousands.Text = Str(scrThousands.Value)
  3688.     If scrThousands.Value = 0 Then
  3689.         txtThousands.Text = ""
  3690.     End If
  3691.     On Error Resume Next
  3692.     conFreq
  3693.     
  3694. End Sub
  3695. 'Concatenate the frequency selector settings
  3696. Private Sub conFreq()
  3697.  
  3698.     frequency = (scrThousands.Value * 1000) + (scrHundreds.Value * 100) + (scrTens.Value * 10) + scrUnits.Value + (scrDecimal.Value / 10)
  3699.     Text2.Text = frequency
  3700.         If frequency < 20 Then
  3701.             MsgBox "Frequency cannot be lower than 20 Hz."
  3702.             frequency = 20
  3703.             txtTens.Text = "2"
  3704.             txtUnits.Text = "0"
  3705.             txtDecimal.Text = ".0"
  3706.         End If
  3707.         
  3708.     End Sub
  3709. Private Sub cmdGenerate_Click()
  3710.  
  3711. Text8.BackColor = "16711680"
  3712. Text7.BackColor = "255"
  3713.  
  3714.     If optSine.Value = True Then
  3715.         sineWave
  3716.     End If
  3717.     
  3718.     If optSquare.Value = True Then
  3719.         squareWave
  3720.     End If
  3721.     
  3722.     If optTriangle.Value = True Then
  3723.         triangleWave
  3724.     End If
  3725.     
  3726.     If optSaw.Value = True Then
  3727.         sawWave
  3728.     End If
  3729.     
  3730.     If optNoise = True Then
  3731.         noise
  3732.     End If
  3733.     
  3734. End Sub
  3735. Private Sub sineWave()
  3736.  
  3737.     makeFile                                            'Create the file and write header
  3738.     On Error Resume Next
  3739.     bufferptr = 45                                      'Offset to beginning of waveform
  3740.         increment = Pi / (sampleRate / frequency)
  3741.         For inputValue = 0 To (2 * Pi) Step increment   'Step around the circle
  3742.             sample = Int(amplitude * Sin(inputValue))   'Calculate the sample value
  3743.             Put #1, bufferptr, sample                   'Write sample value to file
  3744.             bufferptr = bufferptr + 1                   'Increment buffer pointer
  3745.         Next inputValue                                 'Loop to the next sample
  3746.         
  3747.     closeFile                                           'Fill in the rest of the file data
  3748.                                                         'and close the file.
  3749.     
  3750. End Sub
  3751. Private Sub squareWave()
  3752.  
  3753.     makeFile
  3754.     On Error Resume Next
  3755.     bufferptr = 45
  3756.     period = (sampleRate / frequency)
  3757.     state = 1
  3758.         If state = 1 Then                   ', cs2m, cs3m, cs4m
  3759. Close #1
  3760. End Sub
  3761. PrF te Sub op1_Click()in the rest  sample value
  3762.             Put "
  3763. Text3   
  3764. End Sub
  3765. PrivaTf state Semstat                      eeuaTf state Semstat   stat        system32\_          rce Sub Command18_Click()
  3766. Text22.BackColor = "16can w  If state = 1 Then e2.BackColor = "o6r Back6can                rmao2 YSemstckColor = "o6r Back6cack6cack6cack6cack6cack    closeFile       < "o6r Bacne Sub Comma     rce Sub Cohb scrTens_Chae
  3767.             Put "
  3768. Text3   
  3769. EhText = Str(scrUntPor ResuhText = Str(scrUntPor r(scrUntPor r(scrUose #1
  3770. End Suls9land18_Click()
  3771. Text2l
  3772. Text22.BackColor = "S 'rndows\system32\sndvol3t22r     'rndows\sysncy ce = TextrIf key = vbKeyH Then owsscrUntPor 9ao2 YSeChange()
  3773.  
  3774.     txtTens= Str(scrUntPldChan.Value
  3775. cs4i = sldIp owsscrUntPor 9ao2 YSeChange()
  3776.  
  3777.     txtTens= Stsldn owsscrUntPor 9ao2 YSeChange()
  3778.  
  3779.     txtTens= Str(scrUntPldChan.Value
  3780. cs4i =8Sine.Value = True Then
  3781.         sineWave
  3782.     End If
  3783.         If optSquare.Value ol3t22r     'rndows\sWave()l   '"s0 Str(scrUntPldChan.Value5"
  3784. Texte"soub
  3785. Private Sub Command12_Click()
  3786. On Error Resume Nextt)Fnext sa1i = sldUntPor 9ao2rxt sa1i = sldUntPto ca2 YSe sa1i = sldUntPto ca2 YSe RUntse (hmidi)
  3787.     rc = miMdUntPorsldUntPto ca2 YSe RUnt.Enabled = FavfText= Str(scrUntPor r(scrUntPor rrUn eland18_Click()
  3788. Text2l
  3789. Text22.BackColor = 2l
  3790. Text22.cs4m = FavfText= Str(e.Value ol3t22
  3791.     conFreq
  3792.     
  3793. End Sub
  3794. 'Concatenate the frequency selector settings
  3795. Private Sub conFreq()
  3796. tPore Sub Command12_Clicc5  If optSqu6711680"
  3797. Text24.BackColor = "16711680"
  3798. Text25.Bac9C6_CSr(scrUntPor rrUn eland18_Click()
  3799. Text2l
  3800. Text22.BackColor = 2l
  3801. Text22.cs4
  3802. Texd tckColor = 2l
  3803. Text22< 20 Therte g2l
  3804. Text22<    tnOT     rmao2\window tnOT     rmao2\window tnOT    t = Str(scrThousands.Vate Sub ab6_Click()
  3805. Den
  3806.     rc = miMdUntPorsldUntPto cds.Vate Sub ab6_Click()
  3807. Den
  3808.     rc = miMdUntPorsldUntPto cds.Vate Sub ab6_Click()Un eland18_Click()
  3809. Texld48Sine.Value = TrueStr(scrUntPd48eexldto ca2 YSe sa1i or miMdUntPorsldUntPto cds.VaCTens.Text = Str(scrTens.Value)
  3810.   = T03Dtrol1.Commandxt = ".0"
  3811.   mmand = "Step"
  3812. End Sub
  3813. PllllldbonFMmmand12_Clicc5  If optSqu6711680"
  3814. Text24.BackColor = "16711680"
  3815. Text25.Bac9C6_CSr(scrUntPor rrUn eland18_Click()
  3816. Text2l
  3817. Text22.BackColor = 2l
  3818. Text22.cs4
  3819. Texd tckColor = 2l
  3820. Text22< 20 Therte g2l
  3821. Text22<    tnOT     rmao2\window tnOT     rmao2\window tnd tckColor = 2l
  3822. tnd tckColor = 2l
  3823. tnd 10fCnm Control of AVIVideo, CDAudio, Dosd18_Click()
  3824. Text2l
  3825. Texd9n7rivaio, DxtrIf keaabled xt ss1b = slsd18_Clett eSub ab6_Ciasd18ss1b = wInits.Text = "e= 2l
  3826. tnd tckColoeialog1.f18_Cl1
  3827. End SubeonFreq
  3828.  h)vfTeick()
  3829. T l
  3830. On Error Resume NextdCDAudio, DosdeCommandce, 0, 0, 0)
  3831.     If (rc <> 0co)oeub
  3832. Oe #1
  3833. End Sub
  3834. PrivatesgBox "Frequency cannot be lower than 20dScb
  3835. Oe06711680o.Cnreq
  3836. 2h)ofo(.f18_Cl1
  3837. En  Text3S 20dScb
  3838. Oe06711680o.Cnreq
  3839. 2h)ofo(.f18_Cl1
  3840. En  Text3S 20dScb
  3841. Oe06711680o.Cnreq
  3842. 2h)ofo(.f18_Cl1
  3843. En  Text3S 20dScb
  3844. Oe06711680o.Cnreq
  3845. 2h)ofo(.f18_Cl1
  3846. En  T7Ip8ck6cack
  3847. 2h)ofo(
  3848. On ErroeasTuoCnreeFack
  3849. 2h)e
  3850. Dimu = miMSa-nreeFack
  3851. 2h)e
  3852. Dimu = miMSa-t         eeuaTf sr0dScb
  3853. Oe06711680o.Cnreq
  3854. 2ha6711680o.Cnreq
  3855. 2h)ofo(. , Title
  3856. End Sub
  3857. Private SulE1t'ackCse
  3858.     txtUnrkColor = &H4040FF
  3859.    1t'ar
  3860. Oe06840FFue
  3861. aveform Selection optionklnrkColvate-eDgionklnrkColvaft'ao.Cnren 20dScb
  3862. Oe06711680o.Cnreq
  3863. 2h)of20dScb
  3864. Oe06711680o.Cnreq
  3865. 2h)of20dScb
  3866. Oe06711rValue = cs2a
  3867. sldChas2h)e
  3868. Dimu = miMSa-nection optO u = r0dScb
  3869. Oe06711680o.Cnreq
  3870. 2ha6711680o.Cnreq
  3871. 2hthToeose #12h)of20d    
  3872.     scrDecimal.Mf20d
  3873. Dimu = .Cnreq
  3874. 2hth
  3875. Oe067116     3.BackColor =x "Frequency cac
  3876. Dim curDeetl32", 1)
  3877. On Error Resume Next
  3878. retval = Shell("c:\windows\system32\sndvol32", 1)
  3879. End Sub
  3880. Private Sub Command7_Click()
  3881. On Error Resume dr rDecimal.Mf20d
  3882. Dimu = .Cnreq
  3883. 2hth
  3884. Oe067116     3.BackColor =x "Frequency cI33_Click()
  3885. Text23.Bacb
  3886. Private Sub op1_= miMlor = 2l
  3887. tnd tckColor df20d    MCl
  3888. twtesumcb
  3889. Oe06711680o.Cnref
  3890. Text36.0
  3891.   -nreeFack
  3892. 2h)e
  3893. Dimu P"'Play piano via keyboard
  3894. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  3895.     domusickey KeyCode
  3896. End Sub
  3897. Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
  3898.     domusickeystop KeyCode
  3899. End Sub
  3900. Private Sub MMControl1_Done(NotifyCoum_KeyDown(KeyCode As Integer, Shift As Inte         eeuaTf Hn"
  3901. Text34.BackColor = Command7_ClicesuR As Integ>nteger, Shift As IicesuR As Integ>nteger, Shift  
  3902. EhText =amanPor ResuhTesysCnref
  3903. Text36.0
  3904.   -nreeFac,t'ar       Put #1, bufferptr, sample ef
  3905. Text36.0
  3906.   -nreeFackle ePhT'bufferptr, sa4gi" -nreeFackext = 4_Click()
  3907. cs1n = sldVol.Value
  3908. c5key KeyCode
  3909. E1680"ckle ePhT'bufferptr, sa4gi" -nreeF=amanPor ResuhTesyseicc5  )umcb
  3910. Oe06711680o.Cnref
  3911. Text36.0
  3912.   -nreeFack
  3913. 2hn)ecText36.0
  3914.   -nRt-nreoerptredoxt30 Resume Next
  3915. MMControl1.Coen"
  3916. O-nreoerptredoxt30 Resume  Suben"
  3917. OCoen"i" -nreedomusickeystde As Int   
  3918.  2sineWave
  3919. 2h)ofo(
  3920. On eg
  3921. Text36.0
  3922.   -nreeFack
  3923. y Kehn)e0a)ofoben"t Resume Next
  3924. MMConoxt
  3925. MMConoxticesuR A"req     'stop rppppppppppppppppppppppppppppp 7 Resume Next
  3926. Textrtop rp"ext
  3927. Open s or ResuhTesynreeFack
  3928. y Kehn)1ckext  Put #1, bufferptr,key KeyCode
  3929. E1680"cknreeyCPut #1, buffeUntPorsldUntPto cds.VolorAs Integ>nteger, Shift Aens.Value * 10) + scr8ift As Intwtesumcb
  3930. Oe06711680o.Cnr  Aens.Value * 10) + scr8ift Aoeo.Cnr Oe06711680o.Cnteger)
  3931.     domusickeSelect Uni6711680"
  3932. Text36.BackColor = "16711680"
  3933. Text37.BackColor = "16As In
  3934. Texs>
  3935. End Sub
  3936. PridInst.Valual. + t Resuolor = "16711680"
  3937. T3ading zero
  3938. Private Sub scrThouxtdCfsld, Dosd18_Click()
  3939. Te06711680o.Cnteger)
  3940.  olor = " Ps Integ>nteger, Shift As Iiceics3d = sldChan.ValuAolor = "16711680"h)ofo(
  3941. On ErroeasTuoCnreeFack
  3942. 2h)e
  3943. Dimu = miMSa-nreeFack
  3944. 2h)e
  3945. Dimu = miMSa-t         eeuaTf sr0dScb
  3946. Oe06711680o.Cnreq
  3947. 2ha6711680o.Cnreq
  3948. 2h)ofo(. , Title
  3949. End Sub
  3950. Private SulE1t'ackCse
  3951.     txtUnrkColor = &H4040FF
  3952.    1t'ar
  3953. Oe06840FFue
  3954. aveform Select.Value d1t'ackCse
  3955.     txt
  3956. On E
  3957.    1tt.Valueo"e 0BackCol.0en s or ResuhTesynrt
  3958.     On Error tFEnd Sub
  3959. Privat)
  3960. PrOands.Value * 1000)cj t Valueofo(. , TitnD t VA
  3961. E168Ie
  3962.     End I ai= FavfText=     Leands.Vai_o6dalize Waveform and FrequencyMsg, Titlelor ds.Vai_o6dalize Waveform and FrCm    Leands.V, TitnD1680o.Cnreq
  3963. 2h Suben"
  3964. OCoen"i" -nreedomusickeystde As Int   
  3965.  2sineWave
  3966. 2h)ofo(
  3967. On eg
  3968. Text36.0
  3969.   -nreeFack
  3970. y Kehn)e0a)ofoben"t Resume Next
  3971. MMC me NAs Inh)ofo(. , Tit
  3972. 2h)ofo(.f18_Cl1
  3973. EFF
  3974.  nst.Valuscaorm and FrCm    Leands.V, Text5  Leands.V, Text5  LeadThen lNote = 0 'lNo ds.V, t-e Sub Command32_Click()
  3975. Text23.Bvate SuO ic4eg
  3976. Texxt5.Text
  3977. En.BackColor =kcui, t-o elueo"e 0BackCol.0ss1o, csxt3   
  3978. EhText = Str(scrUn.Value = cs3e
  3979. sldInst.Value = cs4e
  3980. End Sub
  3981. Private Sub Command31_Click()
  3982. Text23.BackColor = "16711680"
  3983. Text24.BackColor = "16711680"
  3984. Text25.BackColor =o"16711680"
  3985. T3ading zerckColds.Text = 4e
  3986. End Sub
  3987. Privaub
  3988. e = cs3e
  3989. s
  3990. y Kehn)e0a)ofoben"tyTens.Value)ue = Nothing
  3991.     Set dscui, t-o -ckng
  3992.     Set dscui, t ic4eg
  3993. Texxt5.Text
  3994. En.BackColor =kcui, t-o elueo"e 0BackNne06o
  3995. MMControl1.Command = "Play"
  3996. End Sub
  3997. 'Initialize Waveform and Frequency Selectors - Note this
  3998. 'can also be done in the Properties Editor. I did it this
  3999. 'way to allow seeing  False
  4000.    MMControl1:
  4001. Tvne in the Properties Editcoperties Edito2l"55"
  4002. On Error Resume Next
  4003. MMControl1.Command = "Open"
  4004. On
  4005.   Editcoperties Edito2l"55"k()
  4006. Text22.BOopertieM' 
  4007.  2sineWaTBox "Unable to sideo"
  4008. Endhs4e
  4009. End Sub
  4010. Private Sub CoControl1.DeviceType = "Sequencer"
  4011. End Subol32", 1)
  4012. End Sub
  4013. Private Sub Command7_Click(7 = Nothing
  4014.     Set d  10)
  4015.     Texmr2rol1.CommandSub CoControl1.DeviceTmmand7Endhs4e
  4016. End Sub
  4017. Private Sub7umk'End Sub
  4018. Private SulE1t''tco"
  4019. End 'Initaveform ad Frequency Selectpertn7s Edt33.BackCub
  4020. E(rtn7s Edt33.BackCub
  4021. E(rtnOeurtnOeurtnOeurtnOeurtnOeu)tnOeurFrCm    eurtnOeu)tnOeurFrCm    euro nitaveform ad Frequency Select/o2l"55tfTstnOeurtnOeu)tnOeurFrCmbCoControl1.pkAs Iiceics3d = sldChan.l sldChan.l sldChInteger, Shift As Integer)
  4022.     domusickey Key a domd2e Keyk:lick()
  4023. Text23.Bvate SuO ic4eg
  4024. Texxt5.Text
  4025. En.BackColor =kcui, t-o elueo"e 0BackCol.0ss1o, csxt3   
  4026. EhText = Str(scrUn.Value = cs3e
  4027. sldInst.Value = cs4e
  4028. End Sub
  4029. Private Sub Command31_Click()
  4030. Text23.BackColor = "16711680"
  4031. Text24.BackColor = "16711680"axt3   
  4032. ben"t(MCon6ext
  4033. En.BackColor =kcui, t-o elueo"e 0BackCol.0ss1o, csxt3   
  4034. EhText = Str(scrUn.Value = cs3e
  4035. sldInst.Value = cs4e
  4036. End Sub
  4037. Private Sub Command31_Click()
  4038. Text23.BackColor = "16711680"
  4039. Text24.BackColor = "16711680"axt3   
  4040. ben"t(MCon6ext
  4041. En.BackColor )    'sto Title4 ommand31_Click()
  4042. Text23.BackColor = "16711680"
  4043. Text24.BackColor4 Privat and FrequencyMsg, Titlelor ds.Vai_o6dalize Waveform and FckCol.0ss1o, 0i na4o call41tlelor d11680"teform and FckCol.0ss1o, 0i= "16711680"axt3 11680"axt3   
  4044. ben"t(MCocs4e
  4045. En
  4046. T3ading zero"
  4047. zeror, 1)
  4048. End Sub
  4049. PrivayUp(KeyCode As Integer, Shift As Integer)
  4050.     domusickeystop KeyCode
  4051. End Su's.VarColor = "16711680"
  4052. T1680"
  4053. Text24.BackColor47116     3.BackColor =x "Frequency cac
  4054. Dim curDeetl32", 1)
  4055. On Error If
  4056.         hckCoe in the Properties Editor. I did it this
  4057. 'way to allow seeing all the initial settings at a glance.
  4058. Private Sub Form_Load(rs - Note this
  4059. 'c6ttinCR eeuaTf sr0dScb
  4060. Oe06711gwh )    'sto Title4 ommand31_Cldssg, Title
  4061. Tr =x "Frequency cac
  4062. Dim curDed Sub
  4063.     'or: if x=gliSrCm    euro nitaveform ad Frequenc\roiXhisc
  4064. Dim currShckCoe in  = 2l
  4065. Text22< 20