概要 | パッケージ | クラス | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## jAudioFeatureExtractor
クラス SynthesisFrame

    java.lang.Object
      java.awt.Component
          java.awt.Container
              java.awt.Window
                  java.awt.Frame
                      javax.swing.JFrame
                          jAudioFeatureExtractor.SynthesisFrame

すべての実装されたインタフェース:
  java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

    public class SynthesisFrame

extends javax.swing.JFrame
implements java.awt.event.ActionListener

This dialog allows the user to generate audio using additive synthesis. This audio can then be previewed or stored in the parent object.

There are two types of parameters that the user can set. The Overall Synthesis parameters apply to all components that are to be added. The Individual Components parameters apply to each component that is to be added.

The JTextArea near the bottom of the screen will display all components that have been added to date. To add a component, ensure that the Individual Components settings are as desired, and then click the Add Compnonent button. Components can be added cumulatively this way. The Clear All Components button will erase all components added to date. The synthesis can be previewed (and analyzed) by pressing the Play button. The playing of the synthesis can be stopped by pressing the Stop Playback button. Pressing the Save button will synthesize the audio as selected on the GUI and store it in a file and send it to the parent object. The file is saved in the format specified in the File Format For Saving combo box.

The Choose Audio Format button brings up an AudioFormatJFrame that can be used to select the encoding to use for the synthesized sounds. Not all possible parameters will necessarily be accepted.

The Duration field specifie the length, in seconds, of audio to be synthesized.

The Gain fields specifies the gain to apply to the synthesised sound, where 0 is complete attenuation and 1 is maximum gain.

The Panning field specifies the relative strength of the two stereo channels. This value is ignored in non-stereo cases. This value must be between -1.0 and +1.0 with -1.0 corresponding to full amplitude on the left channel and silence on the right, and +1.0 corresponding to the reverse. A value of 0 indicates equal balance.

The Click Avoidance Env. Length (ms) field is used to determine the duration of the envelope applied at the beginning and end of the synthesized audio in order to avoid clicks. Linear attenuation is applied for this amount of time on each end. The value is in seconds.

The Synthesis Type combo box allows the user to select the type of sound to be added as a component. This corresponds to the types of sound available from the AudioMethodsSynthesis class.

The Fundamental Frequency field specifies the fundamental frequency of the a component to be synthesized. This value is ignored for some types of synthesis.

The Relative Amplitude field specifies the relative amplitude of a component to be synthesized relative to other components. At the time of additive synthesis the amplitude of all components are normalized based on this.

The Max Fraction of Sampling Rate field is used to determine the maximum allowable partial that will be permitted to be synthesized. This is to avoid aliasing, and generally a value of 0.45 is best, with values below 0.5 always needed to ensure protection against aliasing. The maximum allowable frequency is determined by multiplying this value by the sampling rate used.

作成者:
  Cory McKay
関連項目:
  直列化された形式

入れ子のクラスの概要

クラス javax.swing.JFrame から継承された入れ子のクラス/インタフェース
`javax.swing.JFrame.AccessibleJFrame`

クラス java.awt.Frame から継承された入れ子のクラス/インタフェース
`java.awt.Frame.AccessibleAWTFrame`

クラス java.awt.Window から継承された入れ子のクラス/インタフェース
`java.awt.Window.AccessibleAWTWindow`

クラス java.awt.Container から継承された入れ子のクラス/インタフェース
`java.awt.Container.AccessibleAWTContainer`

クラス java.awt.Component から継承された入れ子のクラス/インタフェース
`java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy`

フィールドの概要

クラス javax.swing.JFrame から継承されたフィールド
`accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled`

クラス java.awt.Frame から継承されたフィールド
`CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR`

クラス java.awt.Component から継承されたフィールド
`BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT`

インタフェース javax.swing.WindowConstants から継承されたフィールド
`DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE`

インタフェース java.awt.image.ImageObserver から継承されたフィールド
`ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH`

コンストラクタの概要
`SynthesisFrame(Controller c)` Set up the GUI.

メソッドの概要
`void` | `actionPerformed(java.awt.event.ActionEvent event)` Calls the appropriate methods when the buttons are pressed.

クラス javax.swing.JFrame から継承されたメソッド
`addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update`

クラス java.awt.Frame から継承されたメソッド
`addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated`

クラス java.awt.Window から継承されたメソッド
`addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront`

クラス java.awt.Container から継承されたメソッド
`add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree`

クラス java.awt.Component から継承されたメソッド
`action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle`

クラス java.lang.Object から継承されたメソッド
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

インタフェース java.awt.MenuContainer から継承されたメソッド
`getFont, postEvent`

コンストラクタの詳細

### SynthesisFrame

    public SynthesisFrame(Controller c)

  Set up the GUI.

  パラメータ:
    `c` - near global controller.

メソッドの詳細

### actionPerformed

    public void actionPerformed(java.awt.event.ActionEvent event)

  Calls the appropriate methods when the buttons are pressed.

  定義:
    インタフェース `java.awt.event.ActionListener` 内の `actionPerformed`
  パラメータ:
    `event` - The event that is to be reacted to.

概要 | パッケージ | クラス | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド